]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
more syntax changes
authorMark Otto <markdotto@gmail.com>
Sun, 2 Jul 2017 22:28:51 +0000 (15:28 -0700)
committerMark Otto <markdotto@gmail.com>
Sun, 2 Jul 2017 22:28:51 +0000 (15:28 -0700)
12 files changed:
docs/assets/less/featurettes.less
docs/assets/less/footer.less
docs/assets/less/glyphicons.less
docs/assets/less/ie10-viewport-bug-workaround.less
docs/assets/less/masthead.less
docs/assets/less/page-header.less
docs/assets/less/responsive-tests.less
docs/assets/less/sidebar.less
docs/assets/less/skip-link.less
docs/assets/less/swatches.less
docs/assets/less/syntax.less
docs/assets/less/zero-clipboard.less

index caeb86ffc513a2533b2e555531b72922d30eacaf..7df3e94d5445dce7156d4cd41554aa706f953220 100644 (file)
   margin-bottom: 15px;
 }
 
-@media (min-width: 480px) {
+@media (min-width: @screen-xs-min) {
   .bs-docs-featurette .img-responsive {
     margin-top: 30px;
   }
 }
-@media (min-width: 768px) {
+@media (min-width: @screen-sm-min) {
   .bs-docs-featurette {
     padding-top: 100px;
     padding-bottom: 100px;
index 8d9e33c1c7c1355c7b29e3abbac1df0b2b362d86..715aadb2af86bc1059a7271344a649493eb952ab 100644 (file)
@@ -20,7 +20,7 @@
   margin-left: 15px;
 }
 
-@media (min-width: 768px) {
+@media (min-width: @screen-sm-min) {
   .bs-docs-footer {
     text-align: left;
   }
index 841e1e244cc6fd42e18928a14852a687974c9eb2..b75a7f25eed121403d7e1b7ccf9af493d34a7b88 100644 (file)
@@ -25,7 +25,7 @@
 .bs-glyphicons .glyphicon-class {
   display: block;
   text-align: center;
-  word-wrap: break-word; /* Help out IE10+ with class names */
+  word-wrap: break-word; // Help out IE10+ with class names
 }
 .bs-glyphicons li:hover {
   color: #fff;
index 4b9518e2187ea6a0ba8878ddf3aca129cd024904..6ac824f93f9be3f620824eb302dde2900299938d 100644 (file)
@@ -4,10 +4,9 @@
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
 
-/*
- * See the Getting Started docs for more information:
- * http://getbootstrap.com/getting-started/#support-ie10-width
- */
+// See the Getting Started docs for more information:
+// http://getbootstrap.com/getting-started/#support-ie10-width
+
 @-ms-viewport     { width: device-width; }
 @-o-viewport      { width: device-width; }
 @viewport         { width: device-width; }
index b36d170e0d58677e954af83c22f1af1c36650e21..20c9a2671da6e42acdeeb3e9786496ac4eb7cd21 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * Homepage
- *
- * Tweaks to the custom homepage and the masthead (main jumbotron).
- */
-
-/* Share masthead with page headers */
 .bs-docs-masthead,
 .bs-docs-header {
   position: relative;
@@ -21,7 +14,7 @@
   background-repeat: repeat-x;
 }
 
-/* Masthead (headings and download button) */
+// Masthead (headings and download button)
 .bs-docs-masthead .bs-docs-booticon {
   margin: 0 auto 30px;
 }
   font-size: 20px;
 }
 
-@media (min-width: 480px) {
+@media (min-width: @screen-xs-min) {
   .bs-docs-masthead .btn {
     width: auto;
   }
 }
 
-@media (min-width: 768px) {
+@media (min-width: @screen-sm-min) {
   .bs-docs-masthead {
     padding: 80px 0;
   }
@@ -64,7 +57,7 @@
   }
 }
 
-@media (min-width: 992px) {
+@media (min-width: @screen-md-min) {
   .bs-docs-masthead .lead {
     width: 80%;
     font-size: 30px;
index 33900f3342dd21e6c1d21b2ddbbe0bcc515f9f8f..75393ead0b5cf65d7a8966f3645c72622876f292 100644 (file)
@@ -15,7 +15,7 @@
   position: relative;
 }
 
-@media (min-width: 768px) {
+@media (min-width: @screen-sm-min) {
   .bs-docs-header {
     padding-top: 60px;
     padding-bottom: 60px;
@@ -28,7 +28,7 @@
   }
 }
 
-@media (min-width: 992px) {
+@media (min-width: @screen-md-min) {
   .bs-docs-header h1,
   .bs-docs-header p {
     margin-right: 380px;
index a5c61a1039942cd063d9bb8ad651a78b949db81a..bf9d002d2b146f5eb19a6828f56899d8b9998d0d 100644 (file)
@@ -1,15 +1,9 @@
-/*
- * Responsive tests
- *
- * Generate a set of tests to show the responsive utilities in action.
- */
-
-/* Responsive (scrollable) doc tables */
+// Responsive (scrollable) doc tables
 .table-responsive .highlight pre {
   white-space: normal;
 }
 
-/* Utility classes table  */
+// Utility classes table
 .bs-table th small,
 .responsive-utilities th small {
   display: block;
@@ -31,7 +25,7 @@
   background-color: #f9f9f9 !important;
 }
 
-/* Responsive tests */
+// Responsive tests
 .responsive-utilities-test {
   margin-top: 5px;
 }
index 61d1c36101ecd3e704f03205ebd3939caf6eebfd..93932128b2e5a386a0d776299fe9faf8f95b5fd3 100644 (file)
@@ -1,20 +1,20 @@
-/* By default it's not affixed in mobile views, so undo that */
+// By default it's not affixed in mobile views, so undo that
 .bs-docs-sidebar.affix {
   position: static;
 }
-@media (min-width: 768px) {
+@media (min-width: @screen-sm-min) {
   .bs-docs-sidebar {
     padding-left: 20px;
   }
 }
 
-/* First level of nav */
+// First level of nav
 .bs-docs-sidenav {
   margin-top: 20px;
   margin-bottom: 20px;
 }
 
-/* All levels of nav */
+// All levels of nav
 .bs-docs-sidebar .nav > li > a {
   display: block;
   padding: 4px 20px;
@@ -40,9 +40,9 @@
   border-left: 2px solid #563d7c;
 }
 
-/* Nav: second level (shown on .active) */
+// Nav: second level (shown on .active)
 .bs-docs-sidebar .nav .nav {
-  display: none; /* Hide by default, but at >768px, show it */
+  display: none; // Hide by default, but at >768px, show it
   padding-bottom: 10px;
 }
 .bs-docs-sidebar .nav .nav > li > a {
@@ -63,7 +63,7 @@
   font-weight: 500;
 }
 
-/* Back to top (hidden on mobile) */
+// Back to top (hidden on mobile)
 .back-to-top,
 .bs-docs-theme-toggle {
   display: none;
   margin-top: 0;
 }
 
-@media (min-width: 768px) {
+@media (min-width: @screen-sm-min) {
   .back-to-top,
   .bs-docs-theme-toggle {
     display: block;
   }
 }
 
-/* Show and affix the side nav when space allows it */
-@media (min-width: 992px) {
+// Show and affix the side nav when space allows it
+@media (min-width: @screen-md-min) {
   .bs-docs-sidebar .nav > .active > ul {
     display: block;
   }
-  /* Widen the fixed sidebar */
+  // Widen the fixed sidebar
   .bs-docs-sidebar.affix,
   .bs-docs-sidebar.affix-bottom {
     width: 213px;
   }
   .bs-docs-sidebar.affix {
-    position: fixed; /* Undo the static from mobile first approach */
+    position: fixed; // Undo the static from mobile first approach
     top: 20px;
   }
   .bs-docs-sidebar.affix-bottom {
-    position: absolute; /* Undo the static from mobile first approach */
+    position: absolute; // Undo the static from mobile first approach
   }
   .bs-docs-sidebar.affix-bottom .bs-docs-sidenav,
   .bs-docs-sidebar.affix .bs-docs-sidenav {
     margin-bottom: 0;
   }
 }
-@media (min-width: 1200px) {
-  /* Widen the fixed sidebar again */
+@media (min-width: @screen-lg-min) {
+  // Widen the fixed sidebar again
   .bs-docs-sidebar.affix-bottom,
   .bs-docs-sidebar.affix {
     width: 263px;
index 7085e3f5c63f6530cb9067e907041a042d2e2d1f..174a64fe08e092048218cab019d52ee82eb06937 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * Fancy skip link
- *
- * Make it look a bit less "bare bones"
- * Also includes focus suppression for the Chrome tabindex="-1" workaround
- */
-
 #skippy {
   display: block;
   padding: 1em;
index 1d23e1e135e63746743bf69d3d14bc11748bbf59..f7f461193a019825bb73cfd3238591193ec9165a 100644 (file)
@@ -17,7 +17,7 @@
   }
 }
 
-/* Framework colors */
+// Framework colors
 .color-swatches .gray-darker {
   background-color: #222;
 }
@@ -49,7 +49,7 @@
   background-color: #5bc0de;
 }
 
-/* Docs colors */
+// Docs colors
 .color-swatches .bs-purple {
   background-color: #563d7c;
 }
index 37ffb104af990e8f0575e3cb6cf40aa806d54fab..ab8cc6034255f611b439bb420923e6bf2ca228d7 100644 (file)
@@ -1,65 +1,64 @@
 .hll { background-color: #ffffcc }
- /*{ background: #f0f3f3; }*/
-.c { color: #999; } /* Comment */
-.err { color: #AA0000; background-color: #FFAAAA } /* Error */
-.k { color: #006699; } /* Keyword */
-.o { color: #555555 } /* Operator */
-.cm { color: #999; } /* Comment.Multiline */ /* Edited to remove italics and make into comment */
-.cp { color: #009999 } /* Comment.Preproc */
-.c1 { color: #999; } /* Comment.Single */
-.cs { color: #999; } /* Comment.Special */
-.gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */
-.ge { font-style: italic } /* Generic.Emph */
-.gr { color: #FF0000 } /* Generic.Error */
-.gh { color: #003300; } /* Generic.Heading */
-.gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */
-.go { color: #AAAAAA } /* Generic.Output */
-.gp { color: #000099; } /* Generic.Prompt */
-.gs { } /* Generic.Strong */
-.gu { color: #003300; } /* Generic.Subheading */
-.gt { color: #99CC66 } /* Generic.Traceback */
-.kc { color: #006699; } /* Keyword.Constant */
-.kd { color: #006699; } /* Keyword.Declaration */
-.kn { color: #006699; } /* Keyword.Namespace */
-.kp { color: #006699 } /* Keyword.Pseudo */
-.kr { color: #006699; } /* Keyword.Reserved */
-.kt { color: #007788; } /* Keyword.Type */
-.m { color: #FF6600 } /* Literal.Number */
-.s { color: #d44950 } /* Literal.String */
-.na { color: #4f9fcf } /* Name.Attribute */
-.nb { color: #336666 } /* Name.Builtin */
-.nc { color: #00AA88; } /* Name.Class */
-.no { color: #336600 } /* Name.Constant */
-.nd { color: #9999FF } /* Name.Decorator */
-.ni { color: #999999; } /* Name.Entity */
-.ne { color: #CC0000; } /* Name.Exception */
-.nf { color: #CC00FF } /* Name.Function */
-.nl { color: #9999FF } /* Name.Label */
-.nn { color: #00CCFF; } /* Name.Namespace */
-.nt { color: #2f6f9f; } /* Name.Tag */
-.nv { color: #003333 } /* Name.Variable */
-.ow { color: #000000; } /* Operator.Word */
-.w { color: #bbbbbb } /* Text.Whitespace */
-.mf { color: #FF6600 } /* Literal.Number.Float */
-.mh { color: #FF6600 } /* Literal.Number.Hex */
-.mi { color: #FF6600 } /* Literal.Number.Integer */
-.mo { color: #FF6600 } /* Literal.Number.Oct */
-.sb { color: #CC3300 } /* Literal.String.Backtick */
-.sc { color: #CC3300 } /* Literal.String.Char */
-.sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */
-.s2 { color: #CC3300 } /* Literal.String.Double */
-.se { color: #CC3300; } /* Literal.String.Escape */
-.sh { color: #CC3300 } /* Literal.String.Heredoc */
-.si { color: #AA0000 } /* Literal.String.Interpol */
-.sx { color: #CC3300 } /* Literal.String.Other */
-.sr { color: #33AAAA } /* Literal.String.Regex */
-.s1 { color: #CC3300 } /* Literal.String.Single */
-.ss { color: #FFCC33 } /* Literal.String.Symbol */
-.bp { color: #336666 } /* Name.Builtin.Pseudo */
-.vc { color: #003333 } /* Name.Variable.Class */
-.vg { color: #003333 } /* Name.Variable.Global */
-.vi { color: #003333 } /* Name.Variable.Instance */
-.il { color: #FF6600 } /* Literal.Number.Integer.Long */
+.c { color: #999; }
+.err { color: #AA0000; background-color: #FFAAAA }
+.k { color: #006699; }
+.o { color: #555555 }
+.cm { color: #999; }
+.cp { color: #009999 }
+.c1 { color: #999; }
+.cs { color: #999; }
+.gd { background-color: #FFCCCC; border: 1px solid #CC0000 }
+.ge { font-style: italic }
+.gr { color: #FF0000 }
+.gh { color: #003300; }
+.gi { background-color: #CCFFCC; border: 1px solid #00CC00 }
+.go { color: #AAAAAA }
+.gp { color: #000099; }
+.gs { }
+.gu { color: #003300; }
+.gt { color: #99CC66 }
+.kc { color: #006699; }
+.kd { color: #006699; }
+.kn { color: #006699; }
+.kp { color: #006699 }
+.kr { color: #006699; }
+.kt { color: #007788; }
+.m { color: #FF6600 }
+.s { color: #d44950 }
+.na { color: #4f9fcf }
+.nb { color: #336666 }
+.nc { color: #00AA88; }
+.no { color: #336600 }
+.nd { color: #9999FF }
+.ni { color: #999999; }
+.ne { color: #CC0000; }
+.nf { color: #CC00FF }
+.nl { color: #9999FF }
+.nn { color: #00CCFF; }
+.nt { color: #2f6f9f; }
+.nv { color: #003333 }
+.ow { color: #000000; }
+.w { color: #bbbbbb }
+.mf { color: #FF6600 }
+.mh { color: #FF6600 }
+.mi { color: #FF6600 }
+.mo { color: #FF6600 }
+.sb { color: #CC3300 }
+.sc { color: #CC3300 }
+.sd { color: #CC3300; font-style: italic }
+.s2 { color: #CC3300 }
+.se { color: #CC3300; }
+.sh { color: #CC3300 }
+.si { color: #AA0000 }
+.sx { color: #CC3300 }
+.sr { color: #33AAAA }
+.s1 { color: #CC3300 }
+.ss { color: #FFCC33 }
+.bp { color: #336666 }
+.vc { color: #003333 }
+.vg { color: #003333 }
+.vi { color: #003333 }
+.il { color: #FF6600 }
 
 .css .o,
 .css .o + .nt,
@@ -88,7 +87,7 @@
 }
 .highlight pre code {
   font-size: inherit;
-  color: #333; /* Effectively the base text color */
+  color: #333; // Effectively the base text color
 }
 .highlight pre code:first-child {
   display: inline-block;
index 2a12503936d99a32cc04aa11f277455921b43e8f..13cfb149b2ce7558a4dddf63e96b441e53be787a 100644 (file)
@@ -22,7 +22,7 @@
   border-color: #563d7c;
 }
 
-@media (min-width: 768px) {
+@media (min-width: @screen-sm-min) {
   .zero-clipboard {
     display: block;
   }