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,76 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$accordion-border-color: $lightgray-dark !default;
|
4
|
+
|
5
|
+
$accordion-panel-font-color: $darkgray-dark !default;
|
6
|
+
$accordion-panel-font-color-hover: $mediumgray-dark !default;
|
7
|
+
$accordion-panel-radius: 4px !default;
|
8
|
+
|
9
|
+
$accordion-panel-shadow: 0 1px 2px rgba(0, 0, 0, .2) !default;
|
10
|
+
|
11
|
+
$accordion-panel-background-color: $white !default;
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
// Exports
|
16
|
+
//------------------------------------------------------
|
17
|
+
|
18
|
+
@include exports("accordion") {
|
19
|
+
|
20
|
+
/**
|
21
|
+
* accordion
|
22
|
+
* --------------------------------------------------
|
23
|
+
*/
|
24
|
+
.panel-group {
|
25
|
+
& .panel {
|
26
|
+
@include radius($type: border-radius, $value: 0);
|
27
|
+
background-color: transparent;
|
28
|
+
@include box-shadow($value: none);
|
29
|
+
}
|
30
|
+
& .panel+.panel {
|
31
|
+
margin-top: 0;
|
32
|
+
}
|
33
|
+
& .panel-heading {
|
34
|
+
padding: 0;
|
35
|
+
border-bottom-color: transparent;
|
36
|
+
}
|
37
|
+
& .panel-heading+.panel-collapse .panel-body {
|
38
|
+
padding: 15px 0;
|
39
|
+
border-top-color: transparent;
|
40
|
+
}
|
41
|
+
& .panel-title a {
|
42
|
+
padding: 10px 0;
|
43
|
+
display: block;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
.panel-group-lists {
|
47
|
+
& .panel {
|
48
|
+
border-bottom: 1px solid $accordion-border-color;
|
49
|
+
background-color: $accordion-panel-background-color;
|
50
|
+
@include box-shadow($value: $accordion-panel-shadow);
|
51
|
+
}
|
52
|
+
& .panel:first-child {
|
53
|
+
@include radius($type: border-radius, $value: $accordion-panel-radius $accordion-panel-radius 0 0);
|
54
|
+
}
|
55
|
+
& .panel:last-child {
|
56
|
+
@include radius($type: border-radius, $value: 0 0 $accordion-panel-radius $accordion-panel-radius);
|
57
|
+
border-bottom: none;
|
58
|
+
}
|
59
|
+
& .panel-heading+.panel-collapse .panel-body {
|
60
|
+
padding: 15px;
|
61
|
+
border-top-color: $accordion-border-color;
|
62
|
+
}
|
63
|
+
& .panel-title a {
|
64
|
+
padding: 10px 15px;
|
65
|
+
color: $accordion-panel-font-color;
|
66
|
+
}
|
67
|
+
& .panel-title a:hover,
|
68
|
+
& .panel-title a:focus,
|
69
|
+
& .panel-title a:active {
|
70
|
+
color: $accordion-panel-font-color-hover;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
|
@@ -0,0 +1,75 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$alert-primary: $aqua-light !default;
|
4
|
+
$alert-success: $grass-light !default;
|
5
|
+
$alert-danger: $grapefruit-light !default;
|
6
|
+
$alert-warning: $sunflower-light !default;
|
7
|
+
|
8
|
+
$alert-close-color: $black !default;
|
9
|
+
|
10
|
+
$alert-link-color: $mediumgray-light !default;
|
11
|
+
|
12
|
+
|
13
|
+
// Exports
|
14
|
+
//------------------------------------------------------
|
15
|
+
|
16
|
+
@include exports("alert") {
|
17
|
+
|
18
|
+
/**
|
19
|
+
* alert
|
20
|
+
* --------------------------------------------------
|
21
|
+
*/
|
22
|
+
.alert {
|
23
|
+
|
24
|
+
& h4 {
|
25
|
+
margin-bottom: 10px;
|
26
|
+
font-weight: bold;
|
27
|
+
}
|
28
|
+
|
29
|
+
&-dismissable .close {
|
30
|
+
color: $alert-close-color;
|
31
|
+
}
|
32
|
+
|
33
|
+
@at-root &-info {
|
34
|
+
background-color: lighten($alert-primary, 10%);
|
35
|
+
border: $alert-primary;
|
36
|
+
}
|
37
|
+
@at-root &-warning {
|
38
|
+
background-color: lighten($alert-warning, 10%);
|
39
|
+
border: $alert-warning;
|
40
|
+
}
|
41
|
+
@at-root &-danger {
|
42
|
+
background-color: lighten($alert-danger, 10%);
|
43
|
+
border: $alert-danger;
|
44
|
+
}
|
45
|
+
@at-root &-success {
|
46
|
+
background-color: lighten($alert-success, 10%);
|
47
|
+
border: $alert-success;
|
48
|
+
}
|
49
|
+
|
50
|
+
@at-root & &-link {
|
51
|
+
cursor: pointer;
|
52
|
+
text-decoration: underline;
|
53
|
+
@include opacity($opacity: 65, $filter: true);
|
54
|
+
&:hover,
|
55
|
+
&:focus {
|
56
|
+
@include opacity($opacity: 45, $filter: true);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
@at-root & .btn-link,
|
61
|
+
& .btn-link:hover,
|
62
|
+
& .btn-link:focus {
|
63
|
+
color: $alert-close-color;
|
64
|
+
@include opacity($opacity: 65, $filter: true);
|
65
|
+
}
|
66
|
+
@at-root & .btn-link:focus,
|
67
|
+
& .btn-link:hover {
|
68
|
+
text-decoration: none;
|
69
|
+
@include opacity($opacity: 40, $filter: true);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
}
|
74
|
+
|
75
|
+
|
@@ -0,0 +1,121 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$breadcrumb-font-color: $darkgray-dark !default;
|
4
|
+
$breadcrumb-link-color: $aqua-dark !default;
|
5
|
+
$breadcrumb-background-color: $lightgray-dark !default;
|
6
|
+
|
7
|
+
$breadcrumb-arrow-radius: 4px !default;
|
8
|
+
$breadcrumb-arrow-font-color: $white !default;
|
9
|
+
$breadcrumb-arrow-background-color: $aqua-dark !default;
|
10
|
+
$breadcrumb-arrow-background-color-hover: $aqua-light !default;
|
11
|
+
|
12
|
+
// Exports
|
13
|
+
//------------------------------------------------------
|
14
|
+
@include exports("breadcrumb") {
|
15
|
+
|
16
|
+
/**
|
17
|
+
* breadcrumb
|
18
|
+
* --------------------------------------------------
|
19
|
+
*/
|
20
|
+
.breadcrumb {
|
21
|
+
color: $breadcrumb-font-color;
|
22
|
+
background-color: $breadcrumb-background-color;
|
23
|
+
& > .active {
|
24
|
+
color: $breadcrumb-font-color;
|
25
|
+
}
|
26
|
+
& a {
|
27
|
+
color: $breadcrumb-link-color;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.breadcrumb-arrow {
|
32
|
+
padding: 0;
|
33
|
+
list-style: none;
|
34
|
+
background-color: $breadcrumb-background-color;
|
35
|
+
height: 36px;
|
36
|
+
line-height: 36px;
|
37
|
+
|
38
|
+
& li:first-child a {
|
39
|
+
@include radius($type: border-radius, $value: $breadcrumb-arrow-radius 0 0 $breadcrumb-arrow-radius);
|
40
|
+
}
|
41
|
+
& li,
|
42
|
+
& li a,
|
43
|
+
& li span{
|
44
|
+
display: inline-block;
|
45
|
+
vertical-align: top;
|
46
|
+
}
|
47
|
+
& li:not(:first-child) {
|
48
|
+
margin-left: -5px;
|
49
|
+
}
|
50
|
+
& li + li:before {
|
51
|
+
padding: 0;
|
52
|
+
content: "";
|
53
|
+
}
|
54
|
+
& li span {
|
55
|
+
padding: 0 10px;
|
56
|
+
}
|
57
|
+
& li a,
|
58
|
+
& li:not(:first-child) span {
|
59
|
+
padding: 0 10px 0 25px;
|
60
|
+
height: 36px;
|
61
|
+
line-height: 36px;
|
62
|
+
}
|
63
|
+
& li:first-child a {
|
64
|
+
padding: 0 10px;
|
65
|
+
}
|
66
|
+
& li a {
|
67
|
+
position: relative;
|
68
|
+
border: 1px solid $breadcrumb-arrow-background-color;
|
69
|
+
color: $breadcrumb-arrow-font-color;
|
70
|
+
background-color: $breadcrumb-arrow-background-color;
|
71
|
+
text-decoration: none;
|
72
|
+
}
|
73
|
+
& li:first-child a {
|
74
|
+
padding-left: 10px;
|
75
|
+
}
|
76
|
+
& li a:before,
|
77
|
+
& li a:after {
|
78
|
+
position: absolute;
|
79
|
+
top: -1px;
|
80
|
+
content: '';
|
81
|
+
width: 0;
|
82
|
+
height: 0;
|
83
|
+
border-top: 18px solid transparent;
|
84
|
+
border-bottom: 18px solid transparent;
|
85
|
+
}
|
86
|
+
& li a:before {
|
87
|
+
right: -10px;
|
88
|
+
border-left-width: 11px;
|
89
|
+
border-left-style: solid;
|
90
|
+
border-left-color: $breadcrumb-arrow-background-color;
|
91
|
+
z-index: 3;
|
92
|
+
}
|
93
|
+
& li a:after{
|
94
|
+
right: -11px;
|
95
|
+
border-left: 11px solid darken($breadcrumb-arrow-background-color, 10%);
|
96
|
+
z-index: 2;
|
97
|
+
}
|
98
|
+
& li a:hover,
|
99
|
+
& li a:focus {
|
100
|
+
background-color: $breadcrumb-arrow-background-color-hover;
|
101
|
+
border: 1px solid $breadcrumb-arrow-background-color-hover;
|
102
|
+
}
|
103
|
+
& li a:hover:before,
|
104
|
+
& li a:focus:before {
|
105
|
+
border-left-color: $breadcrumb-arrow-background-color-hover;
|
106
|
+
}
|
107
|
+
& li a:active {
|
108
|
+
background-color: darken($breadcrumb-arrow-background-color, 10%);
|
109
|
+
border: 1px solid darken($breadcrumb-arrow-background-color, 10%);
|
110
|
+
}
|
111
|
+
& li a:active:before,
|
112
|
+
& li a:active:after {
|
113
|
+
border-left-color: darken($breadcrumb-arrow-background-color, 10%);
|
114
|
+
}
|
115
|
+
& li span {
|
116
|
+
color: $breadcrumb-font-color;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
|
@@ -0,0 +1,205 @@
|
|
1
|
+
// Variables
|
2
|
+
//------------------------------------------------------
|
3
|
+
$button-normal: $mediumgray-dark !default;
|
4
|
+
$button-default: $white !default;
|
5
|
+
$button-primary: $aqua-dark !default;
|
6
|
+
$button-success: $grass-dark !default;
|
7
|
+
$button-danger: $grapefruit-dark !default;
|
8
|
+
$button-warning: $sunflower-dark !default;
|
9
|
+
$button-info: $mint-dark !default;
|
10
|
+
|
11
|
+
$button-normal-hover: $mediumgray-light !default;
|
12
|
+
$button-default-hover: $button-default !default;
|
13
|
+
$button-primary-hover: $aqua-light !default;
|
14
|
+
$button-success-hover: $grass-light !default;
|
15
|
+
$button-danger-hover: $grapefruit-light !default;
|
16
|
+
$button-warning-hover: $sunflower-light !default;
|
17
|
+
$button-info-hover: $mint-light !default;
|
18
|
+
|
19
|
+
$button-font-color-dark: $darkgray-dark !default;
|
20
|
+
$button-font-color-light: $white !default;
|
21
|
+
|
22
|
+
$button-opacity: 45 !default;
|
23
|
+
$button-shadow: inset 0 1px 2px rgba(0, 0, 0, .125) !default;
|
24
|
+
|
25
|
+
// Exports
|
26
|
+
//------------------------------------------------------
|
27
|
+
|
28
|
+
@include exports("button") {
|
29
|
+
|
30
|
+
/**
|
31
|
+
* button
|
32
|
+
* --------------------------------------------------
|
33
|
+
*/
|
34
|
+
.btn {
|
35
|
+
color: $button-font-color-light;
|
36
|
+
|
37
|
+
&,
|
38
|
+
&.disabled,
|
39
|
+
&[disabled] {
|
40
|
+
border-color: $button-normal;
|
41
|
+
background-color: $button-normal;
|
42
|
+
}
|
43
|
+
&:hover,
|
44
|
+
&:focus,
|
45
|
+
&:active,
|
46
|
+
&.active {
|
47
|
+
color: $button-font-color-light;
|
48
|
+
border-color: $button-normal-hover;
|
49
|
+
background-color: $button-normal-hover;
|
50
|
+
outline: none !important;
|
51
|
+
}
|
52
|
+
&:active,
|
53
|
+
&.active {
|
54
|
+
@include box-shadow($value: $button-shadow);
|
55
|
+
}
|
56
|
+
&.disabled,
|
57
|
+
&[disabled] {
|
58
|
+
@include opacity($opacity: $button-opacity, $filter: true);
|
59
|
+
}
|
60
|
+
|
61
|
+
@at-root &-link {
|
62
|
+
&,
|
63
|
+
&:hover,
|
64
|
+
&:focus,
|
65
|
+
&:active,
|
66
|
+
&.active,
|
67
|
+
&.disabled,
|
68
|
+
&[disabled] {
|
69
|
+
border-color: transparent;
|
70
|
+
background-color: transparent;
|
71
|
+
color: $button-primary;
|
72
|
+
@include box-shadow($value: none);
|
73
|
+
}
|
74
|
+
&:hover,
|
75
|
+
&:focus {
|
76
|
+
text-decoration: underline;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
@at-root &-default {
|
81
|
+
color: $button-font-color-dark;
|
82
|
+
border-color: $button-normal !important;
|
83
|
+
|
84
|
+
&:hover,
|
85
|
+
&:focus,
|
86
|
+
&:active,
|
87
|
+
&.active {
|
88
|
+
border-color: $button-normal-hover;
|
89
|
+
background-color: $button-normal-hover;
|
90
|
+
}
|
91
|
+
&,
|
92
|
+
&.disabled,
|
93
|
+
&[disabled] {
|
94
|
+
background-color: $button-default;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
@at-root .open .dropdown-toggle.btn-default {
|
98
|
+
border-color: $button-normal-hover;
|
99
|
+
background-color: $button-normal-hover;
|
100
|
+
}
|
101
|
+
|
102
|
+
@at-root &-primary {
|
103
|
+
&,
|
104
|
+
&:active,
|
105
|
+
&.active,
|
106
|
+
&.disabled,
|
107
|
+
&[disabled] {
|
108
|
+
border-color: $button-primary;
|
109
|
+
background-color: $button-primary;
|
110
|
+
}
|
111
|
+
&:hover,
|
112
|
+
&:focus {
|
113
|
+
border-color: $button-primary-hover;
|
114
|
+
background-color: $button-primary-hover;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
@at-root .open .dropdown-toggle.btn-primary {
|
118
|
+
border-color: $button-primary-hover;
|
119
|
+
background-color: $button-primary-hover;
|
120
|
+
}
|
121
|
+
|
122
|
+
@at-root &-info {
|
123
|
+
&,
|
124
|
+
&:active,
|
125
|
+
&.active,
|
126
|
+
&.disabled,
|
127
|
+
&[disabled] {
|
128
|
+
border-color: $button-info;
|
129
|
+
background-color: $button-info;
|
130
|
+
}
|
131
|
+
&:hover,
|
132
|
+
&:focus {
|
133
|
+
border-color: $button-info-hover;
|
134
|
+
background-color: $button-info-hover;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
@at-root .open .dropdown-toggle.btn-info {
|
138
|
+
border-color: $button-info-hover;
|
139
|
+
background-color: $button-info-hover;
|
140
|
+
}
|
141
|
+
|
142
|
+
@at-root &-success {
|
143
|
+
&,
|
144
|
+
&:active,
|
145
|
+
&.active,
|
146
|
+
&.disabled,
|
147
|
+
&[disabled] {
|
148
|
+
border-color: $button-success;
|
149
|
+
background-color: $button-success;
|
150
|
+
}
|
151
|
+
&:hover,
|
152
|
+
&:focus {
|
153
|
+
border-color: $button-success-hover;
|
154
|
+
background-color: $button-success-hover;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
@at-root .open .dropdown-toggle.btn-success {
|
158
|
+
border-color: $button-success-hover;
|
159
|
+
background-color: $button-success-hover;
|
160
|
+
}
|
161
|
+
|
162
|
+
@at-root &-warning {
|
163
|
+
&,
|
164
|
+
&:active,
|
165
|
+
&.active,
|
166
|
+
&.disabled,
|
167
|
+
&[disabled] {
|
168
|
+
border-color: $button-warning;
|
169
|
+
background-color: $button-warning;
|
170
|
+
}
|
171
|
+
&:hover,
|
172
|
+
&:focus {
|
173
|
+
border-color: $button-warning-hover;
|
174
|
+
background-color: $button-warning-hover;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
@at-root .open .dropdown-toggle.btn-warning {
|
178
|
+
border-color: $button-warning-hover;
|
179
|
+
background-color: $button-warning-hover;
|
180
|
+
}
|
181
|
+
|
182
|
+
@at-root &-danger {
|
183
|
+
&,
|
184
|
+
&:active,
|
185
|
+
&.active,
|
186
|
+
&.disabled,
|
187
|
+
&[disabled],
|
188
|
+
.open .dropdown-toggle.btn {
|
189
|
+
border-color: $button-danger;
|
190
|
+
background-color: $button-danger;
|
191
|
+
}
|
192
|
+
&:hover,
|
193
|
+
&:focus {
|
194
|
+
border-color: $button-danger-hover;
|
195
|
+
background-color: $button-danger-hover;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
@at-root .open .dropdown-toggle.btn-danger {
|
199
|
+
border-color: $button-danger-hover;
|
200
|
+
background-color: $button-danger-hover;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
|