bootflat-rails 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/Gemfile +11 -0
- data/README.md +34 -0
- data/bootflat-rails.gemspec +21 -0
- data/lib/bootflat-rails.rb +58 -4
- data/lib/bootflat-rails/engine.rb +9 -0
- data/lib/bootflat-rails/version.rb +3 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.svg +229 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/images/check_flat/default.png +0 -0
- data/vendor/assets/images/check_flat/default.psd +0 -0
- data/vendor/assets/javascripts/bootstrap.min.js +6 -0
- data/vendor/assets/javascripts/icheck.min.js +11 -0
- data/vendor/assets/stylesheets/bootflat.scss +42 -0
- data/vendor/assets/stylesheets/bootflat/_accordion.scss +76 -0
- data/vendor/assets/stylesheets/bootflat/_alert.scss +75 -0
- data/vendor/assets/stylesheets/bootflat/_breadcrumb.scss +121 -0
- data/vendor/assets/stylesheets/bootflat/_button.scss +205 -0
- data/vendor/assets/stylesheets/bootflat/_button_group.scss +133 -0
- data/vendor/assets/stylesheets/bootflat/_checkbox_radio.scss +62 -0
- data/vendor/assets/stylesheets/bootflat/_dropdown.scss +122 -0
- data/vendor/assets/stylesheets/bootflat/_footer.scss +82 -0
- data/vendor/assets/stylesheets/bootflat/_form.scss +212 -0
- data/vendor/assets/stylesheets/bootflat/_global.scss +239 -0
- data/vendor/assets/stylesheets/bootflat/_jumbotron.scss +80 -0
- data/vendor/assets/stylesheets/bootflat/_label_badge.scss +65 -0
- data/vendor/assets/stylesheets/bootflat/_list.scss +188 -0
- data/vendor/assets/stylesheets/bootflat/_media_list.scss +26 -0
- data/vendor/assets/stylesheets/bootflat/_modal.scss +39 -0
- data/vendor/assets/stylesheets/bootflat/_navbar.scss +213 -0
- data/vendor/assets/stylesheets/bootflat/_pager.scss +42 -0
- data/vendor/assets/stylesheets/bootflat/_pagination.scss +59 -0
- data/vendor/assets/stylesheets/bootflat/_panel.scss +169 -0
- data/vendor/assets/stylesheets/bootflat/_pill.scss +45 -0
- data/vendor/assets/stylesheets/bootflat/_popover.scss +50 -0
- data/vendor/assets/stylesheets/bootflat/_progress.scss +42 -0
- data/vendor/assets/stylesheets/bootflat/_tab.scss +179 -0
- data/vendor/assets/stylesheets/bootflat/_thumbnail.scss +39 -0
- data/vendor/assets/stylesheets/bootflat/_tooltip.scss +42 -0
- data/vendor/assets/stylesheets/bootflat/_typography.scss +127 -0
- data/vendor/assets/stylesheets/bootflat/_well.scss +43 -0
- metadata +74 -5
@@ -0,0 +1,45 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$pill-background-color: $aqua-dark !default;
|
4
|
+
$pill-background-color-hover: $lightgray-dark !default;
|
5
|
+
$pill-font-color: $darkgray-dark !default;
|
6
|
+
$pill-font-color-active: $white !default;
|
7
|
+
|
8
|
+
|
9
|
+
// Exports
|
10
|
+
//------------------------------------------------------
|
11
|
+
|
12
|
+
@include exports("pill") {
|
13
|
+
|
14
|
+
/**
|
15
|
+
* pill
|
16
|
+
* --------------------------------------------------
|
17
|
+
*/
|
18
|
+
.nav-pills {
|
19
|
+
& > li.active > a,
|
20
|
+
& > li.active > a:hover,
|
21
|
+
& > li.active > a:focus {
|
22
|
+
color: $pill-font-color-active;
|
23
|
+
background-color: $pill-background-color;
|
24
|
+
}
|
25
|
+
& > li > a {
|
26
|
+
color: $pill-background-color;
|
27
|
+
}
|
28
|
+
& > li > a:hover {
|
29
|
+
color: $pill-font-color;
|
30
|
+
background-color: $pill-background-color-hover;
|
31
|
+
}
|
32
|
+
& > .active > a > .badge {
|
33
|
+
color: $pill-background-color;
|
34
|
+
}
|
35
|
+
& .open > a,
|
36
|
+
& .open > a:focus,
|
37
|
+
& .open > a:hover {
|
38
|
+
color: $pill-font-color;
|
39
|
+
background-color: $pill-background-color-hover;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$popover-background-color: $darkgray-dark !default;
|
4
|
+
$popover-font-color: $white !default;
|
5
|
+
$popover-title-font-color: $mediumgray-dark !default;
|
6
|
+
|
7
|
+
|
8
|
+
// Exports
|
9
|
+
//------------------------------------------------------
|
10
|
+
|
11
|
+
@include exports("popover") {
|
12
|
+
|
13
|
+
/**
|
14
|
+
* popover
|
15
|
+
* --------------------------------------------------
|
16
|
+
*/
|
17
|
+
|
18
|
+
.popover {
|
19
|
+
background-color: $popover-background-color;
|
20
|
+
color: $popover-font-color;
|
21
|
+
border-color: $popover-background-color;
|
22
|
+
|
23
|
+
@at-root &-title {
|
24
|
+
padding-bottom: 0;
|
25
|
+
font-weight: bold;
|
26
|
+
color: $popover-title-font-color;
|
27
|
+
background-color: transparent;
|
28
|
+
border-bottom: none;
|
29
|
+
}
|
30
|
+
&.top .arrow,
|
31
|
+
&.top .arrow:after {
|
32
|
+
border-top-color: $popover-background-color;
|
33
|
+
}
|
34
|
+
&.right .arrow,
|
35
|
+
&.right .arrow:after {
|
36
|
+
border-right-color: $popover-background-color;
|
37
|
+
}
|
38
|
+
&.bottom .arrow,
|
39
|
+
&.bottom .arrow:after {
|
40
|
+
border-bottom-color: $popover-background-color;
|
41
|
+
}
|
42
|
+
&.left .arrow,
|
43
|
+
&.left .arrow:after {
|
44
|
+
border-left-color: $popover-background-color;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
}
|
49
|
+
|
50
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$progress-primary: $aqua-dark !default;
|
4
|
+
$progress-success: $grass-dark !default;
|
5
|
+
$progress-danger: $grapefruit-dark !default;
|
6
|
+
$progress-warning: $sunflower-dark !default;
|
7
|
+
$progress-info: $mint-dark !default;
|
8
|
+
|
9
|
+
$progress-background-color: $lightgray-dark !default;
|
10
|
+
|
11
|
+
// Exports
|
12
|
+
//------------------------------------------------------
|
13
|
+
@include exports("progress") {
|
14
|
+
|
15
|
+
/**
|
16
|
+
* progress
|
17
|
+
* --------------------------------------------------
|
18
|
+
*/
|
19
|
+
.progress {
|
20
|
+
background-color: $progress-background-color;
|
21
|
+
@include box-shadow($value: none);
|
22
|
+
|
23
|
+
&-bar {
|
24
|
+
background-color: $progress-primary;
|
25
|
+
@include box-shadow($value: none);
|
26
|
+
}
|
27
|
+
&-bar-success {
|
28
|
+
background-color: $progress-success;
|
29
|
+
}
|
30
|
+
&-bar-info {
|
31
|
+
background-color: $progress-info;
|
32
|
+
}
|
33
|
+
&-bar-warning {
|
34
|
+
background-color: $progress-warning;
|
35
|
+
}
|
36
|
+
&-bar-danger {
|
37
|
+
background-color: $progress-danger;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
|
@@ -0,0 +1,179 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$tab-background-color: $lightgray-dark !default;
|
4
|
+
$tab-background-color-hover: $lightgray-light !default;
|
5
|
+
$tab-radius: 4px !default;
|
6
|
+
|
7
|
+
$tab-font-color: $darkgray-dark !default;
|
8
|
+
$tab-font-color-acitve: $white !default;
|
9
|
+
|
10
|
+
$tab-aside-width: 74px !default;
|
11
|
+
|
12
|
+
$tab-border-color: $mediumgray-light !default;
|
13
|
+
// Exports
|
14
|
+
//------------------------------------------------------
|
15
|
+
|
16
|
+
@include exports("tab") {
|
17
|
+
|
18
|
+
/**
|
19
|
+
* tab
|
20
|
+
* --------------------------------------------------
|
21
|
+
*/
|
22
|
+
.nav-tabs {
|
23
|
+
border-bottom: none;
|
24
|
+
background-color: $tab-background-color;
|
25
|
+
@include radius($type: border-radius, $value: $tab-radius $tab-radius 0 0);
|
26
|
+
|
27
|
+
& > li {
|
28
|
+
margin-bottom: 0;
|
29
|
+
border-left: 1px solid $tab-border-color;
|
30
|
+
}
|
31
|
+
& > li:first-child {
|
32
|
+
border-left: none;
|
33
|
+
}
|
34
|
+
& > li > a {
|
35
|
+
margin-right: 0;
|
36
|
+
border: none;
|
37
|
+
@include radius($type: border-radius, $value: 0);
|
38
|
+
color: $tab-font-color;
|
39
|
+
}
|
40
|
+
& > li:first-child > a {
|
41
|
+
@include radius($type: border-radius, $value: $tab-radius 0 0 0);
|
42
|
+
}
|
43
|
+
& > li > a:focus,
|
44
|
+
& > li > a:hover {
|
45
|
+
border: none;
|
46
|
+
background-color: $tab-background-color-hover;
|
47
|
+
}
|
48
|
+
& > li.active > a,
|
49
|
+
& > li.active > a:focus,
|
50
|
+
& > li.active > a:hover {
|
51
|
+
border: none;
|
52
|
+
background-color: $tab-font-color-acitve !important;
|
53
|
+
}
|
54
|
+
|
55
|
+
& .dropdown-toggle,
|
56
|
+
& .dropdown-toggle:hover,
|
57
|
+
& .dropdown-toggle:focus {
|
58
|
+
color: $tab-font-color;
|
59
|
+
}
|
60
|
+
|
61
|
+
& li.dropdown.open .dropdown-toggle {
|
62
|
+
color: $tab-font-color;
|
63
|
+
background-color: $tab-background-color-hover;
|
64
|
+
}
|
65
|
+
& li.dropdown.active.open .dropdown-toggle {
|
66
|
+
color: $tab-font-color;
|
67
|
+
}
|
68
|
+
& li.dropdown.active.open .dropdown-toggle .caret,
|
69
|
+
& li.dropdown.active .dropdown-toggle .caret {
|
70
|
+
border-top-color: $tab-font-color;
|
71
|
+
border-bottom-color: $tab-font-color;
|
72
|
+
}
|
73
|
+
& li.dropdown.open .caret,
|
74
|
+
& li.dropdown.open.active .caret,
|
75
|
+
& li.dropdown.open a:hover .caret,
|
76
|
+
& li.dropdown.open a:focus .caret,
|
77
|
+
& .dropdown-toggle .caret,
|
78
|
+
& .dropdown-toggle:hover .caret,
|
79
|
+
& .dropdown-toggle:focus .caret {
|
80
|
+
border-top-color: $tab-font-color;
|
81
|
+
border-bottom-color: $tab-font-color;
|
82
|
+
}
|
83
|
+
|
84
|
+
&.nav-justified > li > a {
|
85
|
+
margin-bottom: 0;
|
86
|
+
text-align: center;
|
87
|
+
}
|
88
|
+
&.nav-justified > .dropdown .dropdown-menu {
|
89
|
+
top: auto;
|
90
|
+
left: auto;
|
91
|
+
}
|
92
|
+
&.nav-justified > li > a {
|
93
|
+
@include radius($type: border-radius, $value: 0);
|
94
|
+
}
|
95
|
+
&.nav-justified > li:first-child > a {
|
96
|
+
@include radius($type: border-radius, $value: $tab-radius 0 0 0);
|
97
|
+
}
|
98
|
+
&.nav-justified > li:last-child > a {
|
99
|
+
@include radius($type: border-radius, $value: 0 $tab-radius 0 0);
|
100
|
+
}
|
101
|
+
&.nav-justified > .active > a,
|
102
|
+
&.nav-justified > .active > a:hover,
|
103
|
+
&.nav-justified > .active > a:focus {
|
104
|
+
border: none;
|
105
|
+
}
|
106
|
+
@media (min-width: 768px) {
|
107
|
+
&.nav-justified > li > a {
|
108
|
+
border-bottom: none;
|
109
|
+
@include radius($type: border-radius, $value: 0);
|
110
|
+
}
|
111
|
+
&.nav-justified > .active > a,
|
112
|
+
&.nav-justified > .active > a:hover,
|
113
|
+
&.nav-justified > .active > a:focus {
|
114
|
+
border-bottom: none;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
@at-root .tab-content {
|
119
|
+
padding: 10px;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
.tabs-below {
|
124
|
+
& .nav-tabs {
|
125
|
+
@include radius($type: border-radius, $value: 0 0 $tab-radius $tab-radius);
|
126
|
+
}
|
127
|
+
& .nav-tabs > li:first-child > a {
|
128
|
+
@include radius($type: border-radius, $value: 0 0 0 $tab-radius);
|
129
|
+
}
|
130
|
+
& .nav-tabs.nav-justified > li:last-child > a {
|
131
|
+
@include radius($type: border-radius, $value: 0 0 $tab-radius 0);
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
.tabs-left .nav-tabs > li,
|
136
|
+
.tabs-right .nav-tabs > li {
|
137
|
+
float: none;
|
138
|
+
border-left: none;
|
139
|
+
border-top: 1px solid $tab-border-color;
|
140
|
+
}
|
141
|
+
.tabs-left .nav-tabs > li:first-child,
|
142
|
+
.tabs-right .nav-tabs > li:first-child {
|
143
|
+
border-top: none;
|
144
|
+
}
|
145
|
+
.tabs-left .nav-tabs > li > a,
|
146
|
+
.tabs-right .nav-tabs > li > a {
|
147
|
+
min-width: $tab-aside-width;
|
148
|
+
margin-right: 0;
|
149
|
+
}
|
150
|
+
.tabs-left {
|
151
|
+
& .nav-tabs {
|
152
|
+
float: left;
|
153
|
+
margin-right: 19px;
|
154
|
+
@include radius($type: border-radius, $value: $tab-radius 0 0 $tab-radius);
|
155
|
+
}
|
156
|
+
& .nav-tabs > li:first-child > a {
|
157
|
+
@include radius($type: border-radius, $value: $tab-radius 0 0 0);
|
158
|
+
}
|
159
|
+
& .nav-tabs > li:last-child > a {
|
160
|
+
@include radius($type: border-radius, $value: 0 0 0 $tab-radius);
|
161
|
+
}
|
162
|
+
}
|
163
|
+
.tabs-right {
|
164
|
+
& .nav-tabs {
|
165
|
+
float: right;
|
166
|
+
margin-left: 19px;
|
167
|
+
@include radius($type: border-radius, $value: 0 $tab-radius $tab-radius 0);
|
168
|
+
}
|
169
|
+
& .nav-tabs > li:first-child > a {
|
170
|
+
@include radius($type: border-radius, $value: 0 $tab-radius 0 0);
|
171
|
+
}
|
172
|
+
& .nav-tabs > li:last-child > a {
|
173
|
+
@include radius($type: border-radius, $value: 0 0 $tab-radius 0);
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
}
|
178
|
+
|
179
|
+
|
@@ -0,0 +1,39 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$media-font-color: $darkgray-dark !default;
|
4
|
+
|
5
|
+
|
6
|
+
$thumbnail-shadow: 0 1px 2px rgba(0, 0, 0, .2) !default;
|
7
|
+
|
8
|
+
|
9
|
+
// Exports
|
10
|
+
//------------------------------------------------------
|
11
|
+
|
12
|
+
@include exports("thumbnail") {
|
13
|
+
|
14
|
+
/**
|
15
|
+
* thumbnail
|
16
|
+
* --------------------------------------------------
|
17
|
+
*/
|
18
|
+
.thumbnail {
|
19
|
+
border: none;
|
20
|
+
@include box-shadow($value: $list-shadow);
|
21
|
+
|
22
|
+
& .caption {
|
23
|
+
font-size: 14px;
|
24
|
+
}
|
25
|
+
|
26
|
+
& .caption h1,
|
27
|
+
& .caption h2,
|
28
|
+
& .caption h3,
|
29
|
+
& .caption h4,
|
30
|
+
& .caption h5,
|
31
|
+
& .caption h6 {
|
32
|
+
margin: 5px 0 10px;
|
33
|
+
font-size: 16px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$tooltip-background-color: $darkgray-dark !default;
|
4
|
+
$tooltip-font-color: $white !default;
|
5
|
+
|
6
|
+
|
7
|
+
// Exports
|
8
|
+
//------------------------------------------------------
|
9
|
+
|
10
|
+
@include exports("tooltip") {
|
11
|
+
|
12
|
+
/**
|
13
|
+
* tooltip
|
14
|
+
* --------------------------------------------------
|
15
|
+
*/
|
16
|
+
|
17
|
+
.tooltip {
|
18
|
+
@at-root &-inner {
|
19
|
+
color: $tooltip-font-color;
|
20
|
+
background-color: $tooltip-background-color;
|
21
|
+
}
|
22
|
+
&.top &-arrow,
|
23
|
+
&.top-left &-arrow,
|
24
|
+
&.top-right &-arrow {
|
25
|
+
border-top-color: $tooltip-background-color;
|
26
|
+
}
|
27
|
+
&.right &-arrow {
|
28
|
+
border-right-color: $tooltip-background-color;
|
29
|
+
}
|
30
|
+
&.left &-arrow {
|
31
|
+
border-left-color: $tooltip-background-color;
|
32
|
+
}
|
33
|
+
&.bottom &-arrow,
|
34
|
+
&.bottom-left &-arrow,
|
35
|
+
&.bottom-right &-arrow {
|
36
|
+
border-bottom-color: $tooltip-background-color;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
}
|
41
|
+
|
42
|
+
|
@@ -0,0 +1,127 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$body-font-color: $darkgray-dark !default;
|
4
|
+
$body-background-color: $white !default;
|
5
|
+
|
6
|
+
$link-font-color: $aqua-dark !default;
|
7
|
+
$link-font-color-hover: $aqua-light !default;
|
8
|
+
|
9
|
+
$blockquote-border-color: $mediumgray-light !default;
|
10
|
+
|
11
|
+
$image-radius: 4px !default;
|
12
|
+
|
13
|
+
// Exports
|
14
|
+
//------------------------------------------------------
|
15
|
+
|
16
|
+
@include exports("typography") {
|
17
|
+
|
18
|
+
/**
|
19
|
+
* typography
|
20
|
+
* --------------------------------------------------
|
21
|
+
*/
|
22
|
+
|
23
|
+
body {
|
24
|
+
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
25
|
+
// font-family: 'Lato', sans-serif;
|
26
|
+
color: $body-font-color;
|
27
|
+
background-color: $body-background-color;
|
28
|
+
}
|
29
|
+
a {
|
30
|
+
color: $link-font-color;
|
31
|
+
text-decoration: none;
|
32
|
+
|
33
|
+
&:hover,
|
34
|
+
&:focus {
|
35
|
+
color: $link-font-color-hover;
|
36
|
+
text-decoration: none;
|
37
|
+
}
|
38
|
+
&:focus {
|
39
|
+
outline: none;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
h1,
|
43
|
+
h2,
|
44
|
+
h3,
|
45
|
+
h4,
|
46
|
+
h5,
|
47
|
+
h6,
|
48
|
+
.h1,
|
49
|
+
.h2,
|
50
|
+
.h3,
|
51
|
+
.h4,
|
52
|
+
.h5,
|
53
|
+
.h6 {
|
54
|
+
font-family: inherit;
|
55
|
+
font-weight: 700;
|
56
|
+
line-height: 1.1;
|
57
|
+
color: inherit;
|
58
|
+
}
|
59
|
+
h1 small,
|
60
|
+
h2 small,
|
61
|
+
h3 small,
|
62
|
+
h4 small,
|
63
|
+
h5 small,
|
64
|
+
h6 small,
|
65
|
+
.h1 small,
|
66
|
+
.h2 small,
|
67
|
+
.h3 small,
|
68
|
+
.h4 small,
|
69
|
+
.h5 small,
|
70
|
+
.h6 small {
|
71
|
+
color: #e7e9ec;
|
72
|
+
}
|
73
|
+
h1,
|
74
|
+
h2,
|
75
|
+
h3 {
|
76
|
+
margin-top: 30px;
|
77
|
+
margin-bottom: 15px;
|
78
|
+
}
|
79
|
+
h4,
|
80
|
+
h5,
|
81
|
+
h6 {
|
82
|
+
margin-top: 15px;
|
83
|
+
margin-bottom: 15px;
|
84
|
+
}
|
85
|
+
h6 {
|
86
|
+
font-weight: normal;
|
87
|
+
}
|
88
|
+
h1,
|
89
|
+
.h1 {
|
90
|
+
font-size: 51px;
|
91
|
+
}
|
92
|
+
h2,
|
93
|
+
.h2 {
|
94
|
+
font-size: 43px;
|
95
|
+
}
|
96
|
+
h3,
|
97
|
+
.h3 {
|
98
|
+
font-size: 30px;
|
99
|
+
}
|
100
|
+
h4,
|
101
|
+
.h4 {
|
102
|
+
font-size: 19px;
|
103
|
+
}
|
104
|
+
h5,
|
105
|
+
.h5 {
|
106
|
+
font-size: 18px;
|
107
|
+
}
|
108
|
+
h6,
|
109
|
+
.h6 {
|
110
|
+
font-size: 14px;
|
111
|
+
}
|
112
|
+
blockquote {
|
113
|
+
border-left: 3px solid $blockquote-border-color;
|
114
|
+
}
|
115
|
+
.img-rounded {
|
116
|
+
@include radius($type: border-radius, $value: $image-radius);
|
117
|
+
}
|
118
|
+
.img-comment {
|
119
|
+
font-size: 15px;
|
120
|
+
line-height: 1.2;
|
121
|
+
font-style: italic;
|
122
|
+
margin: 24px 0;
|
123
|
+
}
|
124
|
+
|
125
|
+
}
|
126
|
+
|
127
|
+
|