2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

descriptive docs variable naming (#24521)

* use descriptive docs btn naming

* rename `btn-bd-yellow` to `btn-bd-download`

* sort state vars

* sort state vars
  * info, warning, danger

* rename btn-bd-purple

* rename `.btn-bd-purple` to `.btn-bd-primary`

* align docs color variables

* generate $bd-purple-light color

* with http://razorltd.github.io/sasscolourfunctioncalculator/

* allow overide of docs variables
This commit is contained in:
m5o
2017-11-06 23:21:03 +01:00
committed by Mark Otto
parent 20b2e67ddc
commit 09ae92a0a0
5 changed files with 19 additions and 19 deletions
+7 -7
View File
@@ -2,7 +2,7 @@
//
// Custom buttons for the docs.
.btn-bd-purple {
.btn-bd-primary {
font-weight: 500;
color: $bd-purple-bright;
border-color: $bd-purple-bright;
@@ -15,15 +15,15 @@
}
}
.btn-bd-yellow {
.btn-bd-download {
font-weight: 500;
color: $bd-yellow;
border-color: $bd-yellow;
color: $bd-download;
border-color: $bd-download;
&:hover,
&:active {
color: $bd-graphite;
background-color: $bd-yellow;
border-color: $bd-yellow;
color: $bd-dark;
background-color: $bd-download;
border-color: $bd-download;
}
}
+8 -8
View File
@@ -1,9 +1,9 @@
// Local docs variables
$bd-purple: #563d7c;
$bd-purple-bright: lighten(saturate($bd-purple, 5%), 15%);
$bd-purple-light: #cdbfe3;
$bd-graphite: #2a2730;
$bd-yellow: #ffe484;
$bd-danger: #d9534f;
$bd-warning: #f0ad4e;
$bd-info: #5bc0de;
$bd-purple: #563d7c !default;
$bd-purple-bright: lighten(saturate($bd-purple, 5%), 15%) !default;
$bd-purple-light: lighten(saturate($bd-purple, 5%), 45%) !default;
$bd-dark: #2a2730 !default;
$bd-download: #ffe484 !default;
$bd-info: #5bc0de !default;
$bd-warning: #f0ad4e !default;
$bd-danger: #d9534f !default;