Browse Source

updated bootstrap less

Rafał Pitoń 10 years ago
parent
commit
a713f13e50

+ 2 - 2
misago/emberapp/app/styles/bootstrap/alerts.less

@@ -18,7 +18,7 @@
     // Specified for the h4 to prevent conflicts of changing @headings-color
     // Specified for the h4 to prevent conflicts of changing @headings-color
     color: inherit;
     color: inherit;
   }
   }
-  
+
   // Provide class for links that match alerts
   // Provide class for links that match alerts
   .alert-link {
   .alert-link {
     font-weight: @alert-link-font-weight;
     font-weight: @alert-link-font-weight;
@@ -29,7 +29,7 @@
   > ul {
   > ul {
     margin-bottom: 0;
     margin-bottom: 0;
   }
   }
-  
+
   > p + p {
   > p + p {
     margin-top: 5px;
     margin-top: 5px;
   }
   }

+ 6 - 5
misago/emberapp/app/styles/bootstrap/badges.less

@@ -28,8 +28,9 @@
     position: relative;
     position: relative;
     top: -1px;
     top: -1px;
   }
   }
-  
-  .btn-xs & {
+
+  .btn-xs &,
+  .btn-group-xs > .btn & {
     top: 0;
     top: 0;
     padding: 1px 5px;
     padding: 1px 5px;
   }
   }
@@ -50,15 +51,15 @@
     color: @badge-active-color;
     color: @badge-active-color;
     background-color: @badge-active-bg;
     background-color: @badge-active-bg;
   }
   }
-  
+
   .list-group-item > & {
   .list-group-item > & {
     float: right;
     float: right;
   }
   }
-  
+
   .list-group-item > & + & {
   .list-group-item > & + & {
     margin-right: 5px;
     margin-right: 5px;
   }
   }
-  
+
   .nav-pills > li > a > & {
   .nav-pills > li > a > & {
     margin-left: 3px;
     margin-left: 3px;
   }
   }

+ 1 - 2
misago/emberapp/app/styles/bootstrap/component-animations.less

@@ -17,9 +17,8 @@
 
 
 .collapse {
 .collapse {
   display: none;
   display: none;
-  visibility: hidden;
 
 
-  &.in      { display: block; visibility: visible; }
+  &.in      { display: block; }
   tr&.in    { display: table-row; }
   tr&.in    { display: table-row; }
   tbody&.in { display: table-row-group; }
   tbody&.in { display: table-row-group; }
 }
 }

+ 1 - 1
misago/emberapp/app/styles/bootstrap/dropdowns.less

@@ -10,7 +10,7 @@
   height: 0;
   height: 0;
   margin-left: 2px;
   margin-left: 2px;
   vertical-align: middle;
   vertical-align: middle;
-  border-top:   @caret-width-base solid;
+  border-top:   @caret-width-base dashed;
   border-right: @caret-width-base solid transparent;
   border-right: @caret-width-base solid transparent;
   border-left:  @caret-width-base solid transparent;
   border-left:  @caret-width-base solid transparent;
 }
 }

+ 10 - 2
misago/emberapp/app/styles/bootstrap/forms.less

