aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/forms.less8
-rw-r--r--lib/tables.less96
-rw-r--r--lib/tabs-pills.less75
-rw-r--r--lib/type.less5
4 files changed, 131 insertions, 53 deletions
diff --git a/lib/forms.less b/lib/forms.less
index 39c293799..e85b9f201 100644
--- a/lib/forms.less
+++ b/lib/forms.less
@@ -145,7 +145,7 @@ select:focus {
.formColumns(@columnSpan: 1) {
display: inline-block;
float: none;
- width: ((@gridColumnWidth - 10) * @columnSpan) + ((@gridColumnWidth - 10) * (@columnSpan - 1));
+ width: ((@gridColumnWidth) * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)) - 10;
margin-left: 0;
}
input,
@@ -220,15 +220,15 @@ textarea[readonly] {
}
}
// Error
-form .clearfix.error {
+.control-group.error {
.formFieldState(#b94a48, #ee5f5b, lighten(#ee5f5b, 30%));
}
// Warning
-form .clearfix.warning {
+.control-group.warning {
.formFieldState(#c09853, #ccae64, lighten(#CCAE64, 5%));
}
// Success
-form .clearfix.success {
+.control-group.success {
.formFieldState(#468847, #57a957, lighten(#57a957, 30%));
}
diff --git a/lib/tables.less b/lib/tables.less
index 22a319918..524f959f0 100644
--- a/lib/tables.less
+++ b/lib/tables.less
@@ -4,45 +4,41 @@
// ----------------------------------------
+
// BASELINE STYLES
// ---------------
table {
width: 100%;
- padding: 0;
margin-bottom: @baseLineHeight;
- font-size: @baseFontSize;
- border-collapse: collapse;
- th,
- td {
- padding: 10px 10px 9px;
- line-height: @baseLineHeight;
- text-align: left;
- }
- th {
- padding-top: 9px;
- font-weight: bold;
- vertical-align: middle;
- }
- td {
- vertical-align: top;
- border-top: 1px solid #ddd;
- }
- // When scoped to row, fix th in tbody
- tbody th {
- border-top: 1px solid #ddd;
- vertical-align: top;
- }
+}
+th,
+td {
+ padding: 8px;
+ line-height: @baseLineHeight;
+ text-align: left;
+ border-bottom: 1px solid #ddd;
+}
+th {
+ font-weight: bold;
+ vertical-align: bottom;
+}
+td {
+ vertical-align: top;
+}
+tbody tr:last-child th,
+tbody tr:last-child td {
+ border-bottom: 0;
}
-// CONDENSED VERSION
-// -----------------
+// CONDENSED TABLE W/ HALF PADDING
+// -------------------------------
.condensed-table {
th,
td {
- padding: 5px 5px 4px;
+ padding: 4px 5px;
}
}
@@ -53,13 +49,14 @@ table {
.bordered-table {
border: 1px solid #ddd;
border-collapse: separate; // Done so we can round those corners!
- *border-collapse: collapse; /* IE7, collapse table to remove spacing */
.border-radius(4px);
th + th,
td + td,
- th + td {
+ th + td,
+ td + th {
border-left: 1px solid #ddd;
}
+ // 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-radius(4px 0 0 0);
@@ -68,15 +65,34 @@ table {
tbody:first-child tr:first-child td:last-child {
.border-radius(0 4px 0 0);
}
- tbody tr:last-child td:first-child {
+ // For first th or td in the first row in the first thead or tbody
+ thead:last-child tr:last-child th:first-child,
+ tbody:last-child tr:last-child td:first-child {
.border-radius(0 0 0 4px);
}
- tbody tr:last-child td:last-child {
+ thead:last-child tr:last-child th:last-child,
+ tbody:last-child tr:last-child td:last-child {
.border-radius(0 0 4px 0);
}
}
+// ZEBRA-STRIPING
+// --------------
+
+// Default zebra-stripe styles (alternating gray and transparent backgrounds)
+.striped-table {
+ tbody {
+ tr:nth-child(odd) td,
+ tr:nth-child(odd) th {
+ background-color: #f9f9f9;
+ }
+ }
+}
+
+
+
+/*
// ----------------
// This is a duplication of the main grid .columns() mixin, but subtracts 20px to account for input padding and border
@@ -104,24 +120,6 @@ table {
}
-// ZEBRA-STRIPING
-// --------------
-
-// Default zebra-stripe styles (alternating gray and transparent backgrounds)
-.striped-table {
- tbody {
- tr:nth-child(odd) td,
- tr:nth-child(odd) th {
- background-color: #f9f9f9;
- }
- tr:hover td,
- tr:hover th {
- background-color: #f5f5f5;
- }
- }
-}
-
-
// TABLESORTER
// -----------
@@ -225,4 +223,4 @@ table {
.headerSortDown.purple {
background-color: lighten(@purple, 40%);
}
-} \ No newline at end of file
+}*/
diff --git a/lib/tabs-pills.less b/lib/tabs-pills.less
index 3ff08a676..e9b58d04a 100644
--- a/lib/tabs-pills.less
+++ b/lib/tabs-pills.less
@@ -216,3 +216,78 @@
.pill-content > .active {
display: block;
}
+
+
+// Step nav
+.step-nav {
+ position: relative; // for prev/next links
+ margin: 0 0 @baseLineHeight;
+ list-style: none;
+ line-height: 30px;
+ text-align: center;
+ background-color: #f5f5f5;
+ .border-radius(15px);
+ li {
+ display: inline;
+ color: @grayLight;
+ }
+ // prev/next links
+ .prev,
+ .next {
+ position: absolute;
+ top: 6px;
+ }
+ .prev {
+ left: 15px;
+ }
+ .next {
+ right: 15px;
+ }
+ // indicators for each step/page/item/etc
+ .dot {
+ display: inline-block;
+ width: 10px;
+ height: 10px;
+ margin: 0 3px;
+ text-indent: -999em;
+ background-color: @grayLight;
+ .border-radius(5px);
+ .box-shadow(inset 0 1px 1px rgba(0,0,0,.25));
+ }
+ .dot:hover,
+ .active .dot {
+ background-color: @grayDark;
+ }
+}
+
+
+// Subnav
+// STILL A WIP
+.subnav {
+ position: relative;
+ #gradient > .vertical(#f5f5f5, #eeeeee);
+ .border-radius(6px);
+ a {
+ padding: 10px 15px;
+ color: @linkColor;
+ text-shadow: 0 1px 0 #fff;
+ border-left: 1px solid #f9f9f9;
+ border-right: 1px solid #e5e5e5;
+ &:hover {
+ color: @linkColorHover;
+ background-color: #eee;
+ }
+ }
+ li:first-child a {
+ border-left: 0;
+ .border-radius(6px 0 0 6px);
+ }
+ li:last-child a {
+ border-right: 0;
+ .border-radius(0 6px 6px 0);
+ }
+ ul .active > a {
+ color: @grayDark;
+ background-color: #eee;
+ }
+} \ No newline at end of file
diff --git a/lib/type.less b/lib/type.less
index 407a20ec2..bdc99acdf 100644
--- a/lib/type.less
+++ b/lib/type.less
@@ -205,6 +205,11 @@ pre {
white-space: pre-wrap;
word-break: break-all;
+ // Make prettyprint styles more spaced out for readability
+ &.prettyprint {
+ margin-bottom: @baseLineHeight;
+ }
+
// Account for some code outputs that place code tags in pre tags
code {
padding: 0;