flat-ui-sass 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.gitmodules +3 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +256 -0
- data/Rakefile +14 -0
- data/app/helpers/flat_ui/rails/icon_helper.rb +60 -0
- data/bin/fui_convert +9 -0
- data/flat-ui-sass.gemspec +28 -0
- data/lib/flat-ui-sass.rb +98 -0
- data/lib/flat-ui-sass/cli.rb +56 -0
- data/lib/flat-ui-sass/engine.rb +13 -0
- data/lib/flat-ui-sass/sass_functions.rb +56 -0
- data/lib/flat-ui-sass/version.rb +4 -0
- data/lib/tasks/converter.rb +99 -0
- data/lib/tasks/converter/filesystem.rb +16 -0
- data/lib/tasks/converter/flat_ui_fonts_conversion.rb +19 -0
- data/lib/tasks/converter/flat_ui_images_conversion.rb +19 -0
- data/lib/tasks/converter/flat_ui_js_conversion.rb +28 -0
- data/lib/tasks/converter/flat_ui_less_conversion.rb +328 -0
- data/lib/tasks/converter/logger.rb +61 -0
- data/lib/tasks/flat-ui-sass.rake +8 -0
- data/templates/project/_variables.scss.erb +5 -0
- data/templates/project/manifest.rb +57 -0
- data/templates/project/styles.scss +4 -0
- data/vendor/assets/fonts/flat-ui/flat-ui-icons-regular.eot +0 -0
- data/vendor/assets/fonts/flat-ui/flat-ui-icons-regular.svg +140 -0
- data/vendor/assets/fonts/flat-ui/flat-ui-icons-regular.ttf +0 -0
- data/vendor/assets/fonts/flat-ui/flat-ui-icons-regular.woff +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Book.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Calendar.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Chat.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Clipboard.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Compas.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Gift-Box.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Infinity-Loop.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Mail.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Map.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Pensils.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Pocket.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Retina-Ready.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Toilet-Paper.png +0 -0
- data/vendor/assets/images/flat-ui/icons/png/Watches.png +0 -0
- data/vendor/assets/images/flat-ui/icons/svg/book.svg +1 -0
- data/vendor/assets/images/flat-ui/icons/svg/calendar.svg +1 -0
- data/vendor/assets/images/flat-ui/icons/svg/chat.svg +1 -0
- data/vendor/assets/images/flat-ui/icons/svg/clipboard.svg +1 -0
- data/vendor/assets/images/flat-ui/icons/svg/clocks.svg +9 -0
- data/vendor/assets/images/flat-ui/icons/svg/compas.svg +1 -0
- data/vendor/assets/images/flat-ui/icons/svg/gift-box.svg +1 -0
- data/vendor/assets/images/flat-ui/icons/svg/loop.svg +5 -0
- data/vendor/assets/images/flat-ui/icons/svg/mail.svg +1 -0
- data/vendor/assets/images/flat-ui/icons/svg/map.svg +1 -0
- data/vendor/assets/images/flat-ui/icons/svg/paper-bag.svg +1 -0
- data/vendor/assets/images/flat-ui/icons/svg/pencils.svg +1 -0
- data/vendor/assets/images/flat-ui/icons/svg/retina.svg +1 -0
- data/vendor/assets/images/flat-ui/icons/svg/toilet-paper.svg +1 -0
- data/vendor/assets/images/flat-ui/login/icon.png +0 -0
- data/vendor/assets/images/flat-ui/login/imac-2x.png +0 -0
- data/vendor/assets/images/flat-ui/login/imac.png +0 -0
- data/vendor/assets/images/flat-ui/switch/mask-square.png +0 -0
- data/vendor/assets/images/flat-ui/switch/mask.png +0 -0
- data/vendor/assets/images/flat-ui/tile/ribbon-2x.png +0 -0
- data/vendor/assets/images/flat-ui/tile/ribbon.png +0 -0
- data/vendor/assets/images/flat-ui/todo/done-2x.png +0 -0
- data/vendor/assets/images/flat-ui/todo/done.png +0 -0
- data/vendor/assets/images/flat-ui/todo/search-2x.png +0 -0
- data/vendor/assets/images/flat-ui/todo/search.png +0 -0
- data/vendor/assets/images/flat-ui/todo/todo-2x.png +0 -0
- data/vendor/assets/images/flat-ui/todo/todo.png +0 -0
- data/vendor/assets/images/flat-ui/video/fullscreen-2x.png +0 -0
- data/vendor/assets/images/flat-ui/video/fullscreen.png +0 -0
- data/vendor/assets/images/flat-ui/video/pause-2x.png +0 -0
- data/vendor/assets/images/flat-ui/video/pause.png +0 -0
- data/vendor/assets/images/flat-ui/video/play-2x.png +0 -0
- data/vendor/assets/images/flat-ui/video/play.png +0 -0
- data/vendor/assets/images/flat-ui/video/poster.jpg +0 -0
- data/vendor/assets/images/flat-ui/video/volume-full-2x.png +0 -0
- data/vendor/assets/images/flat-ui/video/volume-full.png +0 -0
- data/vendor/assets/images/flat-ui/video/volume-off-2x.png +0 -0
- data/vendor/assets/images/flat-ui/video/volume-off.png +0 -0
- data/vendor/assets/javascripts/flat-ui.js +2 -0
- data/vendor/assets/javascripts/flat-ui/flatui-checkbox.js +112 -0
- data/vendor/assets/javascripts/flat-ui/flatui-radio.js +139 -0
- data/vendor/assets/stylesheets/flat-ui.scss +1 -0
- data/vendor/assets/stylesheets/flat-ui/_mixins.scss +878 -0
- data/vendor/assets/stylesheets/flat-ui/_spaces.scss +172 -0
- data/vendor/assets/stylesheets/flat-ui/_variables.scss +509 -0
- data/vendor/assets/stylesheets/flat-ui/flat-ui.scss +45 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_button-groups.scss +110 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_buttons.scss +151 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_caret.scss +30 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_checkbox-and-radio.scss +143 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_code.scss +49 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_dropdown.scss +223 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_footer.scss +76 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_forms.scss +188 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_glyphicons.scss +135 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_input-groups.scss +153 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_input-icons.scss +72 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_local-fonts.scss +69 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_login.scss +111 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_navbar.scss +876 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_pager.scss +51 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_pagination.scss +166 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_palette.scss +71 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_progress-bars.scss +34 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_scaffolding.scss +64 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_select.scss +145 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_share.scss +44 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_slider.scss +105 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_switch.scss +150 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_tagsinput.scss +121 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_thumbnails.scss +38 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_tile.scss +54 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_todo.scss +110 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_tooltip.scss +56 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_type.scss +208 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_typeahead.scss +41 -0
- data/vendor/assets/stylesheets/flat-ui/modules/_video.scss +458 -0
- metadata +251 -0
@@ -0,0 +1,135 @@
|
|
1
|
+
//
|
2
|
+
// Glyphicons for Flat UI Free
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
@font-face {
|
6
|
+
font-family: "Flat-UI-Icons";
|
7
|
+
src: url(if($flat-ui-sass-asset-helper, flat-ui-font-path('#{$icon-font-path}#{$icon-font-name}.eot'), '#{$icon-font-path}#{$icon-font-name}.eot'));
|
8
|
+
src: url(if($flat-ui-sass-asset-helper, flat-ui-font-path('#{$icon-font-path}#{$icon-font-name}.eot?#iefix'), '#{$icon-font-path}#{$icon-font-name}.eot?#iefix')) format('embedded-opentype'),
|
9
|
+
url(if($flat-ui-sass-asset-helper, flat-ui-font-path('#{$icon-font-path}#{$icon-font-name}.woff'), '#{$icon-font-path}#{$icon-font-name}.woff')) format('woff'),
|
10
|
+
url(if($flat-ui-sass-asset-helper, flat-ui-font-path('#{$icon-font-path}#{$icon-font-name}.ttf'), '#{$icon-font-path}#{$icon-font-name}.ttf')) format('truetype'),
|
11
|
+
url(if($flat-ui-sass-asset-helper, flat-ui-font-path('#{$icon-font-path}#{$icon-font-name}.svg##{$icon-font-svg-id}'), '#{$icon-font-path}#{$icon-font-name}.svg##{$icon-font-svg-id}')) format('svg');
|
12
|
+
font-weight: normal;
|
13
|
+
font-style: normal;
|
14
|
+
}
|
15
|
+
|
16
|
+
|
17
|
+
/* Use the following CSS code if you want to use data attributes for inserting your icons */
|
18
|
+
[data-icon]:before {
|
19
|
+
font-family: 'Flat-UI-Icons';
|
20
|
+
content: attr(data-icon);
|
21
|
+
speak: none;
|
22
|
+
font-weight: normal;
|
23
|
+
font-variant: normal;
|
24
|
+
text-transform: none;
|
25
|
+
-webkit-font-smoothing: antialiased;
|
26
|
+
-moz-osx-font-smoothing: grayscale;
|
27
|
+
}
|
28
|
+
|
29
|
+
/* Use the following CSS code if you want to have a class per icon */
|
30
|
+
/*
|
31
|
+
Instead of a list of all class selectors,
|
32
|
+
you can use the generic selector below, but it's slower:
|
33
|
+
[class*="fui-"] {
|
34
|
+
*/
|
35
|
+
.fui-arrow-right, .fui-arrow-left, .fui-cmd, .fui-check-inverted, .fui-heart, .fui-location, .fui-plus, .fui-check, .fui-cross, .fui-list, .fui-new, .fui-video, .fui-photo, .fui-volume, .fui-time, .fui-eye, .fui-chat, .fui-search, .fui-user, .fui-mail, .fui-lock, .fui-gear, .fui-radio-unchecked, .fui-radio-checked, .fui-checkbox-unchecked, .fui-checkbox-checked, .fui-calendar-solid, .fui-pause, .fui-play, .fui-check-inverted-2 {
|
36
|
+
display: inline-block;
|
37
|
+
font-family: 'Flat-UI-Icons';
|
38
|
+
speak: none;
|
39
|
+
font-style: normal;
|
40
|
+
font-weight: normal;
|
41
|
+
font-variant: normal;
|
42
|
+
text-transform: none;
|
43
|
+
-webkit-font-smoothing: antialiased;
|
44
|
+
-moz-osx-font-smoothing: grayscale;
|
45
|
+
}
|
46
|
+
.fui-arrow-right:before {
|
47
|
+
content: "\e02c";
|
48
|
+
}
|
49
|
+
.fui-arrow-left:before {
|
50
|
+
content: "\e02d";
|
51
|
+
}
|
52
|
+
.fui-cmd:before {
|
53
|
+
content: "\e02f";
|
54
|
+
}
|
55
|
+
.fui-check-inverted:before {
|
56
|
+
content: "\e006";
|
57
|
+
}
|
58
|
+
.fui-heart:before {
|
59
|
+
content: "\e007";
|
60
|
+
}
|
61
|
+
.fui-location:before {
|
62
|
+
content: "\e008";
|
63
|
+
}
|
64
|
+
.fui-plus:before {
|
65
|
+
content: "\e009";
|
66
|
+
}
|
67
|
+
.fui-check:before {
|
68
|
+
content: "\e00a";
|
69
|
+
}
|
70
|
+
.fui-cross:before {
|
71
|
+
content: "\e00b";
|
72
|
+
}
|
73
|
+
.fui-list:before {
|
74
|
+
content: "\e00c";
|
75
|
+
}
|
76
|
+
.fui-new:before {
|
77
|
+
content: "\e00d";
|
78
|
+
}
|
79
|
+
.fui-video:before {
|
80
|
+
content: "\e00e";
|
81
|
+
}
|
82
|
+
.fui-photo:before {
|
83
|
+
content: "\e00f";
|
84
|
+
}
|
85
|
+
.fui-volume:before {
|
86
|
+
content: "\e010";
|
87
|
+
}
|
88
|
+
.fui-time:before {
|
89
|
+
content: "\e011";
|
90
|
+
}
|
91
|
+
.fui-eye:before {
|
92
|
+
content: "\e012";
|
93
|
+
}
|
94
|
+
.fui-chat:before {
|
95
|
+
content: "\e013";
|
96
|
+
}
|
97
|
+
.fui-search:before {
|
98
|
+
content: "\e01c";
|
99
|
+
}
|
100
|
+
.fui-user:before {
|
101
|
+
content: "\e01d";
|
102
|
+
}
|
103
|
+
.fui-mail:before {
|
104
|
+
content: "\e01e";
|
105
|
+
}
|
106
|
+
.fui-lock:before {
|
107
|
+
content: "\e01f";
|
108
|
+
}
|
109
|
+
.fui-gear:before {
|
110
|
+
content: "\e024";
|
111
|
+
}
|
112
|
+
.fui-radio-unchecked:before {
|
113
|
+
content: "\e02b";
|
114
|
+
}
|
115
|
+
.fui-radio-checked:before {
|
116
|
+
content: "\e032";
|
117
|
+
}
|
118
|
+
.fui-checkbox-unchecked:before {
|
119
|
+
content: "\e033";
|
120
|
+
}
|
121
|
+
.fui-checkbox-checked:before {
|
122
|
+
content: "\e034";
|
123
|
+
}
|
124
|
+
.fui-calendar-solid:before {
|
125
|
+
content: "\e022";
|
126
|
+
}
|
127
|
+
.fui-pause:before {
|
128
|
+
content: "\e03b";
|
129
|
+
}
|
130
|
+
.fui-play:before {
|
131
|
+
content: "\e03c";
|
132
|
+
}
|
133
|
+
.fui-check-inverted-2:before {
|
134
|
+
content: "\e000";
|
135
|
+
}
|
@@ -0,0 +1,153 @@
|
|
1
|
+
//
|
2
|
+
// Input groups
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Sizing options
|
7
|
+
//
|
8
|
+
// Remix the default form control sizing classes into new ones for easier
|
9
|
+
// manipulation.
|
10
|
+
|
11
|
+
.input-group-hg > .form-control,
|
12
|
+
.input-group-hg > .input-group-addon,
|
13
|
+
.input-group-hg > .input-group-btn > .btn { @extend .input-hg; }
|
14
|
+
.input-group-lg > .form-control,
|
15
|
+
.input-group-lg > .input-group-addon,
|
16
|
+
.input-group-lg > .input-group-btn > .btn { @extend .input-lg; }
|
17
|
+
.input-group-sm > .form-control,
|
18
|
+
.input-group-sm > .input-group-addon,
|
19
|
+
.input-group-sm > .input-group-btn > .btn { @extend .input-sm; }
|
20
|
+
|
21
|
+
// Text input groups
|
22
|
+
// -------------------------
|
23
|
+
.input-group-addon {
|
24
|
+
padding: 10px 12px;
|
25
|
+
font-size: $component-font-size-base;
|
26
|
+
color: $inverse;
|
27
|
+
text-align: center;
|
28
|
+
background-color: $gray-light;
|
29
|
+
border: 1px solid $gray-light;
|
30
|
+
border-radius: $border-radius-large;
|
31
|
+
@include transition(border .25s linear, color .25s linear, background-color .25s linear);
|
32
|
+
|
33
|
+
.input-group-hg &,
|
34
|
+
.input-group-lg &,
|
35
|
+
.input-group-sm &, {
|
36
|
+
line-height: 1;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
// Reset rounded corners
|
41
|
+
@include form-controls-corners-reset();
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
// Focus State
|
46
|
+
// -------------------------
|
47
|
+
.form-group.focus,
|
48
|
+
.input-group.focus {
|
49
|
+
.input-group-addon {
|
50
|
+
background-color: $brand-secondary;
|
51
|
+
border-color: $brand-secondary;
|
52
|
+
}
|
53
|
+
.input-group-btn {
|
54
|
+
> .btn-default + .btn-default {
|
55
|
+
border-left-color: mix($brand-secondary, black, 85%);
|
56
|
+
}
|
57
|
+
.btn {
|
58
|
+
border-color: $brand-secondary;
|
59
|
+
background-color: $inverse;
|
60
|
+
color: $brand-secondary;
|
61
|
+
}
|
62
|
+
.btn-default {
|
63
|
+
@include button-variant($btn-default-color, $brand-secondary, $btn-primary-hover-bg, $btn-primary-active-bg);
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
// Button input groups
|
69
|
+
// -------------------------
|
70
|
+
.input-group-btn {
|
71
|
+
.btn {
|
72
|
+
background-color: $inverse;
|
73
|
+
border: 2px solid $gray-light;
|
74
|
+
color: $gray-light;
|
75
|
+
line-height: 18px;
|
76
|
+
}
|
77
|
+
.btn-default {
|
78
|
+
@include button-variant($btn-default-color, $gray-light, $btn-hover-bg, $btn-active-bg);
|
79
|
+
}
|
80
|
+
.input-group-hg & .btn {
|
81
|
+
line-height: 31px;
|
82
|
+
}
|
83
|
+
.input-group-lg & .btn {
|
84
|
+
line-height: 21px;
|
85
|
+
}
|
86
|
+
.input-group-sm & .btn {
|
87
|
+
line-height: 19px;
|
88
|
+
}
|
89
|
+
&:first-child > .btn {
|
90
|
+
border-right-width: 0;
|
91
|
+
margin-right: -2px;
|
92
|
+
}
|
93
|
+
&:last-child > .btn {
|
94
|
+
border-left-width: 0;
|
95
|
+
margin-left: -2px;
|
96
|
+
}
|
97
|
+
& > .btn-default + .btn-default {
|
98
|
+
border-left: 2px solid $gray-light;
|
99
|
+
}
|
100
|
+
& > .btn:first-child + .btn {
|
101
|
+
.caret {
|
102
|
+
margin-left: 0;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
|
108
|
+
// Rounded input groups
|
109
|
+
// -------------------------
|
110
|
+
.input-group-rounded {
|
111
|
+
.input-group-btn + .form-control,
|
112
|
+
.input-group-btn:last-child .btn {
|
113
|
+
@include border-right-radius(20px);
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
}
|
118
|
+
.form-control:first-child,
|
119
|
+
.input-group-btn:first-child .btn {
|
120
|
+
@include border-left-radius(20px);
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
}
|
125
|
+
// Remove left padding for .form-control after button
|
126
|
+
.input-group-btn + .form-control {
|
127
|
+
padding-left: 0;
|
128
|
+
}
|
129
|
+
&.input-group-hg {
|
130
|
+
.input-group-btn + .form-control,
|
131
|
+
.input-group-btn:last-child .btn {
|
132
|
+
@include border-right-radius(27px);
|
133
|
+
}
|
134
|
+
|
135
|
+
.form-control:first-child,
|
136
|
+
.input-group-btn:first-child .btn {
|
137
|
+
@include border-left-radius(27px);
|
138
|
+
}
|
139
|
+
|
140
|
+
}
|
141
|
+
&.input-group-lg {
|
142
|
+
.input-group-btn + .form-control,
|
143
|
+
.input-group-btn:last-child .btn {
|
144
|
+
@include border-right-radius(25px);
|
145
|
+
}
|
146
|
+
|
147
|
+
.form-control:first-child,
|
148
|
+
.input-group-btn:first-child .btn {
|
149
|
+
@include border-left-radius(25px);
|
150
|
+
}
|
151
|
+
|
152
|
+
}
|
153
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
//
|
2
|
+
// Input Icons
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.form-group {
|
6
|
+
position: relative;
|
7
|
+
}
|
8
|
+
|
9
|
+
.form-control {
|
10
|
+
& + .input-icon {
|
11
|
+
position: absolute;
|
12
|
+
top: 2px;
|
13
|
+
right: 2px;
|
14
|
+
line-height: 37px;
|
15
|
+
vertical-align: middle;
|
16
|
+
font-size: $input-icon-font-size;
|
17
|
+
color: desaturate(lighten($brand-primary, 45%), 15%);
|
18
|
+
background-color: $inverse;
|
19
|
+
padding: 0 12px 0 0;
|
20
|
+
border-radius: $input-border-radius;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
// Icons sizing
|
25
|
+
// ---------------------------
|
26
|
+
|
27
|
+
// Huge
|
28
|
+
.input-hg + .input-icon {
|
29
|
+
line-height: 49px;
|
30
|
+
padding: 0 16px 0 0;
|
31
|
+
}
|
32
|
+
|
33
|
+
//Large
|
34
|
+
.input-lg + .input-icon {
|
35
|
+
line-height: 41px;
|
36
|
+
padding: 0 15px 0 0;
|
37
|
+
}
|
38
|
+
|
39
|
+
// Small
|
40
|
+
.input-sm + .input-icon {
|
41
|
+
font-size: $font-size-base;
|
42
|
+
line-height: 30px;
|
43
|
+
padding: 0 10px 0 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
// Icons states
|
48
|
+
// ---------------------------
|
49
|
+
|
50
|
+
.has-success {
|
51
|
+
.input-icon {
|
52
|
+
color: $brand-success;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
.has-warning {
|
56
|
+
.input-icon {
|
57
|
+
color: $brand-warning;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
.has-error {
|
61
|
+
.input-icon {
|
62
|
+
color: $brand-danger;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
.form-control[disabled] + .input-icon,
|
66
|
+
.form-control[readonly] + .input-icon,
|
67
|
+
fieldset[disabled] .form-control + .input-icon,
|
68
|
+
.form-control.disabled + .input-icon {
|
69
|
+
color: mix($gray, white, 40%);
|
70
|
+
background-color: transparent;
|
71
|
+
@include opacity(.7);
|
72
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
//
|
2
|
+
// Fonts
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
@font-face {
|
6
|
+
font-family: 'Lato';
|
7
|
+
src: #{url('$local-font-path$local-font-name-black.eot')};
|
8
|
+
src: #{url('$local-font-path$local-font-name-black.eot?#iefix') format('embedded-opentype')},
|
9
|
+
#{url('$local-font-path$local-font-name-black.woff') format('woff')},
|
10
|
+
#{url('$local-font-path$local-font-name-black.ttf') format('truetype')},
|
11
|
+
#{url('$local-font-path$local-font-name-black.svg#$local-font-svg-id-black') format('svg')};
|
12
|
+
font-weight: 900;
|
13
|
+
font-style: normal;
|
14
|
+
}
|
15
|
+
|
16
|
+
@font-face {
|
17
|
+
font-family: 'Lato';
|
18
|
+
src: #{url('$local-font-path$local-font-name-bold.eot')};
|
19
|
+
src: #{url('$local-font-path$local-font-name-bold.eot?#iefix') format('embedded-opentype')},
|
20
|
+
#{url('$local-font-path$local-font-name-bold.woff') format('woff')},
|
21
|
+
#{url('$local-font-path$local-font-name-bold.ttf') format('truetype')},
|
22
|
+
#{url('$local-font-path$local-font-name-bold.svg#$local-font-svg-id-bold') format('svg')};
|
23
|
+
font-weight: bold;
|
24
|
+
font-style: normal;
|
25
|
+
}
|
26
|
+
|
27
|
+
@font-face {
|
28
|
+
font-family: 'Lato';
|
29
|
+
src: #{url('$local-font-path$local-font-name-bold-italic.eot')};
|
30
|
+
src: #{url('$local-font-path$local-font-name-bold-italic.eot?#iefix') format('embedded-opentype')},
|
31
|
+
#{url('$local-font-path$local-font-name-bold-italic.woff') format('woff')},
|
32
|
+
#{url('$local-font-path$local-font-name-bold-italic.ttf') format('truetype')},
|
33
|
+
#{url('$local-font-path$local-font-name-bold-italic.svg#$local-font-svg-id-bold-italic') format('svg')};
|
34
|
+
font-weight: bold;
|
35
|
+
font-style: italic;
|
36
|
+
}
|
37
|
+
|
38
|
+
@font-face {
|
39
|
+
font-family: 'Lato';
|
40
|
+
src: #{url('$local-font-path$local-font-name-italic.eot')};
|
41
|
+
src: #{url('$local-font-path$local-font-name-italic.eot?#iefix') format('embedded-opentype')},
|
42
|
+
#{url('$local-font-path$local-font-name-italic.woff') format('woff')},
|
43
|
+
#{url('$local-font-path$local-font-name-italic.ttf') format('truetype')},
|
44
|
+
#{url('$local-font-path$local-font-name-italic.svg#$local-font-svg-id-italic') format('svg')};
|
45
|
+
font-weight: normal;
|
46
|
+
font-style: italic;
|
47
|
+
}
|
48
|
+
|
49
|
+
@font-face {
|
50
|
+
font-family: 'Lato';
|
51
|
+
src: #{url('$local-font-path$local-font-name-light.eot')};
|
52
|
+
src: #{url('$local-font-path$local-font-name-light.eot?#iefix') format('embedded-opentype')},
|
53
|
+
#{url('$local-font-path$local-font-name-light.woff') format('woff')},
|
54
|
+
#{url('$local-font-path$local-font-name-light.ttf') format('truetype')},
|
55
|
+
#{url('$local-font-path$local-font-name-light.svg#$local-font-svg-id-light') format('svg')};
|
56
|
+
font-weight: 300;
|
57
|
+
font-style: normal;
|
58
|
+
}
|
59
|
+
|
60
|
+
@font-face {
|
61
|
+
font-family: 'Lato';
|
62
|
+
src: #{url('$local-font-path$local-font-name.eot')};
|
63
|
+
src: #{url('$local-font-path$local-font-name.eot?#iefix') format('embedded-opentype')},
|
64
|
+
#{url('$local-font-path$local-font-name.woff') format('woff')},
|
65
|
+
#{url('$local-font-path$local-font-name.ttf') format('truetype')},
|
66
|
+
#{url('$local-font-path$local-font-name.svg#$local-font-svg-id') format('svg')};
|
67
|
+
font-weight: normal;
|
68
|
+
font-style: normal;
|
69
|
+
}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
//
|
2
|
+
// Login screen
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Module color variable
|
6
|
+
$form-color: mix($brand-primary, $inverse, 9%);
|
7
|
+
|
8
|
+
.login {
|
9
|
+
background: url(if($flat-ui-sass-asset-helper, flat-ui-image-path("flat-ui/login/imac.png"), "flat-ui/login/imac.png")) 0 0 no-repeat;
|
10
|
+
background-size: 940px 778px;
|
11
|
+
color: $inverse;
|
12
|
+
margin-bottom: 77px;
|
13
|
+
padding: 38px 38px 267px;
|
14
|
+
position: relative;
|
15
|
+
}
|
16
|
+
|
17
|
+
.login-screen {
|
18
|
+
background-color: $brand-secondary;
|
19
|
+
min-height: 473px;
|
20
|
+
padding: 123px 199px 33px 306px;
|
21
|
+
}
|
22
|
+
|
23
|
+
.login-icon {
|
24
|
+
left: 200px;
|
25
|
+
position: absolute;
|
26
|
+
top: 160px;
|
27
|
+
width: 96px;
|
28
|
+
|
29
|
+
> img {
|
30
|
+
display: block;
|
31
|
+
margin-bottom: 6px;
|
32
|
+
width: 100%;
|
33
|
+
}
|
34
|
+
> h4 {
|
35
|
+
font-size: 17px;
|
36
|
+
font-weight: 300;
|
37
|
+
line-height: 34px;
|
38
|
+
@include opacity(.95);
|
39
|
+
|
40
|
+
small {
|
41
|
+
color: inherit;
|
42
|
+
display: block;
|
43
|
+
font-size: inherit;
|
44
|
+
font-weight: 700;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
// LOGIN FORM
|
50
|
+
// -----------
|
51
|
+
.login-form {
|
52
|
+
background-color: $form-color;
|
53
|
+
padding: 24px 23px 20px;
|
54
|
+
position: relative;
|
55
|
+
border-radius: $border-radius-large;
|
56
|
+
|
57
|
+
// Ear
|
58
|
+
&:before {
|
59
|
+
content: '';
|
60
|
+
border-style: solid;
|
61
|
+
border-width: 12px 12px 12px 0;
|
62
|
+
border-color: transparent $form-color transparent transparent;
|
63
|
+
height: 0;
|
64
|
+
position: absolute;
|
65
|
+
left: -12px;
|
66
|
+
top: 35px;
|
67
|
+
width: 0;
|
68
|
+
-webkit-transform: rotate(360deg); // Make corners smooth
|
69
|
+
}
|
70
|
+
.control-group {
|
71
|
+
margin-bottom: 6px;
|
72
|
+
position: relative;
|
73
|
+
}
|
74
|
+
.login-field {
|
75
|
+
border-color: transparent;
|
76
|
+
font-size: 17px;
|
77
|
+
text-indent: 3px;
|
78
|
+
|
79
|
+
&:focus {
|
80
|
+
border-color: $brand-secondary;
|
81
|
+
|
82
|
+
& + .login-field-icon {
|
83
|
+
color: $brand-secondary;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
.login-field-icon {
|
88
|
+
color: mix($gray, $inverse, 60%);
|
89
|
+
font-size: 16px;
|
90
|
+
position: absolute;
|
91
|
+
right: 15px;
|
92
|
+
top: 3px;
|
93
|
+
@include transition(.25s);
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
.login-link {
|
98
|
+
color: mix($gray, $inverse, 60%);
|
99
|
+
display: block;
|
100
|
+
font-size: 13px;
|
101
|
+
margin-top: 15px;
|
102
|
+
text-align: center;
|
103
|
+
}
|
104
|
+
|
105
|
+
// Retina support
|
106
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 2) {
|
107
|
+
.login {
|
108
|
+
background-image: url(if($flat-ui-sass-asset-helper, flat-ui-image-path("flat-ui/login/imac-2x.png"), "flat-ui/login/imac-2x.png"));
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|