Commit 0d71d0d6 by Omar Al-Ithawi

Corrected RTL issues new forum post button:

 - Word break in Arabic on Google Chrome
 - Refactored forum buttons
parent bae7cfee
// discussion - mixins and extends // discussion - mixins and extends
// ==================== // ====================
@mixin blue-button { @mixin discussion-button() {
@include linear-gradient(top, #6dccf1, #38a8e5);
display: block; display: block;
border: 1px solid #2d81ad; border: 1px solid;
border-radius: 3px; border-radius: 3px;
padding: 0 ($baseline*0.75);
height: 35px; height: 35px;
color: $white;
text-shadow: none;
font-size: 13px;
line-height: 35px; line-height: 35px;
font-size: 13px;
white-space: nowrap; // Prevent word-break in Arabic in Google Chrome
text-shadow: none;
padding: 0 ($baseline*0.75);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
}
@mixin blue-button {
@include discussion-button();
@include linear-gradient(top, #6dccf1, #38a8e5);
border-color: #2d81ad;
color: $white;
&:hover, &:focus { &:hover, &:focus {
@include linear-gradient(top, #4fbbe4, #2090d0); @include linear-gradient(top, #4fbbe4, #2090d0);
...@@ -21,17 +27,10 @@ ...@@ -21,17 +27,10 @@
} }
@mixin white-button { @mixin white-button {
@include discussion-button();
@include linear-gradient(top, $white, $gray-l5); @include linear-gradient(top, $white, $gray-l5);
display: block; border-color: #aaa;
border: 1px solid #aaa;
border-radius: 3px;
padding: 0 ($baseline*0.75);
height: 35px;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
color: $dark-gray; color: $dark-gray;
text-shadow: none;
font-size: 13px;
line-height: 35px;
&:hover, &:focus { &:hover, &:focus {
@include linear-gradient(top, $white, $gray-l6); @include linear-gradient(top, $white, $gray-l6);
...@@ -39,17 +38,10 @@ ...@@ -39,17 +38,10 @@
} }
@mixin dark-grey-button { @mixin dark-grey-button {
display: block; @include discussion-button();
border: 1px solid #222; @include linear-gradient(top, #777, #555);
border-radius: 3px; border-color: #222;
padding: 0 ($baseline*0.75);
height: 35px;
background: -webkit-linear-gradient(top, #777, #555);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px rgba(0, 0, 0, .15);
color: $white; color: $white;
text-shadow: none;
font-size: 13px;
line-height: 35px;
&:hover, &:focus { &:hover, &:focus {
background: -webkit-linear-gradient(top, #888, #666); background: -webkit-linear-gradient(top, #888, #666);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment