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
6b578ec8
Commit
6b578ec8
authored
Sep 26, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move mixins that generate css to utilities.less with different class names, but the same mixins
parent
b6ba717b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
62 deletions
+54
-62
docs/assets/css/bootstrap-responsive.css
docs/assets/css/bootstrap-responsive.css
+0
-28
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+28
-28
less/mixins.less
less/mixins.less
+3
-3
less/utilities.less
less/utilities.less
+23
-3
No files found.
docs/assets/css/bootstrap-responsive.css
View file @
6b578ec8
...
@@ -8,34 +8,6 @@
...
@@ -8,34 +8,6 @@
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
*/
.clearfix
:before
,
.clearfix
:after
{
display
:
table
;
line-height
:
0
;
content
:
""
;
}
.clearfix
:after
{
clear
:
both
;
}
.hide-text
{
font
:
0
/
0
a
;
color
:
transparent
;
text-shadow
:
none
;
background-color
:
transparent
;
border
:
0
;
}
.input-block-level
{
display
:
block
;
width
:
100%
;
min-height
:
30px
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.hidden
{
.hidden
{
display
:
none
;
display
:
none
;
visibility
:
hidden
;
visibility
:
hidden
;
...
...
docs/assets/css/bootstrap.css
View file @
6b578ec8
...
@@ -125,34 +125,6 @@ textarea {
...
@@ -125,34 +125,6 @@ textarea {
vertical-align
:
top
;
vertical-align
:
top
;
}
}
.clearfix
:before
,
.clearfix
:after
{
display
:
table
;
line-height
:
0
;
content
:
""
;
}
.clearfix
:after
{
clear
:
both
;
}
.hide-text
{
font
:
0
/
0
a
;
color
:
transparent
;
text-shadow
:
none
;
background-color
:
transparent
;
border
:
0
;
}
.input-block-level
{
display
:
block
;
width
:
100%
;
min-height
:
30px
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
body
{
body
{
margin
:
0
;
margin
:
0
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
...
@@ -5703,6 +5675,17 @@ a.badge:hover {
...
@@ -5703,6 +5675,17 @@ a.badge:hover {
color
:
inherit
;
color
:
inherit
;
}
}
.clear
:before
,
.clear
:after
{
display
:
table
;
line-height
:
0
;
content
:
""
;
}
.clear
:after
{
clear
:
both
;
}
.pull-right
{
.pull-right
{
float
:
right
;
float
:
right
;
}
}
...
@@ -5723,6 +5706,23 @@ a.badge:hover {
...
@@ -5723,6 +5706,23 @@ a.badge:hover {
visibility
:
hidden
;
visibility
:
hidden
;
}
}
.text-hide
{
font
:
0
/
0
a
;
color
:
transparent
;
text-shadow
:
none
;
background-color
:
transparent
;
border
:
0
;
}
.affix
{
.affix
{
position
:
fixed
;
position
:
fixed
;
}
}
.control-block-level
{
display
:
block
;
width
:
100%
;
min-height
:
30px
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
less/mixins.less
View file @
6b578ec8
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
// Clearfix
// Clearfix
// --------
// --------
// For clearing floats like a boss h5bp.com/q
// For clearing floats like a boss h5bp.com/q
.clearfix {
.clearfix
()
{
&:before,
&:before,
&:after {
&:after {
display: table;
display: table;
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
// CSS image replacement
// CSS image replacement
// -------------------------
// -------------------------
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
.hide-text {
.hide-text
()
{
font: 0/0 a;
font: 0/0 a;
color: transparent;
color: transparent;
text-shadow: none;
text-shadow: none;
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
// --------------------------------------------------
// --------------------------------------------------
// Block level inputs
// Block level inputs
.input-block-level {
.input-block-level
()
{
display: block;
display: block;
width: 100%;
width: 100%;
min-height: @inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
min-height: @inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
...
...
less/utilities.less
View file @
6b578ec8
...
@@ -3,7 +3,12 @@
...
@@ -3,7 +3,12 @@
// --------------------------------------------------
// --------------------------------------------------
// Quick floats
// Floats
// -------------------------
.clear {
.clearfix();
}
.pull-right {
.pull-right {
float: right;
float: right;
}
}
...
@@ -11,20 +16,35 @@
...
@@ -11,20 +16,35 @@
float: left;
float: left;
}
}
// Toggling content
// Toggling content
// -------------------------
.hide {
.hide {
display: none;
display: none;
}
}
.show {
.show {
display: block;
display: block;
}
}
// Visibility
.invisible {
.invisible {
visibility: hidden;
visibility: hidden;
}
}
.text-hide {
.hide-text();
}
// For Affix plugin
// For Affix plugin
// -------------------------
.affix {
.affix {
position: fixed;
position: fixed;
}
}
// Forms
// -------------------------
.control-block-level {
.input-block-level();
}
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