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
19ee7999
Commit
19ee7999
authored
Dec 01, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove single corner border-radius mixins
parent
dd11d0a3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
137 deletions
+55
-137
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+30
-90
less/button-groups.less
less/button-groups.less
+8
-8
less/mixins.less
less/mixins.less
+9
-31
less/tables.less
less/tables.less
+8
-8
No files found.
docs/assets/css/bootstrap.css
View file @
19ee7999
...
...
@@ -1715,62 +1715,46 @@ table {
.table-bordered
thead
:first-child
tr
:first-child
th
:first-child
,
.table-bordered
tbody
:first-child
tr
:first-child
td
:first-child
{
-webkit-border-top-left-radius
:
4px
;
border-top-left-radius
:
4px
;
-moz-border-radius-topleft
:
4px
;
}
.table-bordered
thead
:first-child
tr
:first-child
th
:last-child
,
.table-bordered
tbody
:first-child
tr
:first-child
td
:last-child
{
-webkit-border-top-right-radius
:
4px
;
border-top-right-radius
:
4px
;
-moz-border-radius-topright
:
4px
;
}
.table-bordered
thead
:last-child
tr
:last-child
th
:first-child
,
.table-bordered
tbody
:last-child
tr
:last-child
td
:first-child
,
.table-bordered
tfoot
:last-child
tr
:last-child
td
:first-child
{
-webkit-border-bottom-left-radius
:
4px
;
border-bottom-left-radius
:
4px
;
-moz-border-radius-bottomleft
:
4px
;
}
.table-bordered
thead
:last-child
tr
:last-child
th
:last-child
,
.table-bordered
tbody
:last-child
tr
:last-child
td
:last-child
,
.table-bordered
tfoot
:last-child
tr
:last-child
td
:last-child
{
-webkit-border-bottom-right-radius
:
4px
;
border-bottom-right-radius
:
4px
;
-moz-border-radius-bottomright
:
4px
;
}
.table-bordered
tfoot
+
tbody
:last-child
tr
:last-child
td
:first-child
{
-webkit-border-bottom-left-radius
:
0
;
border-bottom-left-radius
:
0
;
-moz-border-radius-bottomleft
:
0
;
}
.table-bordered
tfoot
+
tbody
:last-child
tr
:last-child
td
:last-child
{
-webkit-border-bottom-right-radius
:
0
;
border-bottom-right-radius
:
0
;
-moz-border-radius-bottomright
:
0
;
}
.table-bordered
caption
+
thead
tr
:first-child
th
:first-child
,
.table-bordered
caption
+
tbody
tr
:first-child
td
:first-child
,
.table-bordered
colgroup
+
thead
tr
:first-child
th
:first-child
,
.table-bordered
colgroup
+
tbody
tr
:first-child
td
:first-child
{
-webkit-border-top-left-radius
:
4px
;
border-top-left-radius
:
4px
;
-moz-border-radius-topleft
:
4px
;
}
.table-bordered
caption
+
thead
tr
:first-child
th
:last-child
,
.table-bordered
caption
+
tbody
tr
:first-child
td
:last-child
,
.table-bordered
colgroup
+
thead
tr
:first-child
th
:last-child
,
.table-bordered
colgroup
+
tbody
tr
:first-child
td
:last-child
{
-webkit-border-top-right-radius
:
4px
;
border-top-right-radius
:
4px
;
-moz-border-radius-topright
:
4px
;
}
.table-striped
tbody
tr
:nth-child
(
odd
)
td
,
...
...
@@ -3152,42 +3136,26 @@ input[type="button"].btn-block {
.btn-group
>
.btn
:first-child
{
margin-left
:
0
;
-webkit-border-bottom-left-radius
:
4px
;
border-bottom-left-radius
:
4px
;
-webkit-border-top-left-radius
:
4px
;
border-top-left-radius
:
4px
;
-moz-border-radius-bottomleft
:
4px
;
-moz-border-radius-topleft
:
4px
;
}
.btn-group
>
.btn
:last-child
,
.btn-group
>
.dropdown-toggle
{
-webkit-border-top-right-radius
:
4px
;
border-top-right-radius
:
4px
;
-webkit-border-bottom-right-radius
:
4px
;
border-bottom-right-radius
:
4px
;
-moz-border-radius-topright
:
4px
;
-moz-border-radius-bottomright
:
4px
;
}
.btn-group
>
.btn.large
:first-child
{
margin-left
:
0
;
-webkit-border-bottom-left-radius
:
6px
;
border-bottom-left-radius
:
6px
;
-webkit-border-top-left-radius
:
6px
;
border-top-left-radius
:
6px
;
-moz-border-radius-bottomleft
:
6px
;
-moz-border-radius-topleft
:
6px
;
}
.btn-group
>
.btn.large
:last-child
,
.btn-group
>
.large.dropdown-toggle
{
-webkit-border-top-right-radius
:
6px
;
border-top-right-radius
:
6px
;
-webkit-border-bottom-right-radius
:
6px
;
border-bottom-right-radius
:
6px
;
-moz-border-radius-topright
:
6px
;
-moz-border-radius-bottomright
:
6px
;
}
.btn-group
>
.btn
:hover
,
...
...
@@ -3540,12 +3508,8 @@ input[type="button"].btn-block {
}
.nav-tabs
.dropdown-menu
{
-webkit-border-top-right-radius
:
0
;
border-top-right-radius
:
0
;
-webkit-border-top-left-radius
:
0
;
border-top-left-radius
:
0
;
-moz-border-radius-topright
:
0
;
-moz-border-radius-topleft
:
0
;
}
.nav
.dropdown-toggle
.caret
{
...
...
@@ -4230,22 +4194,14 @@ input[type="button"].btn-block {
.pagination
ul
>
li
:first-child
>
a
,
.pagination
ul
>
li
:first-child
>
span
{
border-left-width
:
1px
;
-webkit-border-bottom-left-radius
:
4px
;
border-bottom-left-radius
:
4px
;
-webkit-border-top-left-radius
:
4px
;
border-top-left-radius
:
4px
;
-moz-border-radius-bottomleft
:
4px
;
-moz-border-radius-topleft
:
4px
;
}
.pagination
ul
>
li
:last-child
>
a
,
.pagination
ul
>
li
:last-child
>
span
{
-webkit-border-top-right-radius
:
4px
;
border-top-right-radius
:
4px
;
-webkit-border-bottom-right-radius
:
4px
;
border-bottom-right-radius
:
4px
;
-moz-border-radius-topright
:
4px
;
-moz-border-radius-bottomright
:
4px
;
}
.pagination-centered
{
...
...
@@ -4264,46 +4220,30 @@ input[type="button"].btn-block {
.pagination-large
ul
>
li
:first-child
>
a
,
.pagination-large
ul
>
li
:first-child
>
span
{
-webkit-border-bottom-left-radius
:
6px
;
border-bottom-left-radius
:
6px
;
-webkit-border-top-left-radius
:
6px
;
border-top-left-radius
:
6px
;
-moz-border-radius-bottomleft
:
6px
;
-moz-border-radius-topleft
:
6px
;
}
.pagination-large
ul
>
li
:last-child
>
a
,
.pagination-large
ul
>
li
:last-child
>
span
{
-webkit-border-top-right-radius
:
6px
;
border-top-right-radius
:
6px
;
-webkit-border-bottom-right-radius
:
6px
;
border-bottom-right-radius
:
6px
;
-moz-border-radius-topright
:
6px
;
-moz-border-radius-bottomright
:
6px
;
}
.pagination-mini
ul
>
li
:first-child
>
a
,
.pagination-small
ul
>
li
:first-child
>
a
,
.pagination-mini
ul
>
li
:first-child
>
span
,
.pagination-small
ul
>
li
:first-child
>
span
{
-webkit-border-bottom-left-radius
:
3px
;
border-bottom-left-radius
:
3px
;
-webkit-border-top-left-radius
:
3px
;
border-top-left-radius
:
3px
;
-moz-border-radius-bottomleft
:
3px
;
-moz-border-radius-topleft
:
3px
;
}
.pagination-mini
ul
>
li
:last-child
>
a
,
.pagination-small
ul
>
li
:last-child
>
a
,
.pagination-mini
ul
>
li
:last-child
>
span
,
.pagination-small
ul
>
li
:last-child
>
span
{
-webkit-border-top-right-radius
:
3px
;
border-top-right-radius
:
3px
;
-webkit-border-bottom-right-radius
:
3px
;
border-bottom-right-radius
:
3px
;
-moz-border-radius-topright
:
3px
;
-moz-border-radius-bottomright
:
3px
;
}
.pagination-small
ul
>
li
>
a
,
...
...
less/button-groups.less
View file @
19ee7999
...
...
@@ -57,25 +57,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
.btn-group > .btn:first-child {
margin-left: 0;
.border-top-left-radius(@border-radius-base)
;
.border-bottom-left-radius(@border-radius-base)
;
border-top-left-radius: @border-radius-base
;
border-bottom-left-radius: @border-radius-base
;
}
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
.btn-group > .btn:last-child,
.btn-group > .dropdown-toggle {
.border-top-right-radius(@border-radius-base)
;
.border-bottom-right-radius(@border-radius-base)
;
border-top-right-radius: @border-radius-base
;
border-bottom-right-radius: @border-radius-base
;
}
// Reset corners for large buttons
.btn-group > .btn.large:first-child {
margin-left: 0;
.border-top-left-radius(@border-radius-large)
;
.border-bottom-left-radius(@border-radius-large)
;
border-top-left-radius: @border-radius-large
;
border-bottom-left-radius: @border-radius-large
;
}
.btn-group > .btn.large:last-child,
.btn-group > .large.dropdown-toggle {
.border-top-right-radius(@border-radius-large)
;
.border-bottom-right-radius(@border-radius-large)
;
border-top-right-radius: @border-radius-large
;
border-bottom-right-radius: @border-radius-large
;
}
// On hover/focus/active, bring the proper btn to front
...
...
less/mixins.less
View file @
19ee7999
...
...
@@ -173,44 +173,22 @@
// CSS3 PROPERTIES
// --------------------------------------------------
// Single Corner Border Radius
.border-top-left-radius(@radius) {
-webkit-border-top-left-radius: @radius;
-moz-border-radius-topleft: @radius;
// Single side border-radius
.border-top-radius(@radius) {
border-top-right-radius: @radius;
border-top-left-radius: @radius;
}
.border-top-right-radius(@radius) {
-webkit-border-top-right-radius: @radius;
-moz-border-radius-topright: @radius;
.border-right-radius(@radius) {
border-bottom-right-radius: @radius;
border-top-right-radius: @radius;
}
.border-bottom-right-radius(@radius) {
-webkit-border-bottom-right-radius: @radius;
-moz-border-radius-bottomright: @radius;
.border-bottom-radius(@radius) {
border-bottom-right-radius: @radius;
}
.border-bottom-left-radius(@radius) {
-webkit-border-bottom-left-radius: @radius;
-moz-border-radius-bottomleft: @radius;
border-bottom-left-radius: @radius;
}
// Single Side Border Radius
.border-top-radius(@radius) {
.border-top-right-radius(@radius);
.border-top-left-radius(@radius);
}
.border-right-radius(@radius) {
.border-top-right-radius(@radius);
.border-bottom-right-radius(@radius);
}
.border-bottom-radius(@radius) {
.border-bottom-right-radius(@radius);
.border-bottom-left-radius(@radius);
}
.border-left-radius(@radius) {
.border-top-left-radius(@radius)
;
.border-bottom-left-radius(@radius)
;
border-bottom-left-radius: @radius
;
border-top-left-radius: @radius
;
}
// Drop shadows
...
...
less/tables.less
View file @
19ee7999
...
...
@@ -90,30 +90,30 @@ table {
// For first th or td in the first row in the first thead or tbody
thead:first-child tr:first-child th:first-child,
tbody:first-child tr:first-child td:first-child {
.border-top-left-radius(@border-radius-base)
;
border-top-left-radius: @border-radius-base
;
}
thead:first-child tr:first-child th:last-child,
tbody:first-child tr:first-child td:last-child {
.border-top-right-radius(@border-radius-base)
;
border-top-right-radius: @border-radius-base
;
}
// For first th or td in the last row in the last thead or tbody
thead:last-child tr:last-child th:first-child,
tbody:last-child tr:last-child td:first-child,
tfoot:last-child tr:last-child td:first-child {
.border-bottom-left-radius(@border-radius-base)
;
border-bottom-left-radius: @border-radius-base
;
}
thead:last-child tr:last-child th:last-child,
tbody:last-child tr:last-child td:last-child,
tfoot:last-child tr:last-child td:last-child {
.border-bottom-right-radius(@border-radius-base)
;
border-bottom-right-radius: @border-radius-base
;
}
// Clear border-radius for first and last td in the last row in the last tbody for table with tfoot
tfoot + tbody:last-child tr:last-child td:first-child {
.border-bottom-left-radius(0)
;
border-bottom-left-radius: 0
;
}
tfoot + tbody:last-child tr:last-child td:last-child {
.border-bottom-right-radius(0)
;
border-bottom-right-radius: 0
;
}
...
...
@@ -122,13 +122,13 @@ table {
caption + tbody tr:first-child td:first-child,
colgroup + thead tr:first-child th:first-child,
colgroup + tbody tr:first-child td:first-child {
.border-top-left-radius(@border-radius-base)
;
border-top-left-radius: @border-radius-base
;
}
caption + thead tr:first-child th:last-child,
caption + tbody tr:first-child td:last-child,
colgroup + thead tr:first-child th:last-child,
colgroup + tbody tr:first-child td:last-child {
.border-top-right-radius(@border-radius-base)
;
border-top-right-radius: @border-radius-base
;
}
}
...
...
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