Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
be03a530
Commit
be03a530
authored
Oct 30, 2012
by
Ninir
Committed by
Mark Otto
Oct 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced hardcoded CSS rules with mixins
parent
14b94174
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
55 deletions
+18
-55
less/button-groups.less
less/button-groups.less
+8
-24
less/dropdowns.less
less/dropdowns.less
+3
-9
less/reset.less
less/reset.less
+1
-3
less/tables.less
less/tables.less
+6
-19
No files found.
less/button-groups.less
View file @
be03a530
...
@@ -58,41 +58,25 @@
...
@@ -58,41 +58,25 @@
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
.btn-group > .btn:first-child {
.btn-group > .btn:first-child {
margin-left: 0;
margin-left: 0;
-webkit-border-top-left-radius: 4px;
.border-top-left-radius(4px);
-moz-border-radius-topleft: 4px;
.border-bottom-left-radius(4px);
border-top-left-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
border-bottom-left-radius: 4px;
}
}
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
.btn-group > .btn:last-child,
.btn-group > .btn:last-child,
.btn-group > .dropdown-toggle {
.btn-group > .dropdown-toggle {
-webkit-border-top-right-radius: 4px;
.border-top-right-radius(4px);
-moz-border-radius-topright: 4px;
.border-bottom-right-radius(4px);
border-top-right-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
border-bottom-right-radius: 4px;
}
}
// Reset corners for large buttons
// Reset corners for large buttons
.btn-group > .btn.large:first-child {
.btn-group > .btn.large:first-child {
margin-left: 0;
margin-left: 0;
-webkit-border-top-left-radius: 6px;
.border-top-left-radius(6px);
-moz-border-radius-topleft: 6px;
.border-bottom-left-radius(6px);
border-top-left-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-moz-border-radius-bottomleft: 6px;
border-bottom-left-radius: 6px;
}
}
.btn-group > .btn.large:last-child,
.btn-group > .btn.large:last-child,
.btn-group > .large.dropdown-toggle {
.btn-group > .large.dropdown-toggle {
-webkit-border-top-right-radius: 6px;
.border-top-right-radius(6px);
-moz-border-radius-topright: 6px;
.border-bottom-right-radius(6px);
border-top-right-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
-moz-border-radius-bottomright: 6px;
border-bottom-right-radius: 6px;
}
}
// On hover/focus/active, bring the proper btn to front
// On hover/focus/active, bring the proper btn to front
...
...
less/dropdowns.less
View file @
be03a530
...
@@ -168,9 +168,7 @@
...
@@ -168,9 +168,7 @@
left: 100%;
left: 100%;
margin-top: -6px;
margin-top: -6px;
margin-left: -1px;
margin-left: -1px;
-webkit-border-radius: 0 6px 6px 6px;
.border-radius(0 6px 6px 6px);
-moz-border-radius: 0 6px 6px 6px;
border-radius: 0 6px 6px 6px;
}
}
.dropdown-submenu:hover > .dropdown-menu {
.dropdown-submenu:hover > .dropdown-menu {
display: block;
display: block;
...
@@ -182,9 +180,7 @@
...
@@ -182,9 +180,7 @@
bottom: 0;
bottom: 0;
margin-top: 0;
margin-top: 0;
margin-bottom: -2px;
margin-bottom: -2px;
-webkit-border-radius: 5px 5px 5px 0;
.border-radius(5px 5px 5px 0);
-moz-border-radius: 5px 5px 5px 0;
border-radius: 5px 5px 5px 0;
}
}
// Caret to indicate there is a submenu
// Caret to indicate there is a submenu
...
@@ -215,9 +211,7 @@
...
@@ -215,9 +211,7 @@
> .dropdown-menu {
> .dropdown-menu {
left: -100%;
left: -100%;
margin-left: 10px;
margin-left: 10px;
-webkit-border-radius: 6px 0 6px 6px;
.border-radius(6px 0 6px 6px);
-moz-border-radius: 6px 0 6px 6px;
border-radius: 6px 0 6px 6px;
}
}
}
}
...
...
less/reset.less
View file @
be03a530
...
@@ -123,9 +123,7 @@ input[type="submit"] {
...
@@ -123,9 +123,7 @@ input[type="submit"] {
cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
}
}
input[type="search"] { // Appearance in Safari/Chrome
input[type="search"] { // Appearance in Safari/Chrome
-webkit-box-sizing: content-box;
.box-sizing(content-box);
-moz-box-sizing: content-box;
box-sizing: content-box;
-webkit-appearance: textfield;
-webkit-appearance: textfield;
}
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-decoration,
...
...
less/tables.less
View file @
be03a530
...
@@ -91,31 +91,22 @@ table {
...
@@ -91,31 +91,22 @@ table {
// For first th or td in the first row in the first thead or tbody
// For first th or td in the first row in the first thead or tbody
thead:first-child tr:first-child th:first-child,
thead:first-child tr:first-child th:first-child,
tbody:first-child tr:first-child td:first-child {
tbody:first-child tr:first-child td:first-child {
-webkit-border-top-left-radius: 4px;
.border-top-left-radius(4px);
border-top-left-radius: 4px;
-moz-border-radius-topleft: 4px;
}
}
thead:first-child tr:first-child th:last-child,
thead:first-child tr:first-child th:last-child,
tbody:first-child tr:first-child td:last-child {
tbody:first-child tr:first-child td:last-child {
-webkit-border-top-right-radius: 4px;
.border-top-right-radius(4px);
border-top-right-radius: 4px;
-moz-border-radius-topright: 4px;
}
}
// For first th or td in the first row in the first thead or tbody
// For first th or td in the first row in the first thead or tbody
thead:last-child tr:last-child th:first-child,
thead:last-child tr:last-child th:first-child,
tbody:last-child tr:last-child td:first-child,
tbody:last-child tr:last-child td:first-child,
tfoot:last-child tr:last-child td:first-child {
tfoot:last-child tr:last-child td:first-child {
.border-radius(0 0 0 4px);
.border-bottom-left-radius(4px);
-webkit-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
}
}
thead:last-child tr:last-child th:last-child,
thead:last-child tr:last-child th:last-child,
tbody:last-child tr:last-child td:last-child,
tbody:last-child tr:last-child td:last-child,
tfoot:last-child tr:last-child td:last-child {
tfoot:last-child tr:last-child td:last-child {
-webkit-border-bottom-right-radius: 4px;
.border-bottom-right-radius(4px);
border-bottom-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
}
}
// Special fixes to round the left border on the first td/th
// Special fixes to round the left border on the first td/th
...
@@ -123,17 +114,13 @@ table {
...
@@ -123,17 +114,13 @@ table {
caption + tbody tr:first-child td:first-child,
caption + tbody tr:first-child td:first-child,
colgroup + thead tr:first-child th:first-child,
colgroup + thead tr:first-child th:first-child,
colgroup + tbody tr:first-child td:first-child {
colgroup + tbody tr:first-child td:first-child {
-webkit-border-top-left-radius: 4px;
.border-top-left-radius(4px);
border-top-left-radius: 4px;
-moz-border-radius-topleft: 4px;
}
}
caption + thead tr:first-child th:last-child,
caption + thead tr:first-child th:last-child,
caption + tbody tr:first-child td:last-child,
caption + tbody tr:first-child td:last-child,
colgroup + thead tr:first-child th:last-child,
colgroup + thead tr:first-child th:last-child,
colgroup + tbody tr:first-child td:last-child {
colgroup + tbody tr:first-child td:last-child {
-webkit-border-top-right-radius: 4px;
.border-top-right-radius(4px);
border-top-right-radius: 4px;
-moz-border-radius-topright: 4px;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment