Commit 09ae92a0 authored by m5o's avatar m5o Committed by Mark Otto
Browse files

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
parent 20b2e67d
6 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!25494web pack,!25326Adjust examples,!23207#22402 : modal: new autofocus & keyboardBtnNav options,!17021v4
Showing with 19 additions and 19 deletions
+19 -19
...@@ -59,5 +59,5 @@ ...@@ -59,5 +59,5 @@
</li> </li>
</ul> </ul>
<a class="btn btn-bd-yellow d-none d-lg-inline-block mb-3 mb-md-0 ml-md-3" href="{{ site.download.source }}">Download</a> <a class="btn btn-bd-download d-none d-lg-inline-block mb-3 mb-md-0 ml-md-3" href="{{ site.download.source }}">Download</a>
</header> </header>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// //
// Custom buttons for the docs. // Custom buttons for the docs.
.btn-bd-purple { .btn-bd-primary {
font-weight: 500; font-weight: 500;
color: $bd-purple-bright; color: $bd-purple-bright;
border-color: $bd-purple-bright; border-color: $bd-purple-bright;
...@@ -15,15 +15,15 @@ ...@@ -15,15 +15,15 @@
} }
} }
.btn-bd-yellow { .btn-bd-download {
font-weight: 500; font-weight: 500;
color: $bd-yellow; color: $bd-download;
border-color: $bd-yellow; border-color: $bd-download;
&:hover, &:hover,
&:active { &:active {
color: $bd-graphite; color: $bd-dark;
background-color: $bd-yellow; background-color: $bd-download;
border-color: $bd-yellow; border-color: $bd-download;
} }
} }
// Local docs variables // Local docs variables
$bd-purple: #563d7c; $bd-purple: #563d7c !default;
$bd-purple-bright: lighten(saturate($bd-purple, 5%), 15%); $bd-purple-bright: lighten(saturate($bd-purple, 5%), 15%) !default;
$bd-purple-light: #cdbfe3; $bd-purple-light: lighten(saturate($bd-purple, 5%), 45%) !default;
$bd-graphite: #2a2730; $bd-dark: #2a2730 !default;
$bd-yellow: #ffe484; $bd-download: #ffe484 !default;
$bd-danger: #d9534f; $bd-info: #5bc0de !default;
$bd-warning: #f0ad4e; $bd-warning: #f0ad4e !default;
$bd-info: #5bc0de; $bd-danger: #d9534f !default;
...@@ -15,7 +15,7 @@ Download ready-to-use compiled code for **Bootstrap v{{ site.current_version}}** ...@@ -15,7 +15,7 @@ Download ready-to-use compiled code for **Bootstrap v{{ site.current_version}}**
This doesn't include documentation, source files, or any optional JavaScript dependencies (jQuery and Popper.js). This doesn't include documentation, source files, or any optional JavaScript dependencies (jQuery and Popper.js).
<a href="{{ site.download.dist }}" class="btn btn-bd-purple" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download Bootstrap');">Download</a> <a href="{{ site.download.dist }}" class="btn btn-bd-primary" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download Bootstrap');">Download</a>
## Source files ## Source files
...@@ -26,7 +26,7 @@ Compile Bootstrap with your own asset pipeline by downloading our source Sass, J ...@@ -26,7 +26,7 @@ Compile Bootstrap with your own asset pipeline by downloading our source Sass, J
Should you require [build tools]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/build-tools/#tooling-setup), they are included for developing Bootstrap and its docs, but they're likely unsuitable for your own purposes. Should you require [build tools]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/build-tools/#tooling-setup), they are included for developing Bootstrap and its docs, but they're likely unsuitable for your own purposes.
<a href="{{ site.download.source }}" class="btn btn-bd-purple" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download source');">Download source</a> <a href="{{ site.download.source }}" class="btn btn-bd-primary" onclick="ga('send', 'event', 'Getting started', 'Download', 'Download source');">Download source</a>
## Bootstrap CDN ## Bootstrap CDN
......
...@@ -17,7 +17,7 @@ layout: home ...@@ -17,7 +17,7 @@ layout: home
Bootstrap is an open source toolkit for developing with HTML, CSS, and JS. Quickly prototype your ideas or build your entire app with our Sass variables and mixins, responsive grid system, extensive prebuilt components, and powerful plugins built on jQuery. Bootstrap is an open source toolkit for developing with HTML, CSS, and JS. Quickly prototype your ideas or build your entire app with our Sass variables and mixins, responsive grid system, extensive prebuilt components, and powerful plugins built on jQuery.
</p> </p>
<div class="d-flex flex-column flex-md-row lead mb-3"> <div class="d-flex flex-column flex-md-row lead mb-3">
<a href="{{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/introduction/" class="btn btn-lg btn-bd-purple mb-3 mb-md-0 mr-md-3" onclick="ga('send', 'event', 'Jumbotron actions', 'Get started', 'Get started');">Get started</a> <a href="{{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/introduction/" class="btn btn-lg btn-bd-primary mb-3 mb-md-0 mr-md-3" onclick="ga('send', 'event', 'Jumbotron actions', 'Get started', 'Get started');">Get started</a>
<a href="{{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/download/" class="btn btn-lg btn-outline-secondary" onclick="ga('send', 'event', 'Jumbotron actions', 'Download', 'Download {{ site.current_version }}');">Download</a> <a href="{{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/download/" class="btn btn-lg btn-outline-secondary" onclick="ga('send', 'event', 'Jumbotron actions', 'Download', 'Download {{ site.current_version }}');">Download</a>
</div> </div>
<p class="text-muted mb-0"> <p class="text-muted mb-0">
......
Supports Markdown
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