@@ -141,11 +141,15 @@ output {
   &[disabled],
   &[disabled],
   &[readonly],
   &[readonly],
   fieldset[disabled] & {
   fieldset[disabled] & {
-    cursor: @cursor-disabled;
     background-color: @input-bg-disabled;
     background-color: @input-bg-disabled;
     opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
     opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
   }
   }
 
 
+  &[disabled],
+  fieldset[disabled] & {
+    cursor: @cursor-disabled;
+  }
+
   // Reset height for `textarea`s
   // Reset height for `textarea`s
   textarea& {
   textarea& {
     height: auto;
     height: auto;
@@ -198,7 +202,7 @@ input[type="search"] {
 // horizontal forms, use the predefined grid classes.
 // horizontal forms, use the predefined grid classes.
 
 
 .form-group {
 .form-group {
-  margin-bottom: 15px;
+  margin-bottom: @form-group-margin-bottom;
 }
 }
 
 
 
 
@@ -238,6 +242,7 @@ input[type="search"] {
 // Radios and checkboxes on same line
 // Radios and checkboxes on same line
 .radio-inline,
 .radio-inline,
 .checkbox-inline {
 .checkbox-inline {
+  position: relative;
   display: inline-block;
   display: inline-block;
   padding-left: 20px;
   padding-left: 20px;
   margin-bottom: 0;
   margin-bottom: 0;
@@ -294,6 +299,7 @@ input[type="checkbox"] {
   padding-bottom: (@padding-base-vertical + 1);
   padding-bottom: (@padding-base-vertical + 1);
   // Remove default margin from `p`
   // Remove default margin from `p`
   margin-bottom: 0;
   margin-bottom: 0;
+  min-height: (@line-height-computed + @font-size-base);
 
 
   &.input-lg,
   &.input-lg,
   &.input-sm {
   &.input-sm {
@@ -323,6 +329,7 @@ input[type="checkbox"] {
     padding: @padding-small-vertical @padding-small-horizontal;
     padding: @padding-small-vertical @padding-small-horizontal;
     font-size: @font-size-small;
     font-size: @font-size-small;
     line-height: @line-height-small;
     line-height: @line-height-small;
+    min-height: (@line-height-computed + @font-size-small);
   }
   }
 }
 }
 
 
@@ -338,6 +345,7 @@ input[type="checkbox"] {
     padding: @padding-large-vertical @padding-large-horizontal;
     padding: @padding-large-vertical @padding-large-horizontal;
     font-size: @font-size-large;
     font-size: @font-size-large;
     line-height: @line-height-large;
     line-height: @line-height-large;
+    min-height: (@line-height-computed + @font-size-large);
   }
   }
 }
 }
 
 

+ 4 - 0
misago/emberapp/app/styles/bootstrap/glyphicons.less

@@ -266,8 +266,12 @@
 .glyphicon-piggy-bank             { &:before { content: "\e225"; } }
 .glyphicon-piggy-bank             { &:before { content: "\e225"; } }
 .glyphicon-scissors               { &:before { content: "\e226"; } }
 .glyphicon-scissors               { &:before { content: "\e226"; } }
 .glyphicon-bitcoin                { &:before { content: "\e227"; } }
 .glyphicon-bitcoin                { &:before { content: "\e227"; } }
+.glyphicon-btc                    { &:before { content: "\e227"; } }
+.glyphicon-xbt                    { &:before { content: "\e227"; } }
 .glyphicon-yen                    { &:before { content: "\00a5"; } }
 .glyphicon-yen                    { &:before { content: "\00a5"; } }
+.glyphicon-jpy                    { &:before { content: "\00a5"; } }
 .glyphicon-ruble                  { &:before { content: "\20bd"; } }
 .glyphicon-ruble                  { &:before { content: "\20bd"; } }
+.glyphicon-rub                    { &:before { content: "\20bd"; } }
 .glyphicon-scale                  { &:before { content: "\e230"; } }
 .glyphicon-scale                  { &:before { content: "\e230"; } }
 .glyphicon-ice-lolly              { &:before { content: "\e231"; } }
 .glyphicon-ice-lolly              { &:before { content: "\e231"; } }
 .glyphicon-ice-lolly-tasted       { &:before { content: "\e232"; } }
 .glyphicon-ice-lolly-tasted       { &:before { content: "\e232"; } }

+ 1 - 1
misago/emberapp/app/styles/bootstrap/jumbotron.less

@@ -13,7 +13,7 @@
   .h1 {
   .h1 {
     color: @jumbotron-heading-color;
     color: @jumbotron-heading-color;
   }
   }
-  
+
   p {
   p {
     margin-bottom: (@jumbotron-padding / 2);
     margin-bottom: (@jumbotron-padding / 2);
     font-size: @jumbotron-font-size;
     font-size: @jumbotron-font-size;

+ 3 - 1
misago/emberapp/app/styles/bootstrap/modals.less

@@ -62,10 +62,12 @@
 
 
 // Modal background
 // Modal background
 .modal-backdrop {
 .modal-backdrop {
-  position: absolute;
+  position: fixed;
   top: 0;
   top: 0;
   right: 0;
   right: 0;
+  bottom: 0;
   left: 0;
   left: 0;
+  z-index: @zindex-modal-background;
   background-color: @modal-backdrop-bg;
   background-color: @modal-backdrop-bg;
   // Fade for backdrop
   // Fade for backdrop
   &.fade { .opacity(0); }
   &.fade { .opacity(0); }

+ 0 - 1
misago/emberapp/app/styles/bootstrap/navbar.less

@@ -67,7 +67,6 @@
 
 
     &.collapse {
     &.collapse {
       display: block !important;
       display: block !important;
-      visibility: visible !important;
       height: auto !important;
       height: auto !important;
       padding-bottom: 0; // Override default setting
       padding-bottom: 0; // Override default setting
       overflow: visible !important;
       overflow: visible !important;

+ 0 - 2
misago/emberapp/app/styles/bootstrap/navs.less

@@ -223,11 +223,9 @@
 .tab-content {
 .tab-content {
   > .tab-pane {
   > .tab-pane {
     display: none;
     display: none;
-    visibility: hidden;
   }
   }
   > .active {
   > .active {
     display: block;
     display: block;
-    visibility: visible;
   }
   }
 }
 }
 
 

+ 8 - 8
misago/emberapp/app/styles/bootstrap/responsive-embed.less

@@ -22,14 +22,14 @@
     width: 100%;
     width: 100%;
     border: 0;
     border: 0;
   }
   }
+}
 
 
-  // Modifier class for 16:9 aspect ratio
-  &.embed-responsive-16by9 {
-    padding-bottom: 56.25%;
-  }
+// Modifier class for 16:9 aspect ratio
+.embed-responsive-16by9 {
+  padding-bottom: 56.25%;
+}
 
 
-  // Modifier class for 4:3 aspect ratio
-  &.embed-responsive-4by3 {
-    padding-bottom: 75%;
-  }
+// Modifier class for 4:3 aspect ratio
+.embed-responsive-4by3 {
+  padding-bottom: 75%;
 }
 }

+ 12 - 0
misago/emberapp/app/styles/bootstrap/scaffolding.less

@@ -148,3 +148,15 @@ hr {
     clip: auto;
     clip: auto;
   }
   }
 }
 }
+
+
+// iOS "clickable elements" fix for role="button"
+//
+// Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
+// for traditionally non-focusable elements with role="button"
+// see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
+// Upstream patch for normalize.css submitted: https://github.com/necolas/normalize.css/pull/379 - remove this fix once that is merged
+
+[role="button"] {
+  cursor: pointer;
+}

+ 0 - 1
misago/emberapp/app/styles/bootstrap/tooltip.less

@@ -8,7 +8,6 @@
   position: absolute;
   position: absolute;
   z-index: @zindex-tooltip;
   z-index: @zindex-tooltip;
   display: block;
   display: block;
-  visibility: visible;
   // Reset font and text properties given new insertion method
   // Reset font and text properties given new insertion method
   font-family: @font-family-base;
   font-family: @font-family-base;
   font-size: @font-size-small;
   font-size: @font-size-small;

+ 1 - 1
misago/emberapp/app/styles/bootstrap/type.less

@@ -238,7 +238,7 @@ abbr[data-original-title] {
 }
 }
 .initialism {
 .initialism {
   font-size: 90%;
   font-size: 90%;
-  text-transform: uppercase;
+  .text-uppercase();
 }
 }
 
 
 // Blockquotes
 // Blockquotes

+ 0 - 1
misago/emberapp/app/styles/bootstrap/utilities.less

@@ -44,7 +44,6 @@
 
 
 .hidden {
 .hidden {
   display: none !important;
   display: none !important;
-  visibility: hidden !important;
 }
 }
 
 
 
 

+ 5 - 1
misago/emberapp/app/styles/bootstrap/variables.less

@@ -207,6 +207,9 @@
 //** Small `.form-control` height
 //** Small `.form-control` height
 @input-height-small:             (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
 @input-height-small:             (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
 
 
+//** `.form-group` margin
+@form-group-margin-bottom:       15px;
+
 @legend-color:                   @gray-dark;
 @legend-color:                   @gray-dark;
 @legend-border-color:            #e5e5e5;
 @legend-border-color:            #e5e5e5;
 
 
@@ -266,7 +269,8 @@
 @zindex-popover:           1060;
 @zindex-popover:           1060;
 @zindex-tooltip:           1070;
 @zindex-tooltip:           1070;
 @zindex-navbar-fixed:      1030;
 @zindex-navbar-fixed:      1030;
-@zindex-modal:             1040;
+@zindex-modal-background:  1040;
+@zindex-modal:             1050;
 
 
 
 
 //== Media queries breakpoints
 //== Media queries breakpoints