Browse Source

Rearrange usability.

pull/29/head^2
Evan Theurer 12 years ago
parent
commit
29e5844f8e
  1. 83
      src/styles/components/_usability.scss
  2. 6
      src/styles/global/_mixins.scss
  3. 4
      src/styles/global/_variables.scss

83
src/styles/components/_usability.scss

@ -18,53 +18,46 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
#help { #help {
position:absolute; border-top: 1px solid $bordercolor;
top:80px; bottom: 10px;
bottom:10px; color: #aaa;
left:0px; font-size: 1.1em;
right:0px; left: 0;
width:350px; margin: 0 auto;
font-size:1.1em; position: absolute;
color:#aaa; right: 0;
text-shadow: 0 0 5px black; text-shadow: 0 0 5px black;
margin: 0 auto; transition: right 200ms ease-in-out;
-webkit-transition: right 200ms ease-in-out; top: 80px;
-moz-transition: right 200ms ease-in-out; user-select: none;
-ms-transition: right 200ms ease-in-out; width: 350px;
-o-transition: right 200ms ease-in-out;
transition: right 200ms ease-in-out;
boder-top:1px solid $bordercolor;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
} }
.withChat #help, .withBuddylist #help {
right:260px; .withChat #help,
.withBuddylist #help {
right: 260px;
} }
.withChat.withBuddylist #help, .withSettings #help {
right:520px; .withChat.withBuddylist #help,
.withSettings #help {
right: 520px;
} }
#help > div {
margin:0 10px; #help {
} > div {
#help .help-subline { margin: 0 10px;
padding:20px 0; }
color:#888; .help-subline {
} color: #888;
@media only screen and (max-width: 1020px) and (min-width: 400px) { padding: 20px 0;
#help { }
width:250px; @include breakpt-only-screen($breakpoint-useability-small){
font-size:1em; display: none;
} }
#help > div { @include breakpt-only-screen-with-min($breakpoint-useability-small, $breakpoint-useability-large){
//margin-left:10px; font-size: 1em;
} width: 250px;
} }
@media only screen and (max-width: 400px) {
#help {
display:none;
}
} }

6
src/styles/global/_mixins.scss

@ -17,6 +17,12 @@
} }
} }
@mixin breakpt-only-screen-with-min($pt1, $pt2) {
@media only screen and (min-width: $pt1) and (max-width: $pt2) {
@content;
}
}
// not handled by autoprefixer // not handled by autoprefixer
@mixin tap-highlight-color($color) { @mixin tap-highlight-color($color) {
-webkit-tap-highlight-color: $color; -webkit-tap-highlight-color: $color;

4
src/styles/global/_variables.scss

@ -98,6 +98,10 @@ $social-google-color: #dd4b39;
$social-twitter-color: #00aced; $social-twitter-color: #00aced;
$social-xing-color: white; $social-xing-color: white;
// useability
$breakpoint-useability-small: 400px;
$breakpoint-useability-large: 1020px;
// breakpoints // breakpoints
$breakpoint-small: 480px; $breakpoint-small: 480px;
$breakpoint-medium: 700px; $breakpoint-medium: 700px;

Loading…
Cancel
Save