0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-06 04:08:22 +01:00

update comments and syntax

This commit is contained in:
Mark Otto 2017-07-02 15:23:29 -07:00
parent 6621d55471
commit 5706cfe42a

View File

@ -1,9 +1,7 @@
/* // Grid examples
* Grid examples //
* // Highlight the grid columns within the docs so folks can see their padding,
* Highlight the grid columns within the docs so folks can see their padding, // alignment, sizing, etc.
* alignment, sizing, etc.
*/
.show-grid { .show-grid {
margin-bottom: 15px; margin-bottom: 15px;
@ -17,12 +15,10 @@
border: 1px solid rgba(86,61,124,.2); border: 1px solid rgba(86,61,124,.2);
} }
/* // Examples
* Examples //
* // Isolated sections of example content for each component or feature. Usually
* Isolated sections of example content for each component or feature. Usually // followed by a code snippet.
* followed by a code snippet.
*/
.bs-example { .bs-example {
position: relative; position: relative;
@ -34,7 +30,7 @@
-webkit-box-shadow: inset 0 3px 6px rgba(0,0,0,.05); -webkit-box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
box-shadow: inset 0 3px 6px rgba(0,0,0,.05); box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
} }
/* Echo out a label for the example */ // Echo out a label for the example
.bs-example:after { .bs-example:after {
position: absolute; position: absolute;
top: 15px; top: 15px;
@ -51,7 +47,7 @@
padding-bottom: 24px; padding-bottom: 24px;
} }
/* Tweak display of the code snippets when following an example */ // Tweak display of the code snippets when following an example
.bs-example + .highlight, .bs-example + .highlight,
.bs-example + .zero-clipboard + .highlight { .bs-example + .zero-clipboard + .highlight {
margin: -15px -15px 15px; margin: -15px -15px 15px;
@ -59,8 +55,8 @@
border-radius: 0; border-radius: 0;
} }
/* Make the examples and snippets not full-width */ // Make the examples and snippets not full-width
@media (min-width: 768px) { @media (min-width: @screen-sm-min) {
.bs-example { .bs-example {
margin-right: 0; margin-right: 0;
margin-left: 0; margin-left: 0;
@ -85,12 +81,12 @@
} }
} }
/* Undo width of container */ // Undo width of container
.bs-example .container { .bs-example .container {
width: auto; width: auto;
} }
/* Tweak content of examples for optimum awesome */ // Tweak content of examples for optimum awesome
.bs-example > p:last-child, .bs-example > p:last-child,
.bs-example > ul:last-child, .bs-example > ul:last-child,
.bs-example > ol:last-child, .bs-example > ol:last-child,
@ -111,7 +107,7 @@
float: none; float: none;
} }
/* Typography */ // Typography
.bs-example-type .table .type-info { .bs-example-type .table .type-info {
color: #767676; color: #767676;
vertical-align: middle; vertical-align: middle;
@ -132,24 +128,24 @@
margin: 0; margin: 0;
} }
/* Contextual background colors */ // Contextual background colors
.bs-example-bg-classes p { .bs-example-bg-classes p {
padding: 15px; padding: 15px;
} }
/* Images */ // Images
.bs-example > .img-circle, .bs-example > .img-circle,
.bs-example > .img-rounded, .bs-example > .img-rounded,
.bs-example > .img-thumbnail { .bs-example > .img-thumbnail {
margin: 5px; margin: 5px;
} }
/* Tables */ // Tables
.bs-example > .table-responsive > .table { .bs-example > .table-responsive > .table {
background-color: #fff; background-color: #fff;
} }
/* Buttons */ // Buttons
.bs-example > .btn, .bs-example > .btn,
.bs-example > .btn-group { .bs-example > .btn-group {
margin-top: 5px; margin-top: 5px;
@ -159,7 +155,7 @@
margin-top: 10px; margin-top: 10px;
} }
/* Forms */ // Forms
.bs-example-control-sizing select, .bs-example-control-sizing select,
.bs-example-control-sizing input[type="text"] + input[type="text"] { .bs-example-control-sizing input[type="text"] + input[type="text"] {
margin-top: 10px; margin-top: 10px;
@ -171,12 +167,12 @@
resize: vertical; resize: vertical;
} }
/* List groups */ // List groups
.bs-example > .list-group { .bs-example > .list-group {
max-width: 400px; max-width: 400px;
} }
/* Navbars */ // Navbars
.bs-example .navbar:last-child { .bs-example .navbar:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
@ -184,7 +180,7 @@
.bs-navbar-bottom-example { .bs-navbar-bottom-example {
z-index: 1; z-index: 1;
padding: 0; padding: 0;
overflow: hidden; /* cut the drop shadows off */ overflow: hidden; // cut the drop shadows off
} }
.bs-navbar-top-example .navbar-header, .bs-navbar-top-example .navbar-header,
.bs-navbar-bottom-example .navbar-header { .bs-navbar-bottom-example .navbar-header {
@ -222,18 +218,18 @@
} }
} }
/* Pagination */ // Pagination
.bs-example .pagination { .bs-example .pagination {
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
} }
/* Pager */ // Pager
.bs-example > .pager { .bs-example > .pager {
margin-top: 0; margin-top: 0;
} }
/* Example modals */ // Example modals
.bs-example-modal { .bs-example-modal {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
@ -252,7 +248,7 @@
margin-left: auto; margin-left: auto;
} }
/* Example dropdowns */ // Example dropdowns
.bs-example > .dropdown > .dropdown-toggle { .bs-example > .dropdown > .dropdown-toggle {
float: left; float: left;
} }
@ -263,12 +259,12 @@
clear: left; clear: left;
} }
/* Example tabbable tabs */ // Example tabbable tabs
.bs-example-tabs .nav-tabs { .bs-example-tabs .nav-tabs {
margin-bottom: 15px; margin-bottom: 15px;
} }
/* Tooltips */ // Tooltips
.bs-example-tooltips { .bs-example-tooltips {
text-align: center; text-align: center;
} }
@ -283,7 +279,7 @@
opacity: 1; opacity: 1;
} }
/* Popovers */ // Popovers
.bs-example-popover { .bs-example-popover {
padding-bottom: 24px; padding-bottom: 24px;
background-color: #f9f9f9; background-color: #f9f9f9;
@ -296,7 +292,7 @@
margin: 20px; margin: 20px;
} }
/* Scrollspy demo on fixed height div */ // Scrollspy demo on fixed height div
.scrollspy-example { .scrollspy-example {
position: relative; position: relative;
height: 200px; height: 200px;
@ -308,17 +304,17 @@
max-width: 300px; max-width: 300px;
} }
/* Simple collapse example */ // Simple collapse example
#collapseExample .well { #collapseExample .well {
margin-bottom: 0; margin-bottom: 0;
} }
/* Pseudo :focus state for showing how it looks in the docs */ // Pseudo :focus state for showing how it looks in the docs
#focusedInput { #focusedInput {
border-color: rgb(204,204,204); /* Restate unfocused value to make CSSLint happy that there's a pre-CSS3 fallback*/ border-color: rgb(204,204,204); // Restate unfocused value to make CSSLint happy that there's a pre-CSS3 fallback
border-color: rgba(82,168,236,.8); border-color: rgba(82,168,236,.8);
outline: 0; outline: 0;
outline: thin dotted \9; /* IE6-9 */ outline: thin dotted \9; // IE6-9
-webkit-box-shadow: 0 0 8px rgba(82,168,236,.6); -webkit-box-shadow: 0 0 8px rgba(82,168,236,.6);
box-shadow: 0 0 8px rgba(82,168,236,.6); box-shadow: 0 0 8px rgba(82,168,236,.6);
} }