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
2cc9e773
Commit
2cc9e773
authored
Sep 18, 2014
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move text and background utilties from _type to _utilities
parent
073389ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
64 deletions
+57
-64
less/_type.less
less/_type.less
+0
-57
less/_utilities.less
less/_utilities.less
+57
-7
No files found.
less/_type.less
View file @
2cc9e773
...
@@ -80,63 +80,6 @@ mark,
...
@@ -80,63 +80,6 @@ mark,
padding: .2em;
padding: .2em;
}
}
// Alignment
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-nowrap { white-space: nowrap; }
// Transformation
.text-lowercase { text-transform: lowercase; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }
// Contextual colors
.text-muted {
color: @text-muted;
}
.text-primary {
.text-emphasis-variant(@brand-primary);
}
.text-success {
.text-emphasis-variant(@state-success-text);
}
.text-info {
.text-emphasis-variant(@state-info-text);
}
.text-warning {
.text-emphasis-variant(@state-warning-text);
}
.text-danger {
.text-emphasis-variant(@state-danger-text);
}
// Contextual backgrounds
// For now we'll leave these alongside the text classes until v4 when we can
// safely shift things around (per SemVer rules).
.bg-primary {
// Given the contrast here, this is the only class to have its color inverted
// automatically.
color: #fff;
.bg-variant(@brand-primary);
}
.bg-success {
.bg-variant(@state-success-bg);
}
.bg-info {
.bg-variant(@state-info-bg);
}
.bg-warning {
.bg-variant(@state-warning-bg);
}
.bg-danger {
.bg-variant(@state-danger-bg);
}
.bg-gray-dark {
.bg-variant(@gray-dark);
}
// Page header
// Page header
// -------------------------
// -------------------------
...
...
less/_utilities.less
View file @
2cc9e773
...
@@ -4,8 +4,6 @@
...
@@ -4,8 +4,6 @@
// Floats
// Floats
// -------------------------
.clearfix {
.clearfix {
.clearfix();
.clearfix();
}
}
...
@@ -50,8 +48,6 @@
...
@@ -50,8 +48,6 @@
// Toggling content
// Toggling content
// -------------------------
.show {
.show {
display: block !important;
display: block !important;
}
}
...
@@ -66,7 +62,6 @@
...
@@ -66,7 +62,6 @@
// Hide from screenreaders and browsers
// Hide from screenreaders and browsers
//
//
// Credit: HTML5 Boilerplate
// Credit: HTML5 Boilerplate
.hidden {
.hidden {
display: none !important;
display: none !important;
visibility: hidden !important;
visibility: hidden !important;
...
@@ -74,8 +69,63 @@
...
@@ -74,8 +69,63 @@
// For Affix plugin
// For Affix plugin
// -------------------------
.affix {
.affix {
position: fixed;
position: fixed;
}
}
// Alignment
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-nowrap { white-space: nowrap; }
// Transformation
.text-lowercase { text-transform: lowercase; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }
// Contextual colors
.text-muted {
color: @text-muted;
}
.text-primary {
.text-emphasis-variant(@brand-primary);
}
.text-success {
.text-emphasis-variant(@state-success-text);
}
.text-info {
.text-emphasis-variant(@state-info-text);
}
.text-warning {
.text-emphasis-variant(@state-warning-text);
}
.text-danger {
.text-emphasis-variant(@state-danger-text);
}
// Contextual backgrounds
// For now we'll leave these alongside the text classes until v4 when we can
// safely shift things around (per SemVer rules).
.bg-primary {
// Given the contrast here, this is the only class to have its color inverted
// automatically.
color: #fff;
.bg-variant(@brand-primary);
}
.bg-success {
.bg-variant(@state-success-bg);
}
.bg-info {
.bg-variant(@state-info-bg);
}
.bg-warning {
.bg-variant(@state-warning-bg);
}
.bg-danger {
.bg-variant(@state-danger-bg);
}
.bg-gray-dark {
.bg-variant(@gray-dark);
}
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