Fix several tiny CSS bugs

Closes #4050

- Full-width invite user modal button
- `<select>` can be focused in Firefox
- Increase size of background images for avatars
- Add `-moz-osx-font-smoothing: grayscale;` to icons
This commit is contained in:
Paul Adam Davis 2014-09-17 11:41:34 +01:00
parent 75dee2f283
commit c6289c87b8
7 changed files with 23 additions and 3 deletions

View File

@ -142,3 +142,10 @@
.modal-style-centered { .modal-style-centered {
text-align: center; text-align: center;
} }
// Fixes for specific modals
.invite-new-user {
.btn-green {
width: 100%;
}
}

View File

@ -30,6 +30,7 @@
speak: none; speak: none;
line-height: 1; line-height: 1;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
//Function //Function
content: '#{$char}'; content: '#{$char}';
@ -62,6 +63,7 @@
speak: none; speak: none;
line-height: 1; line-height: 1;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
// Function // Function
content: '#{$char}'; content: '#{$char}';
@ -187,6 +189,11 @@ $i-code: \e03e;
// Icon Classes // Icon Classes
// -------------------------------------------------- // --------------------------------------------------
[class*='icon-'] {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-ghost:before { .icon-ghost:before {
content: '#{$i-ghost}'; content: '#{$i-ghost}';
} }

View File

@ -75,7 +75,7 @@ a.object-list-item {
display: block; display: block;
border: 1px solid #979797; border: 1px solid #979797;
border-radius: 100%; border-radius: 100%;
background-size: cover; background-size: 105%;
background-position: center center; background-position: center center;
} // .object-list-item-figure } // .object-list-item-figure

View File

@ -325,5 +325,8 @@ textarea {
select { select {
padding: 7px 10px 7px 8px; padding: 7px 10px 7px 8px;
} }
&:focus {
border-color: $brown;
}
} }
} // @-moz-document } // @-moz-document

View File

@ -16,6 +16,9 @@
var GhostSelect = Ember.Component.extend({ var GhostSelect = Ember.Component.extend({
tagName: 'span', tagName: 'span',
classNames: ['gh-select'], classNames: ['gh-select'],
attributeBindings: ['tabindex'],
tabindex: '0', // 0 must be a string, or else it's interpreted as false
options: null, options: null,
initialValue: null, initialValue: null,

View File

@ -25,7 +25,7 @@
<div class="form-group for-select"> <div class="form-group for-select">
<label for="activeTheme">Author</label> <label for="activeTheme">Author</label>
<span class="input-icon icon-user"> <span class="input-icon icon-user">
<span class="gh-select"> <span class="gh-select" tabindex="0">
{{view Ember.Select {{view Ember.Select
name="post-setting-author" name="post-setting-author"
content=authors content=authors

View File

@ -71,7 +71,7 @@
<div class="form-group for-select"> <div class="form-group for-select">
<label for="activeTheme">Theme</label> <label for="activeTheme">Theme</label>
<span class="gh-select" {{bind-attr data-select-text=selectedTheme.label}}> <span class="gh-select" {{bind-attr data-select-text=selectedTheme.label}} tabindex="0">
{{view Ember.Select {{view Ember.Select
id="activeTheme" id="activeTheme"
name="general[activeTheme]" name="general[activeTheme]"