-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
133 additions
and
2,940 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,109 @@ | ||
.btn { | ||
position: relative; | ||
padding: 8px 30px; | ||
border: 0; | ||
margin: 10px 1px; | ||
cursor: pointer; | ||
border-radius: 2px; | ||
text-transform: uppercase; | ||
text-decoration: none; | ||
color: @darkbg-text; | ||
position: relative; | ||
padding: 8px 30px; | ||
border: 0; | ||
margin: 10px 1px; | ||
cursor: pointer; | ||
border-radius: 2px; | ||
text-transform: uppercase; | ||
text-decoration: none; | ||
color: @darkbg-text; | ||
|
||
&:hover:not(.btn-link):not(.btn-flat) { | ||
.shadow-z-2-hover(); | ||
} | ||
&:active:not(.btn-link):not(.btn-flat) { | ||
.shadow-z-3(); | ||
} | ||
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1); | ||
outline: none !important; | ||
&:hover:not(.btn-link):not(.btn-flat) { | ||
.shadow-z-2-hover(); | ||
} | ||
&:active:not(.btn-link):not(.btn-flat) { | ||
.shadow-z-3(); | ||
} | ||
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1); | ||
outline: none !important; | ||
|
||
.variations(~".btn-flat:not(.btn-link)", color, @lightbg-text); | ||
.variations(~".btn-flat:not(.btn-link)", color, @lightbg-text); | ||
|
||
.background-variations(~":not(.btn-link):not(.btn-flat)", @btn-default); | ||
|
||
&.btn-flat { | ||
background: none; | ||
box-shadow: none; | ||
font-weight: 500; | ||
&:disabled { | ||
color: @text-disabled !important; | ||
} | ||
&.btn-flat { | ||
background: none; | ||
box-shadow: none; | ||
font-weight: 500; | ||
&:disabled { | ||
color: @text-disabled !important; | ||
} | ||
} | ||
|
||
&.btn-raised { | ||
.btn-shadow(); | ||
} | ||
&.btn-raised { | ||
.btn-shadow(); | ||
} | ||
|
||
&.btn-fab { | ||
margin: 0; | ||
padding: 15px; | ||
font-size: 26px; | ||
width: 56px; | ||
height: 56px; | ||
&, &:hover { | ||
.shadow-z-1(); | ||
.variations(~"", background-color, transparent); | ||
} | ||
&, .ripple-wrapper { | ||
border-radius: 100%; | ||
} | ||
&.btn-fab-mini { | ||
width: 40px; | ||
height: 40px; | ||
padding: 13px; | ||
font-size: 15px; | ||
} | ||
i { | ||
position: relative; | ||
top: -5px; | ||
} | ||
&.btn-fab { | ||
margin: 0; | ||
padding: 15px; | ||
font-size: 26px; | ||
width: 56px; | ||
height: 56px; | ||
&, &:hover { | ||
.shadow-z-1(); | ||
.variations(~"", background-color, transparent); | ||
} | ||
&, .ripple-wrapper { | ||
border-radius: 100%; | ||
} | ||
&.btn-fab-mini { | ||
width: 40px; | ||
height: 40px; | ||
padding: 13px; | ||
font-size: 15px; | ||
} | ||
i { | ||
position: relative; | ||
top: -5px; | ||
} | ||
} | ||
} | ||
|
||
// This is needed to style buttons which has not a variation suffix (they must be stiled as btn-default) | ||
.btn-link, .btn:not([class^="btn btn-"]), .btn-default { | ||
color: @lightbg-text; | ||
&:hover { | ||
color: @lightbg-text; | ||
&:hover { | ||
color: @lightbg-text; | ||
} | ||
} | ||
} | ||
.btn:not([class^="btn btn-"]), .btn-default, .btn-flat:not(.btn-link) { | ||
&:hover, &.active { | ||
background-color: rgba(255,255,255,0.5); | ||
} | ||
&:hover, &.active { | ||
background-color: rgba(255,255,255,0.5); | ||
} | ||
} | ||
.open > .dropdown-toggle.btn { | ||
.variations(~"", background-color, @btn-default); | ||
.variations(~"", background-color, @btn-default); | ||
} | ||
.btn-group .btn+.btn, .btn-group .btn+.btn-group, .btn-group .btn-group+.btn, .btn-group .btn-group+.btn-group { | ||
margin-left: 0; | ||
} | ||
.btn-group, .btn-group-vertical { | ||
position: relative; | ||
border-radius: 2px; | ||
margin: 10px 1px; | ||
position: relative; | ||
border-radius: 2px; | ||
margin: 10px 1px; | ||
|
||
.btn-shadow(); | ||
&.open .dropdown-toggle { | ||
box-shadow: none; | ||
} | ||
&.btn-group-raised { | ||
.btn-shadow(); | ||
&.open .dropdown-toggle { | ||
box-shadow: none; | ||
} | ||
&.btn-group-raised { | ||
.btn-shadow(); | ||
} | ||
.btn, .btn:active, .btn-group { | ||
box-shadow: none !important; | ||
margin: 0; | ||
} | ||
} | ||
.btn, .btn:active, .btn-group { | ||
box-shadow: none !important; | ||
margin: 0; | ||
} | ||
} | ||
.btn-group-flat { | ||
box-shadow: none !important; | ||
box-shadow: none !important; | ||
} | ||
|
||
.btn-shadow() { | ||
.shadow-z-1(); | ||
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1); | ||
&:active:not(.btn-link) { | ||
.shadow-z-3(); | ||
} | ||
.shadow-z-1(); | ||
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1); | ||
&:active:not(.btn-link) { | ||
.shadow-z-3(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters