flatui3-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +102 -0
- data/Rakefile +1 -0
- data/app/assets/fonts/Flat-UI-Icons.dev.svg +140 -0
- data/app/assets/fonts/Flat-UI-Icons.eot +0 -0
- data/app/assets/fonts/Flat-UI-Icons.svg +140 -0
- data/app/assets/fonts/Flat-UI-Icons.ttf +0 -0
- data/app/assets/fonts/Flat-UI-Icons.woff +0 -0
- data/app/assets/fonts/icomoon-session.json +1 -0
- data/app/assets/fonts/lato/lato-black-webfont.eot +0 -0
- data/app/assets/fonts/lato/lato-black-webfont.svg +4691 -0
- data/app/assets/fonts/lato/lato-black-webfont.ttf +0 -0
- data/app/assets/fonts/lato/lato-black-webfont.woff +0 -0
- data/app/assets/fonts/lato/lato-bold-webfont.eot +0 -0
- data/app/assets/fonts/lato/lato-bold-webfont.svg +5085 -0
- data/app/assets/fonts/lato/lato-bold-webfont.ttf +0 -0
- data/app/assets/fonts/lato/lato-bold-webfont.woff +0 -0
- data/app/assets/fonts/lato/lato-bolditalic-webfont.eot +0 -0
- data/app/assets/fonts/lato/lato-bolditalic-webfont.svg +4514 -0
- data/app/assets/fonts/lato/lato-bolditalic-webfont.ttf +0 -0
- data/app/assets/fonts/lato/lato-bolditalic-webfont.woff +0 -0
- data/app/assets/fonts/lato/lato-italic-webfont.eot +0 -0
- data/app/assets/fonts/lato/lato-italic-webfont.svg +4514 -0
- data/app/assets/fonts/lato/lato-italic-webfont.ttf +0 -0
- data/app/assets/fonts/lato/lato-italic-webfont.woff +0 -0
- data/app/assets/fonts/lato/lato-light-webfont.eot +0 -0
- data/app/assets/fonts/lato/lato-light-webfont.svg +4691 -0
- data/app/assets/fonts/lato/lato-light-webfont.ttf +0 -0
- data/app/assets/fonts/lato/lato-light-webfont.woff +0 -0
- data/app/assets/fonts/lato/lato-regular-webfont.eot +0 -0
- data/app/assets/fonts/lato/lato-regular-webfont.svg +4691 -0
- data/app/assets/fonts/lato/lato-regular-webfont.ttf +0 -0
- data/app/assets/fonts/lato/lato-regular-webfont.woff +0 -0
- data/app/assets/images/demo/browser-2x.png +0 -0
- data/app/assets/images/demo/browser-author.jpg +0 -0
- data/app/assets/images/demo/browser-pic-1.jpg +0 -0
- data/app/assets/images/demo/browser-pic-2.jpg +0 -0
- data/app/assets/images/demo/browser-pic-3.jpg +0 -0
- data/app/assets/images/demo/browser-pic-4.jpg +0 -0
- data/app/assets/images/demo/browser-pic-5.jpg +0 -0
- data/app/assets/images/demo/browser-pic-6.jpg +0 -0
- data/app/assets/images/demo/browser.png +0 -0
- data/app/assets/images/demo/html-icon.png +0 -0
- data/app/assets/images/demo/logo-mask-2x.png +0 -0
- data/app/assets/images/demo/logo-mask.png +0 -0
- data/app/assets/images/demo/video.jpg +0 -0
- data/app/assets/images/exaple-image.jpg +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/footer/logo.png +0 -0
- data/app/assets/images/icons/png/Book.png +0 -0
- data/app/assets/images/icons/png/Calendar.png +0 -0
- data/app/assets/images/icons/png/Chat.png +0 -0
- data/app/assets/images/icons/png/Clipboard.png +0 -0
- data/app/assets/images/icons/png/Compas.png +0 -0
- data/app/assets/images/icons/png/Gift-Box.png +0 -0
- data/app/assets/images/icons/png/Infinity-Loop.png +0 -0
- data/app/assets/images/icons/png/Mail.png +0 -0
- data/app/assets/images/icons/png/Map.png +0 -0
- data/app/assets/images/icons/png/Pensils.png +0 -0
- data/app/assets/images/icons/png/Pocket.png +0 -0
- data/app/assets/images/icons/png/Retina-Ready.png +0 -0
- data/app/assets/images/icons/png/Toilet-Paper.png +0 -0
- data/app/assets/images/icons/png/Watches.png +0 -0
- data/app/assets/images/icons/svg/book.svg +1 -0
- data/app/assets/images/icons/svg/calendar.svg +1 -0
- data/app/assets/images/icons/svg/chat.svg +1 -0
- data/app/assets/images/icons/svg/clipboard.svg +1 -0
- data/app/assets/images/icons/svg/clocks.svg +9 -0
- data/app/assets/images/icons/svg/compas.svg +1 -0
- data/app/assets/images/icons/svg/gift-box.svg +1 -0
- data/app/assets/images/icons/svg/loop.svg +5 -0
- data/app/assets/images/icons/svg/mail.svg +1 -0
- data/app/assets/images/icons/svg/map.svg +1 -0
- data/app/assets/images/icons/svg/paper-bag.svg +1 -0
- data/app/assets/images/icons/svg/pencils.svg +1 -0
- data/app/assets/images/icons/svg/retina.svg +1 -0
- data/app/assets/images/icons/svg/toilet-paper.svg +1 -0
- data/app/assets/images/login/icon.png +0 -0
- data/app/assets/images/login/imac-2x.png +0 -0
- data/app/assets/images/login/imac.png +0 -0
- data/app/assets/images/switch/mask-square.png +0 -0
- data/app/assets/images/switch/mask.png +0 -0
- data/app/assets/images/tile/ribbon-2x.png +0 -0
- data/app/assets/images/tile/ribbon.png +0 -0
- data/app/assets/images/todo/done-2x.png +0 -0
- data/app/assets/images/todo/done.png +0 -0
- data/app/assets/images/todo/search-2x.png +0 -0
- data/app/assets/images/todo/search.png +0 -0
- data/app/assets/images/todo/todo-2x.png +0 -0
- data/app/assets/images/todo/todo.png +0 -0
- data/app/assets/images/video/fullscreen-2x.png +0 -0
- data/app/assets/images/video/fullscreen.png +0 -0
- data/app/assets/images/video/pause-2x.png +0 -0
- data/app/assets/images/video/pause.png +0 -0
- data/app/assets/images/video/play-2x.png +0 -0
- data/app/assets/images/video/play.png +0 -0
- data/app/assets/images/video/poster.jpg +0 -0
- data/app/assets/images/video/volume-full-2x.png +0 -0
- data/app/assets/images/video/volume-full.png +0 -0
- data/app/assets/images/video/volume-off-2x.png +0 -0
- data/app/assets/images/video/volume-off.png +0 -0
- data/app/assets/javascripts/bootstrap-select.js +412 -0
- data/app/assets/javascripts/bootstrap-switch.js +251 -0
- data/app/assets/javascripts/bootstrap-typeahead.js +335 -0
- data/app/assets/javascripts/flatui-checkbox.js +112 -0
- data/app/assets/javascripts/flatui-radio.js +141 -0
- data/app/assets/javascripts/flatui.js +9 -0
- data/app/assets/javascripts/html5shiv.js +8 -0
- data/app/assets/javascripts/icon-font-ie7.js +57 -0
- data/app/assets/javascripts/jquery-ui-1.10.3.min.js +6 -0
- data/app/assets/javascripts/jquery.placeholder.js +157 -0
- data/app/assets/javascripts/jquery.stacktable.js +54 -0
- data/app/assets/javascripts/jquery.tagsinput.js +355 -0
- data/app/assets/javascripts/jquery.ui.touch-punch.min.js +11 -0
- data/app/assets/stylesheets/flatui.less +45 -0
- data/flatui3-rails.gemspec +25 -0
- data/lib/flatui3-rails.rb +1 -0
- data/lib/flatui3/rails.rb +7 -0
- data/lib/flatui3/rails/engine.rb +13 -0
- data/lib/flatui3/rails/version.rb +5 -0
- data/lib/generators/flatui3/override/override_generator.rb +15 -0
- data/lib/generators/flatui3/override/templates/flatui_and_overrides.less +49 -0
- data/vendor/toolkit/flat-ui/flat-ui.less +45 -0
- data/vendor/toolkit/flat-ui/fonts.less +65 -0
- data/vendor/toolkit/flat-ui/icon-font.less +128 -0
- data/vendor/toolkit/flat-ui/mixins.less +365 -0
- data/vendor/toolkit/flat-ui/modules/buttons.less +231 -0
- data/vendor/toolkit/flat-ui/modules/caret.less +31 -0
- data/vendor/toolkit/flat-ui/modules/checkbox-and-radio.less +104 -0
- data/vendor/toolkit/flat-ui/modules/dropdown.less +225 -0
- data/vendor/toolkit/flat-ui/modules/footer.less +75 -0
- data/vendor/toolkit/flat-ui/modules/forms.less +127 -0
- data/vendor/toolkit/flat-ui/modules/input-icons.less +71 -0
- data/vendor/toolkit/flat-ui/modules/login.less +111 -0
- data/vendor/toolkit/flat-ui/modules/navbar.less +487 -0
- data/vendor/toolkit/flat-ui/modules/pager.less +49 -0
- data/vendor/toolkit/flat-ui/modules/pagination.less +153 -0
- data/vendor/toolkit/flat-ui/modules/palette.less +64 -0
- data/vendor/toolkit/flat-ui/modules/progress-bars.less +36 -0
- data/vendor/toolkit/flat-ui/modules/select.less +143 -0
- data/vendor/toolkit/flat-ui/modules/share.less +41 -0
- data/vendor/toolkit/flat-ui/modules/switch.less +150 -0
- data/vendor/toolkit/flat-ui/modules/tagsinput.less +117 -0
- data/vendor/toolkit/flat-ui/modules/tile.less +54 -0
- data/vendor/toolkit/flat-ui/modules/todo.less +107 -0
- data/vendor/toolkit/flat-ui/modules/tooltip.less +55 -0
- data/vendor/toolkit/flat-ui/modules/type.less +126 -0
- data/vendor/toolkit/flat-ui/modules/ui-slider.less +62 -0
- data/vendor/toolkit/flat-ui/modules/video.less +458 -0
- data/vendor/toolkit/flat-ui/scaffolding.less +46 -0
- data/vendor/toolkit/flat-ui/spaces.less +172 -0
- data/vendor/toolkit/flat-ui/variables.less +167 -0
- metadata +248 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
//
|
2
|
+
// Sharing box
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Module color variable
|
6
|
+
@share-color: mix(@base, @inverse, 8%);
|
7
|
+
|
8
|
+
.share {
|
9
|
+
background-color: @share-color;
|
10
|
+
position: relative;
|
11
|
+
border-radius: @border-radius-large;
|
12
|
+
.dropdown-arrow(@share-color, -9px, 23px);
|
13
|
+
|
14
|
+
ul {
|
15
|
+
list-style-type: none;
|
16
|
+
margin: 0;
|
17
|
+
padding: 15px;
|
18
|
+
}
|
19
|
+
li {
|
20
|
+
padding-top: 11px;
|
21
|
+
.clearfix();
|
22
|
+
|
23
|
+
&:first-child {
|
24
|
+
padding-top: 0;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
.toggle {
|
28
|
+
float: right;
|
29
|
+
margin: 0;
|
30
|
+
}
|
31
|
+
.btn {
|
32
|
+
border-radius: 0 0 @border-radius-large @border-radius-large;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.share-label {
|
37
|
+
float: left;
|
38
|
+
font-size: 15px;
|
39
|
+
padding-top: 5px;
|
40
|
+
width: 50%;
|
41
|
+
}
|
@@ -0,0 +1,150 @@
|
|
1
|
+
/* ============================================================
|
2
|
+
* bootstrapSwitch v1.3 by Larentis Mattia @spiritualGuru
|
3
|
+
* http://www.larentis.eu/switch/
|
4
|
+
* ============================================================
|
5
|
+
* Licensed under the Apache License, Version 2.0
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
* ============================================================ */
|
8
|
+
|
9
|
+
.has-switch {
|
10
|
+
border-radius: @switch-border-radius;
|
11
|
+
display: inline-block;
|
12
|
+
cursor: pointer;
|
13
|
+
line-height: @line-height-base;
|
14
|
+
overflow: hidden;
|
15
|
+
position: relative;
|
16
|
+
text-align: left;
|
17
|
+
width: @switch-width;
|
18
|
+
.mask(~"asset-url('switch/mask.png') 0 0 no-repeat");
|
19
|
+
.user-select(none);
|
20
|
+
|
21
|
+
&.deactivate {
|
22
|
+
.opacity(.5);
|
23
|
+
cursor: default !important;
|
24
|
+
|
25
|
+
label,
|
26
|
+
span {
|
27
|
+
cursor: default !important;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
> div {
|
32
|
+
width: 130px;
|
33
|
+
position: relative;
|
34
|
+
top: 0;
|
35
|
+
|
36
|
+
&.switch-animate {
|
37
|
+
.transition(left .25s ease-out);
|
38
|
+
}
|
39
|
+
|
40
|
+
&.switch-off {
|
41
|
+
left: -50px;
|
42
|
+
|
43
|
+
label {
|
44
|
+
background-color: mix(@base, white, 63%);
|
45
|
+
border-color: @lightgray;
|
46
|
+
.box-shadow(-1px 0 0 fade(@inverse, 50%));
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
&.switch-on {
|
51
|
+
left: 0;
|
52
|
+
|
53
|
+
label {
|
54
|
+
background-color: @firm;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
input[type=checkbox] {
|
60
|
+
display: none;
|
61
|
+
}
|
62
|
+
|
63
|
+
span {
|
64
|
+
cursor: pointer;
|
65
|
+
font-size: ceil(@font-size-base * 1.071);
|
66
|
+
font-weight: bold;
|
67
|
+
float: left;
|
68
|
+
height: 29px;
|
69
|
+
line-height: 19px;
|
70
|
+
margin: 0;
|
71
|
+
padding-bottom: 6px;
|
72
|
+
padding-top: 5px;
|
73
|
+
position: relative;
|
74
|
+
text-align: center;
|
75
|
+
width: 50%;
|
76
|
+
z-index: 1;
|
77
|
+
.transition(.25s ease-out);
|
78
|
+
|
79
|
+
&.switch-left {
|
80
|
+
border-radius: @switch-border-radius 0 0 @switch-border-radius;
|
81
|
+
background-color: @base;
|
82
|
+
color: @firm;
|
83
|
+
border-left: 1px solid transparent;
|
84
|
+
}
|
85
|
+
|
86
|
+
&.switch-right {
|
87
|
+
border-radius: 0 @switch-border-radius @switch-border-radius 0;
|
88
|
+
background-color: @lightgray;
|
89
|
+
color: @inverse;
|
90
|
+
text-indent: 7px;
|
91
|
+
|
92
|
+
[class*="fui-"] {
|
93
|
+
text-indent: 0;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
label {
|
99
|
+
border: 4px solid @base;
|
100
|
+
border-radius: 50%;
|
101
|
+
float: left;
|
102
|
+
height: 29px;
|
103
|
+
margin: 0 -15px 0 -14px;
|
104
|
+
padding: 0;
|
105
|
+
position: relative;
|
106
|
+
vertical-align: middle;
|
107
|
+
width: 29px;
|
108
|
+
z-index: 100;
|
109
|
+
.transition(.25s ease-out);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
// Square Switch
|
114
|
+
// -------------------------------
|
115
|
+
.switch-square {
|
116
|
+
border-radius: @border-radius-large;
|
117
|
+
.mask(~"asset-url('switch/mask.png') 0 0 no-repeat");
|
118
|
+
|
119
|
+
> div {
|
120
|
+
&.switch-off {
|
121
|
+
label {
|
122
|
+
border-color: mix(@base, white, 63%);
|
123
|
+
border-radius: @border-radius-large 0 0 @border-radius-large;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
span {
|
129
|
+
&.switch-left {
|
130
|
+
border-radius: @border-radius-large 0 0 @border-radius-large;
|
131
|
+
|
132
|
+
[class*="fui-"] {
|
133
|
+
text-indent: -10px;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
&.switch-right {
|
138
|
+
border-radius: 0 @border-radius-large @border-radius-large 0;
|
139
|
+
|
140
|
+
[class*="fui-"] {
|
141
|
+
text-indent: 5px;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
label {
|
147
|
+
border-radius: 0 @border-radius-large @border-radius-large 0;
|
148
|
+
border-color: @firm;
|
149
|
+
}
|
150
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
//
|
2
|
+
// Tags Input
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.tagsinput {
|
6
|
+
background: white;
|
7
|
+
border: 2px solid @firm;
|
8
|
+
border-radius: 6px;
|
9
|
+
height: 100px;
|
10
|
+
margin-bottom: 18px;
|
11
|
+
padding: 6px 1px 1px 6px;
|
12
|
+
overflow-y: auto;
|
13
|
+
text-align: left;
|
14
|
+
|
15
|
+
.tag {
|
16
|
+
border-radius: 4px;
|
17
|
+
background-color: @firm;
|
18
|
+
color: @inverse;
|
19
|
+
cursor: pointer;
|
20
|
+
margin-right: 5px;
|
21
|
+
margin-bottom: 5px;
|
22
|
+
overflow: hidden;
|
23
|
+
line-height: 15px;
|
24
|
+
padding: 6px 13px 8px 19px;
|
25
|
+
position: relative;
|
26
|
+
vertical-align: middle;
|
27
|
+
.inline-block();
|
28
|
+
.transition(.14s linear);
|
29
|
+
|
30
|
+
&:hover {
|
31
|
+
background-color: mix(@firm, black, 85%);
|
32
|
+
color: @inverse;
|
33
|
+
padding-left: 12px;
|
34
|
+
padding-right: 20px;
|
35
|
+
|
36
|
+
.tagsinput-remove-link {
|
37
|
+
color: @inverse;
|
38
|
+
opacity: 1;
|
39
|
+
// Opacity fallback for IE
|
40
|
+
display: block\9;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
input {
|
46
|
+
background: transparent;
|
47
|
+
border: none;
|
48
|
+
color: @base;
|
49
|
+
font-family: @font-family-base;
|
50
|
+
font-size: @font-size-base;
|
51
|
+
margin: 0px;
|
52
|
+
padding: 0 0 0 5px;
|
53
|
+
outline: 0;
|
54
|
+
margin-right: 5px;
|
55
|
+
margin-bottom: 5px;
|
56
|
+
width: 12px;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
.tagsinput-remove-link {
|
61
|
+
bottom: 0;
|
62
|
+
color: @inverse;
|
63
|
+
cursor: pointer;
|
64
|
+
font-size: 12px;
|
65
|
+
opacity: 0;
|
66
|
+
padding: 7px 7px 5px 0;
|
67
|
+
position: absolute;
|
68
|
+
right: 0;
|
69
|
+
text-align: right;
|
70
|
+
text-decoration: none;
|
71
|
+
top: 0;
|
72
|
+
width: 100%;
|
73
|
+
z-index: 2;
|
74
|
+
// Opacity fallback for IE
|
75
|
+
display: none\9;
|
76
|
+
|
77
|
+
&:before {
|
78
|
+
color: @inverse;
|
79
|
+
content: "\e00b";
|
80
|
+
font-family: "Flat-UI-Icons";
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.tagsinput-add-container {
|
85
|
+
vertical-align: middle;
|
86
|
+
.inline-block();
|
87
|
+
}
|
88
|
+
|
89
|
+
.tagsinput-add {
|
90
|
+
background-color: mix(@inverse, @base, 80%);
|
91
|
+
border-radius: 3px;
|
92
|
+
color: @inverse;
|
93
|
+
cursor: pointer;
|
94
|
+
margin-bottom: 5px;
|
95
|
+
padding: 6px 9px;
|
96
|
+
.inline-block();
|
97
|
+
.transition(0.25s);
|
98
|
+
|
99
|
+
&:hover {
|
100
|
+
background-color: @firm;
|
101
|
+
}
|
102
|
+
&:before {
|
103
|
+
content: "\e009";
|
104
|
+
font-family: "Flat-UI-Icons";
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
.tags_clear {
|
109
|
+
clear: both;
|
110
|
+
width: 100%;
|
111
|
+
height: 0px;
|
112
|
+
}
|
113
|
+
.not_valid {
|
114
|
+
background: #fbd8db !important;
|
115
|
+
color: #90111a !important;
|
116
|
+
margin-left: 5px !important;
|
117
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
//
|
2
|
+
// Tile
|
3
|
+
// -------------------------------------------------
|
4
|
+
|
5
|
+
.tile {
|
6
|
+
background-color: mix(@base, @inverse, 8%);
|
7
|
+
border-radius: @border-radius-large;
|
8
|
+
padding: 14px;
|
9
|
+
position: relative;
|
10
|
+
text-align: center;
|
11
|
+
|
12
|
+
&.tile-hot {
|
13
|
+
&:before {
|
14
|
+
background: asset-url("tile/ribbon.png") 0 0 no-repeat;
|
15
|
+
background-size: 82px 82px;
|
16
|
+
content: '';
|
17
|
+
height: 82px;
|
18
|
+
position: absolute;
|
19
|
+
right: -4px;
|
20
|
+
top: -4px;
|
21
|
+
width: 82px;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
p {
|
25
|
+
font-size: 15px;
|
26
|
+
margin-bottom: 33px;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
.tile-image {
|
30
|
+
height: 100px;
|
31
|
+
margin: 31px 0 27px;
|
32
|
+
vertical-align: bottom;
|
33
|
+
|
34
|
+
&.big-illustration {
|
35
|
+
height: 111px;
|
36
|
+
margin-top: 20px;
|
37
|
+
width: 112px;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
.tile-title {
|
41
|
+
font-size: 20px;
|
42
|
+
margin: 0;
|
43
|
+
}
|
44
|
+
|
45
|
+
// Retina Support
|
46
|
+
@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) {
|
47
|
+
.tile {
|
48
|
+
&.tile-hot {
|
49
|
+
&:before {
|
50
|
+
background-image: asset-url("tile/ribbon-2x.png");
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
@@ -0,0 +1,107 @@
|
|
1
|
+
//
|
2
|
+
// Todo list
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.todo {
|
6
|
+
color: mix(@base, @inverse, 66%);
|
7
|
+
margin-bottom: 20px;
|
8
|
+
border-radius: @border-radius-large;
|
9
|
+
|
10
|
+
ul {
|
11
|
+
background-color: mix(@base, black, 85%);
|
12
|
+
margin: 0;
|
13
|
+
padding: 0;
|
14
|
+
list-style-type: none;
|
15
|
+
border-radius: 0 0 @border-radius-large @border-radius-large;
|
16
|
+
}
|
17
|
+
li {
|
18
|
+
background: @base asset-url("todo/todo.png") 92% center no-repeat;
|
19
|
+
background-size: 20px 20px;
|
20
|
+
cursor: pointer;
|
21
|
+
margin-top: 2px;
|
22
|
+
padding: 18px 42px 19px 25px;
|
23
|
+
position: relative;
|
24
|
+
.transition(.25s);
|
25
|
+
|
26
|
+
&:first-child {
|
27
|
+
margin-top: 0;
|
28
|
+
}
|
29
|
+
&:last-child {
|
30
|
+
border-radius: 0 0 @border-radius-large @border-radius-large;
|
31
|
+
padding-bottom: 20px;
|
32
|
+
}
|
33
|
+
&.todo-done {
|
34
|
+
background: transparent asset-url("todo/done.png") 92% center no-repeat;
|
35
|
+
background-size: 20px 20px;
|
36
|
+
color: @firm;
|
37
|
+
|
38
|
+
.todo-name {
|
39
|
+
color: @firm;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.todo-search {
|
46
|
+
position: relative;
|
47
|
+
background: @firm;
|
48
|
+
background-size: 16px 16px;
|
49
|
+
border-radius: @border-radius-large @border-radius-large 0 0;
|
50
|
+
color: @base;
|
51
|
+
padding: 19px 25px 20px;
|
52
|
+
|
53
|
+
&:before {
|
54
|
+
position: absolute;
|
55
|
+
font-family: 'Flat-UI-Icons';
|
56
|
+
content: "\e01c";
|
57
|
+
font-size: 16px;
|
58
|
+
display: inline-block;
|
59
|
+
top: 50%;
|
60
|
+
left: 92%;
|
61
|
+
margin: -0.5em 0 0 -1em;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
input.todo-search-field {
|
66
|
+
background: none;
|
67
|
+
border: none;
|
68
|
+
color: @base;
|
69
|
+
font-size: 19px;
|
70
|
+
font-weight: 700;
|
71
|
+
margin: 0;
|
72
|
+
line-height: 23px;
|
73
|
+
padding: 5px 0;
|
74
|
+
text-indent: 0;
|
75
|
+
.box-shadow(none);
|
76
|
+
.placeholder-color(@base);
|
77
|
+
}
|
78
|
+
|
79
|
+
.todo-icon {
|
80
|
+
float: left;
|
81
|
+
font-size: 24px;
|
82
|
+
padding: 11px 22px 0 0;
|
83
|
+
}
|
84
|
+
|
85
|
+
.todo-content {
|
86
|
+
padding-top: 1px;
|
87
|
+
overflow: hidden;
|
88
|
+
}
|
89
|
+
|
90
|
+
.todo-name {
|
91
|
+
color: @inverse;
|
92
|
+
font-size: 17px;
|
93
|
+
margin: 1px 0 3px;
|
94
|
+
}
|
95
|
+
|
96
|
+
// Retina Support
|
97
|
+
@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) {
|
98
|
+
.todo {
|
99
|
+
li {
|
100
|
+
background-image: asset-url("todo/todo-2x.png");
|
101
|
+
|
102
|
+
&.todo-done {
|
103
|
+
background-image: asset-url("todo/done-2x.png");
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|