todc-bootstrap-sass 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/LICENSE +22 -0
- data/README.md +60 -0
- data/lib/assets/images/checkmark.png +0 -0
- data/lib/assets/images/glyphicons-halflings-white.png +0 -0
- data/lib/assets/images/glyphicons-halflings.png +0 -0
- data/lib/assets/stylesheets/todc-bootstrap-responsive.scss +1 -0
- data/lib/assets/stylesheets/todc-bootstrap.scss +1 -0
- data/lib/assets/stylesheets/todc-bootstrap/_alerts.scss +45 -0
- data/lib/assets/stylesheets/todc-bootstrap/_breadcrumbs.scss +10 -0
- data/lib/assets/stylesheets/todc-bootstrap/_button-groups.scss +153 -0
- data/lib/assets/stylesheets/todc-bootstrap/_buttons.scss +239 -0
- data/lib/assets/stylesheets/todc-bootstrap/_dropdowns.scss +117 -0
- data/lib/assets/stylesheets/todc-bootstrap/_forms.scss +248 -0
- data/lib/assets/stylesheets/todc-bootstrap/_google-mixins.scss +71 -0
- data/lib/assets/stylesheets/todc-bootstrap/_labels-badges.scss +31 -0
- data/lib/assets/stylesheets/todc-bootstrap/_modals.scss +20 -0
- data/lib/assets/stylesheets/todc-bootstrap/_navbar.scss +718 -0
- data/lib/assets/stylesheets/todc-bootstrap/_navs.scss +147 -0
- data/lib/assets/stylesheets/todc-bootstrap/_pager.scss +53 -0
- data/lib/assets/stylesheets/todc-bootstrap/_pagination.scss +58 -0
- data/lib/assets/stylesheets/todc-bootstrap/_popovers.scss +12 -0
- data/lib/assets/stylesheets/todc-bootstrap/_progress-bars.scss +65 -0
- data/lib/assets/stylesheets/todc-bootstrap/_responsive-navbar.scss +147 -0
- data/lib/assets/stylesheets/todc-bootstrap/_scaffolding.scss +37 -0
- data/lib/assets/stylesheets/todc-bootstrap/_scrollbars.scss +48 -0
- data/lib/assets/stylesheets/todc-bootstrap/_sprites.scss +24 -0
- data/lib/assets/stylesheets/todc-bootstrap/_tables.scss +51 -0
- data/lib/assets/stylesheets/todc-bootstrap/_thumbnails.scss +24 -0
- data/lib/assets/stylesheets/todc-bootstrap/_todc-mixins.scss +71 -0
- data/lib/assets/stylesheets/todc-bootstrap/_tooltip.scss +13 -0
- data/lib/assets/stylesheets/todc-bootstrap/_variables.scss +386 -0
- data/lib/assets/stylesheets/todc-bootstrap/_wells.scss +20 -0
- data/lib/assets/stylesheets/todc-bootstrap/bootstrap.scss +39 -0
- data/lib/assets/stylesheets/todc-bootstrap/responsive.scss +5 -0
- data/lib/todc-bootstrap-sass.rb +49 -0
- data/lib/todc-bootstrap-sass/compass_functions.rb +14 -0
- data/lib/todc-bootstrap-sass/engine.rb +8 -0
- data/lib/todc-bootstrap-sass/rails_functions.rb +14 -0
- data/lib/todc-bootstrap-sass/version.rb +7 -0
- metadata +124 -0
@@ -0,0 +1,147 @@
|
|
1
|
+
//
|
2
|
+
// Navs
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// NAV LIST
|
7
|
+
// --------
|
8
|
+
|
9
|
+
.nav-list > li > a {
|
10
|
+
padding: 1px 15px;
|
11
|
+
color: $grayDarker;
|
12
|
+
&:hover {
|
13
|
+
background-color: $grayLighter;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.nav-list > .active > a,
|
18
|
+
.nav-list > .active > a:hover {
|
19
|
+
padding-left: 12px;
|
20
|
+
font-weight: bold;
|
21
|
+
color: #dd4b39;
|
22
|
+
text-shadow: none;
|
23
|
+
background-color: transparent;
|
24
|
+
border-left: 3px solid #dd4b39;
|
25
|
+
}
|
26
|
+
.nav-list > .active > a:hover {
|
27
|
+
background-color: $grayLighter;
|
28
|
+
}
|
29
|
+
|
30
|
+
// TABS
|
31
|
+
// ----
|
32
|
+
|
33
|
+
// Actual tabs (as links)
|
34
|
+
.nav-tabs > li > a {
|
35
|
+
@include border-radius(2px 2px 0 0);
|
36
|
+
color: #666;
|
37
|
+
}
|
38
|
+
|
39
|
+
.nav-tabs > .active > a,
|
40
|
+
.nav-tabs > .active > a:hover {
|
41
|
+
font-weight: bold;
|
42
|
+
color: #333;
|
43
|
+
}
|
44
|
+
|
45
|
+
|
46
|
+
// Google TABS
|
47
|
+
// ----
|
48
|
+
.nav-tabs-google > li {
|
49
|
+
margin: 0 1px 0 0;
|
50
|
+
}
|
51
|
+
.nav-tabs-google > li > a {
|
52
|
+
padding-top: 2px;
|
53
|
+
padding-bottom: 6px;
|
54
|
+
line-height: $baseLineHeight;
|
55
|
+
color: #777;
|
56
|
+
border: 1px solid transparent;
|
57
|
+
&:hover {
|
58
|
+
color: #222;
|
59
|
+
background-color: $white;
|
60
|
+
border-color: $white $white $white;
|
61
|
+
//border-color: $grayLighter $grayLighter #dd4b39
|
62
|
+
}
|
63
|
+
&:active {
|
64
|
+
color: #dd4b39;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
.nav-tabs-google li:hover {
|
68
|
+
color: #333;
|
69
|
+
border-bottom: 3px solid #dd4b39;
|
70
|
+
}
|
71
|
+
.nav-tabs-google li.active {
|
72
|
+
font-weight: bold;
|
73
|
+
border-bottom: 3px solid #dd4b39;
|
74
|
+
}
|
75
|
+
.nav-tabs-google > .active > a,
|
76
|
+
.nav-tabs-google > .active > a:hover {
|
77
|
+
color: #333;
|
78
|
+
border: 1px solid transparent;
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
// PILLS
|
83
|
+
// -----
|
84
|
+
// Links rendered as pills
|
85
|
+
.nav-pills > li > a {
|
86
|
+
@include border-radius($baseBorderRadius);
|
87
|
+
}
|
88
|
+
|
89
|
+
// Active state
|
90
|
+
.nav-pills > .active > a,
|
91
|
+
.nav-pills > .active > a:hover,
|
92
|
+
.nav-pills > .active > a:focus {
|
93
|
+
background-color: #4d90fe;
|
94
|
+
}
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
// STACKED NAV
|
99
|
+
// -----------
|
100
|
+
|
101
|
+
.nav-tabs.nav-stacked > li:first-child > a {
|
102
|
+
@include border-radius(2px 2px 0 0);
|
103
|
+
}
|
104
|
+
.nav-tabs.nav-stacked > li:last-child > a {
|
105
|
+
@include border-radius(0 0 2px 2px);
|
106
|
+
}
|
107
|
+
.nav-tabs.nav-stacked > li > a:hover {
|
108
|
+
z-index: 2;
|
109
|
+
border-color: #ddd;
|
110
|
+
}
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
// DROPDOWNS
|
115
|
+
// ---------
|
116
|
+
|
117
|
+
.nav-tabs .dropdown-menu {
|
118
|
+
@include border-radius(0); // remove the top rounded corners here since there is a hard edge above the menu
|
119
|
+
}
|
120
|
+
.nav-tabs .dropdown-toggle .caret {
|
121
|
+
border-top-color: #666;
|
122
|
+
border-bottom-color: #666;
|
123
|
+
}
|
124
|
+
.nav-tabs .dropdown-toggle:hover .caret {
|
125
|
+
border-top-color: #333;
|
126
|
+
border-bottom-color: #333;
|
127
|
+
}
|
128
|
+
.nav-pills .dropdown-menu {
|
129
|
+
@include border-radius(0); // make rounded corners match the pills
|
130
|
+
}
|
131
|
+
|
132
|
+
// BOTTOM
|
133
|
+
// ------
|
134
|
+
|
135
|
+
.tabs-below > .nav-tabs > li > a {
|
136
|
+
@include border-radius(0 0 2px 2px);
|
137
|
+
}
|
138
|
+
|
139
|
+
// LEFT & RIGHT
|
140
|
+
// ------------
|
141
|
+
|
142
|
+
.tabs-left > .nav-tabs > li > a {
|
143
|
+
@include border-radius(2px 0 0 2px);
|
144
|
+
}
|
145
|
+
.tabs-right > .nav-tabs > li > a {
|
146
|
+
@include border-radius(0 2px 2px 0);
|
147
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
//
|
2
|
+
// Pager pagination
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.pager li > a {
|
7
|
+
padding: 4px 12px;
|
8
|
+
|
9
|
+
border: 1px solid #dcdcdc;
|
10
|
+
//.border-radius(2px);
|
11
|
+
|
12
|
+
@include gradient-vertical(#f5f5f5, #f1f1f1);
|
13
|
+
@include reset-filter();
|
14
|
+
background-color: #f5f5f5;
|
15
|
+
|
16
|
+
color: #333;
|
17
|
+
text-shadow: 0 1px 0 #fff;
|
18
|
+
text-decoration: none;
|
19
|
+
white-space: nowrap;
|
20
|
+
font-weight: bold;
|
21
|
+
|
22
|
+
cursor: default;
|
23
|
+
outline: none;
|
24
|
+
overflow: visible;
|
25
|
+
}
|
26
|
+
.pager li > a:hover {
|
27
|
+
border-color: #c6c6c6;
|
28
|
+
|
29
|
+
@include gradient-vertical(#f8f8f8, #f1f1f1);
|
30
|
+
@include reset-filter();
|
31
|
+
background-color: #f1f1f1;
|
32
|
+
|
33
|
+
@include box-shadow(0 1px 1px rgba(0,0,0,0.1));
|
34
|
+
}
|
35
|
+
.pager li > a:active {
|
36
|
+
@include gradient-vertical(#f6f6f6, #f1f1f1);
|
37
|
+
@include reset-filter();
|
38
|
+
background-color: #f1f1f1;
|
39
|
+
|
40
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.1));
|
41
|
+
}
|
42
|
+
.pager .disabled a,
|
43
|
+
.pager .disabled a:hover {
|
44
|
+
color: darken($white, 30%);
|
45
|
+
border-color: darken($white, 15%);
|
46
|
+
|
47
|
+
@include gradient-vertical(#f5f5f5, #f1f1f1);
|
48
|
+
@include reset-filter();
|
49
|
+
background-color: $btnBackground;
|
50
|
+
|
51
|
+
@include box-shadow(none);
|
52
|
+
text-shadow: none;
|
53
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
//
|
2
|
+
// Pagination (multiple pages)
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.pagination ul {
|
6
|
+
@include border-radius($baseBorderRadius);
|
7
|
+
}
|
8
|
+
.pagination ul > li > a,
|
9
|
+
.pagination ul > li > span {
|
10
|
+
background-color: $paginationBackground;
|
11
|
+
border: 1px solid $paginationBorder;
|
12
|
+
border-left-width: 0;
|
13
|
+
color: $grayDark;
|
14
|
+
}
|
15
|
+
.pagination ul > li > a:hover,
|
16
|
+
.pagination ul > .active > a,
|
17
|
+
.pagination ul > .active > span {
|
18
|
+
background-color: $paginationActiveBackground;
|
19
|
+
border-color: darken($paginationBorder, 8.5%);
|
20
|
+
|
21
|
+
@include box-shadow(0 1px 1px rgba(0,0,0,0.1));
|
22
|
+
}
|
23
|
+
.pagination ul > li > a:active {
|
24
|
+
@include gradient-vertical(#f6f6f6,#f1f1f1);
|
25
|
+
@include reset-filter();
|
26
|
+
background-color: #f4f4f4;
|
27
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.1));
|
28
|
+
}
|
29
|
+
.pagination ul > .active > a,
|
30
|
+
.pagination ul > .active > span {
|
31
|
+
color: #4D90FE;
|
32
|
+
@include box-shadow(none);
|
33
|
+
}
|
34
|
+
.pagination ul > .disabled > span,
|
35
|
+
.pagination ul > .disabled > a,
|
36
|
+
.pagination ul > .disabled > a:hover {
|
37
|
+
color: darken($white, 30%);
|
38
|
+
border-color: darken($white, 15%);
|
39
|
+
|
40
|
+
@include gradient-vertical(#f5f5f5,#f1f1f1);
|
41
|
+
@include reset-filter();
|
42
|
+
background-color: $btnBackground;
|
43
|
+
|
44
|
+
@include box-shadow(none);
|
45
|
+
text-shadow: none;
|
46
|
+
}
|
47
|
+
.pagination .disabled a [class^="icon-"] {
|
48
|
+
@include opacity(30);
|
49
|
+
}
|
50
|
+
.pagination ul > li:first-child > a,
|
51
|
+
.pagination ul > li:first-child > span {
|
52
|
+
margin-left: 0;
|
53
|
+
@include border-radius(2px 0 0 2px);
|
54
|
+
}
|
55
|
+
.pagination ul > li:last-child > a,
|
56
|
+
.pagination ul > li:last-child > span {
|
57
|
+
@include border-radius(0 2px 2px 0);
|
58
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
//
|
2
|
+
// Progress bars
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Outer container
|
6
|
+
.progress {
|
7
|
+
border: 1px solid #999;
|
8
|
+
padding: 1px;
|
9
|
+
height: 10px;
|
10
|
+
background-color: transparent;
|
11
|
+
background-image: none;
|
12
|
+
@include box-shadow(none);
|
13
|
+
@include border-radius(0px);
|
14
|
+
}
|
15
|
+
|
16
|
+
.progress .bar {
|
17
|
+
background-color: #6188f5;
|
18
|
+
background-image: none;
|
19
|
+
@include box-shadow(none);
|
20
|
+
}
|
21
|
+
|
22
|
+
// Striped bars
|
23
|
+
.progress-striped .bar {
|
24
|
+
@include gradient-striped(#6188f5);
|
25
|
+
@include background-size(40px 40px);
|
26
|
+
}
|
27
|
+
|
28
|
+
.progress .bar + .bar {
|
29
|
+
@include box-shadow(none);
|
30
|
+
}
|
31
|
+
|
32
|
+
// COLORS
|
33
|
+
// ------
|
34
|
+
|
35
|
+
// Danger (red)
|
36
|
+
.progress-danger .bar, .progress .bar-danger {
|
37
|
+
background-color: #c13e2c;
|
38
|
+
}
|
39
|
+
.progress-danger.progress-striped .bar, .progress-striped .bar-danger {
|
40
|
+
@include gradient-striped(#ee5f5b);
|
41
|
+
}
|
42
|
+
|
43
|
+
// Success (green)
|
44
|
+
.progress-success .bar, .progress .bar-success {
|
45
|
+
background-color: #2f973f;
|
46
|
+
}
|
47
|
+
.progress-success.progress-striped .bar, .progress-striped .bar-success {
|
48
|
+
@include gradient-striped(#2f973f);
|
49
|
+
}
|
50
|
+
|
51
|
+
// Info (teal)
|
52
|
+
.progress-info .bar, .progress .bar-info {
|
53
|
+
background-color: #53bddc;
|
54
|
+
}
|
55
|
+
.progress-info.progress-striped .bar, .progress-striped .bar-info {
|
56
|
+
@include gradient-striped(#53bddc);
|
57
|
+
}
|
58
|
+
|
59
|
+
// Warning (orange)
|
60
|
+
.progress-warning .bar, .progress .bar-warning {
|
61
|
+
background-color: lighten($orange, 15%);
|
62
|
+
}
|
63
|
+
.progress-warning.progress-striped .bar, .progress-striped .bar-warning {
|
64
|
+
@include gradient-striped(lighten($orange, 15%));
|
65
|
+
}
|
@@ -0,0 +1,147 @@
|
|
1
|
+
//
|
2
|
+
// Responsive: Navbar
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// TABLETS AND BELOW
|
7
|
+
// -----------------
|
8
|
+
@media (max-width: $navbarCollapseWidth) {
|
9
|
+
|
10
|
+
// Masthead
|
11
|
+
// -------------------------
|
12
|
+
.navbar-masthead {
|
13
|
+
|
14
|
+
&.navbar-fixed-top .navbar-inner,
|
15
|
+
&.navbar-fixed-bottom .navbar-inner {
|
16
|
+
padding: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
// TODO: Include all styles that use variables
|
20
|
+
// COLLAPSIBLE NAVBAR
|
21
|
+
// ------------------
|
22
|
+
.nav-collapse {
|
23
|
+
// Active nav items
|
24
|
+
.nav > .active > a {
|
25
|
+
color: $navbarGoogleBarLinkColorActive;
|
26
|
+
background-color: $navbarGoogleBarBackgroundHighlight;
|
27
|
+
}
|
28
|
+
|
29
|
+
.nav .nav-header {
|
30
|
+
color: $navbarGoogleBarText;
|
31
|
+
}
|
32
|
+
// Nav and dropdown links in navbar
|
33
|
+
.nav > li > a,
|
34
|
+
.dropdown-menu a {
|
35
|
+
color: $navbarGoogleBarLinkColor;
|
36
|
+
}
|
37
|
+
.nav > li > a:hover,
|
38
|
+
.dropdown-menu a:hover {
|
39
|
+
background-color: $navbarGoogleBarBackground;
|
40
|
+
}
|
41
|
+
// Forms in navbar
|
42
|
+
.navbar-form,
|
43
|
+
.navbar-search {
|
44
|
+
border-top: 1px solid $navbarGoogleBarBackground;
|
45
|
+
border-bottom: 1px solid $navbarGoogleBarBackground;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
&.navbar-inverse {
|
50
|
+
.nav-collapse {
|
51
|
+
// Active nav items
|
52
|
+
.nav > .active > a {
|
53
|
+
color: $navbarGoogleBarInverseLinkColorActive;
|
54
|
+
background-color: $navbarGoogleBarInverseBackground;
|
55
|
+
}
|
56
|
+
// Nav and dropdown links in navbar
|
57
|
+
.nav > li > a,
|
58
|
+
.dropdown-menu a {
|
59
|
+
color: $navbarGoogleBarInverseLinkColor;
|
60
|
+
}
|
61
|
+
.nav > li > a:hover,
|
62
|
+
.dropdown-menu a:hover {
|
63
|
+
background-color: $navbarGoogleBarInverseBackground;
|
64
|
+
}
|
65
|
+
// Forms in navbar
|
66
|
+
.navbar-form,
|
67
|
+
.navbar-search {
|
68
|
+
border-top-color: $navbarGoogleBarInverseBackground;
|
69
|
+
border-bottom-color: $navbarGoogleBarInverseBackground;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
|
77
|
+
// Toolbar
|
78
|
+
// -------------------------
|
79
|
+
.navbar-toolbar {
|
80
|
+
|
81
|
+
&.navbar-fixed-top .navbar-inner,
|
82
|
+
&.navbar-fixed-bottom .navbar-inner {
|
83
|
+
padding: 0;
|
84
|
+
}
|
85
|
+
|
86
|
+
// TODO: Include all styles that use variables
|
87
|
+
// COLLAPSIBLE NAVBAR
|
88
|
+
// ------------------
|
89
|
+
.nav-collapse {
|
90
|
+
// Active nav items
|
91
|
+
.nav > .active > a {
|
92
|
+
&:before {
|
93
|
+
display: none;
|
94
|
+
}
|
95
|
+
&:after {
|
96
|
+
display: none;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
.nav .nav-header {
|
100
|
+
color: $navbarGoogleNavText;
|
101
|
+
}
|
102
|
+
// Nav and dropdown links in navbar
|
103
|
+
.nav > li > a,
|
104
|
+
.dropdown-menu a {
|
105
|
+
color: $navbarGoogleNavLinkColor;
|
106
|
+
}
|
107
|
+
.nav > li > a:hover,
|
108
|
+
.dropdown-menu a:hover {
|
109
|
+
background-color: $navbarGoogleNavBackground;
|
110
|
+
}
|
111
|
+
// Forms in navbar
|
112
|
+
.navbar-form,
|
113
|
+
.navbar-search {
|
114
|
+
border-top: 1px solid $navbarGoogleNavBackground;
|
115
|
+
border-bottom: 1px solid $navbarGoogleNavBackground;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
&.navbar-inverse {
|
120
|
+
.nav-collapse {
|
121
|
+
// Active nav items
|
122
|
+
.nav > .active > a,
|
123
|
+
.nav > .active > a:hover {
|
124
|
+
color: $navbarGoogleBarInverseLinkColorActive;
|
125
|
+
background-color: $navbarGoogleBarInverseBackgroundHighlight;
|
126
|
+
}
|
127
|
+
// Nav and dropdown links in navbar
|
128
|
+
.nav > li > a,
|
129
|
+
.dropdown-menu a {
|
130
|
+
color: $navbarGoogleNavInverseLinkColor;
|
131
|
+
}
|
132
|
+
.nav > li > a:hover,
|
133
|
+
.dropdown-menu a:hover {
|
134
|
+
background-color: $navbarGoogleNavInverseBackground;
|
135
|
+
}
|
136
|
+
// Forms in navbar
|
137
|
+
.navbar-form,
|
138
|
+
.navbar-search {
|
139
|
+
border-top-color: $navbarGoogleNavInverseBackground;
|
140
|
+
border-bottom-color: $navbarGoogleNavInverseBackground;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
}
|