card-mod-bootstrap 0.13.2 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/script/bootstrap_modal_decko.js +1 -1
- data/assets/script/manifest.yml +0 -5
- data/assets/style/bootstrap_colorpicker.scss +272 -0
- data/{lib/stylesheets → assets/style}/font_awesome.css +0 -0
- data/assets/style/manifest.yml +14 -0
- data/{lib/stylesheets → assets/style}/material_icons.css +0 -0
- data/{lib/stylesheets/style_select2_bootstrap.scss → assets/style/select2_bootstrap.scss} +0 -0
- data/{lib/stylesheets → assets/style}/style_bootstrap_cards.scss +5 -3
- data/locales/de.yml +3 -0
- data/set/abstract/bootswatch_theme.rb +45 -70
- data/set/all/bootstrap/helper.rb +1 -1
- data/set/all/bootstrap/icon.rb +1 -1
- data/set/type/customized_bootswatch_skin.rb +7 -10
- metadata +20 -165
- data/assets/script/script_pointer_config.js.coffee +0 -80
- data/assets/script/script_pointer_list_editor.js.coffee +0 -67
- data/file/cerulean_skin_image/image-icon.png +0 -0
- data/file/cerulean_skin_image/image-large.png +0 -0
- data/file/cerulean_skin_image/image-medium.png +0 -0
- data/file/cerulean_skin_image/image-original.png +0 -0
- data/file/cerulean_skin_image/image-small.png +0 -0
- data/file/cosmo_skin_image/image-icon.png +0 -0
- data/file/cosmo_skin_image/image-large.png +0 -0
- data/file/cosmo_skin_image/image-medium.png +0 -0
- data/file/cosmo_skin_image/image-original.png +0 -0
- data/file/cosmo_skin_image/image-small.png +0 -0
- data/file/cyborg_skin_image/image-icon.png +0 -0
- data/file/cyborg_skin_image/image-large.png +0 -0
- data/file/cyborg_skin_image/image-medium.png +0 -0
- data/file/cyborg_skin_image/image-original.png +0 -0
- data/file/cyborg_skin_image/image-small.png +0 -0
- data/file/darkly_skin_image/image-icon.png +0 -0
- data/file/darkly_skin_image/image-large.png +0 -0
- data/file/darkly_skin_image/image-medium.png +0 -0
- data/file/darkly_skin_image/image-original.png +0 -0
- data/file/darkly_skin_image/image-small.png +0 -0
- data/file/flatly_skin_image/image-icon.png +0 -0
- data/file/flatly_skin_image/image-large.png +0 -0
- data/file/flatly_skin_image/image-medium.png +0 -0
- data/file/flatly_skin_image/image-original.png +0 -0
- data/file/flatly_skin_image/image-small.png +0 -0
- data/file/journal_skin_image/image-icon.png +0 -0
- data/file/journal_skin_image/image-large.png +0 -0
- data/file/journal_skin_image/image-medium.png +0 -0
- data/file/journal_skin_image/image-original.png +0 -0
- data/file/journal_skin_image/image-small.png +0 -0
- data/file/litera_skin_image/image-icon.png +0 -0
- data/file/litera_skin_image/image-large.png +0 -0
- data/file/litera_skin_image/image-medium.png +0 -0
- data/file/litera_skin_image/image-original.png +0 -0
- data/file/litera_skin_image/image-small.png +0 -0
- data/file/lumen_skin_image/image-icon.png +0 -0
- data/file/lumen_skin_image/image-large.png +0 -0
- data/file/lumen_skin_image/image-medium.png +0 -0
- data/file/lumen_skin_image/image-original.png +0 -0
- data/file/lumen_skin_image/image-small.png +0 -0
- data/file/lux_skin_image/image-icon.png +0 -0
- data/file/lux_skin_image/image-large.png +0 -0
- data/file/lux_skin_image/image-medium.png +0 -0
- data/file/lux_skin_image/image-original.png +0 -0
- data/file/lux_skin_image/image-small.png +0 -0
- data/file/materia_skin_image/image-icon.png +0 -0
- data/file/materia_skin_image/image-large.png +0 -0
- data/file/materia_skin_image/image-medium.png +0 -0
- data/file/materia_skin_image/image-original.png +0 -0
- data/file/materia_skin_image/image-small.png +0 -0
- data/file/minty_skin_image/image-icon.png +0 -0
- data/file/minty_skin_image/image-large.png +0 -0
- data/file/minty_skin_image/image-medium.png +0 -0
- data/file/minty_skin_image/image-original.png +0 -0
- data/file/minty_skin_image/image-small.png +0 -0
- data/file/mod_bootstrap_script_bootstrap_machine_output/file.js +0 -25
- data/file/mod_bootstrap_script_pointer_machine_output/file.js +0 -223
- data/file/paper_skin_image/image-icon.png +0 -0
- data/file/paper_skin_image/image-large.png +0 -0
- data/file/paper_skin_image/image-medium.png +0 -0
- data/file/paper_skin_image/image-original.png +0 -0
- data/file/paper_skin_image/image-small.png +0 -0
- data/file/pulse_skin_image/image-icon.png +0 -0
- data/file/pulse_skin_image/image-large.png +0 -0
- data/file/pulse_skin_image/image-medium.png +0 -0
- data/file/pulse_skin_image/image-original.png +0 -0
- data/file/pulse_skin_image/image-small.png +0 -0
- data/file/readable_skin_image/image-icon.png +0 -0
- data/file/readable_skin_image/image-large.png +0 -0
- data/file/readable_skin_image/image-medium.png +0 -0
- data/file/readable_skin_image/image-original.png +0 -0
- data/file/readable_skin_image/image-small.png +0 -0
- data/file/sandstone_skin_image/image-icon.png +0 -0
- data/file/sandstone_skin_image/image-large.png +0 -0
- data/file/sandstone_skin_image/image-medium.png +0 -0
- data/file/sandstone_skin_image/image-original.png +0 -0
- data/file/sandstone_skin_image/image-small.png +0 -0
- data/file/simplex_skin_image/image-icon.png +0 -0
- data/file/simplex_skin_image/image-large.png +0 -0
- data/file/simplex_skin_image/image-medium.png +0 -0
- data/file/simplex_skin_image/image-original.png +0 -0
- data/file/simplex_skin_image/image-small.png +0 -0
- data/file/sketchy_skin_image/image-icon.png +0 -0
- data/file/sketchy_skin_image/image-large.png +0 -0
- data/file/sketchy_skin_image/image-medium.png +0 -0
- data/file/sketchy_skin_image/image-original.png +0 -0
- data/file/sketchy_skin_image/image-small.png +0 -0
- data/file/slate_skin_image/image-icon.png +0 -0
- data/file/slate_skin_image/image-large.png +0 -0
- data/file/slate_skin_image/image-medium.png +0 -0
- data/file/slate_skin_image/image-original.png +0 -0
- data/file/slate_skin_image/image-small.png +0 -0
- data/file/solar_skin_image/image-icon.png +0 -0
- data/file/solar_skin_image/image-large.png +0 -0
- data/file/solar_skin_image/image-medium.png +0 -0
- data/file/solar_skin_image/image-original.png +0 -0
- data/file/solar_skin_image/image-small.png +0 -0
- data/file/spacelab_skin_image/image-icon.png +0 -0
- data/file/spacelab_skin_image/image-large.png +0 -0
- data/file/spacelab_skin_image/image-medium.png +0 -0
- data/file/spacelab_skin_image/image-original.png +0 -0
- data/file/spacelab_skin_image/image-small.png +0 -0
- data/file/superhero_skin_image/image-icon.png +0 -0
- data/file/superhero_skin_image/image-large.png +0 -0
- data/file/superhero_skin_image/image-medium.png +0 -0
- data/file/superhero_skin_image/image-original.png +0 -0
- data/file/superhero_skin_image/image-small.png +0 -0
- data/file/united_skin_image/image-icon.png +0 -0
- data/file/united_skin_image/image-large.png +0 -0
- data/file/united_skin_image/image-medium.png +0 -0
- data/file/united_skin_image/image-original.png +0 -0
- data/file/united_skin_image/image-small.png +0 -0
- data/file/yeti_skin_image/image-icon.png +0 -0
- data/file/yeti_skin_image/image-large.png +0 -0
- data/file/yeti_skin_image/image-medium.png +0 -0
- data/file/yeti_skin_image/image-original.png +0 -0
- data/file/yeti_skin_image/image-small.png +0 -0
- data/lib/card/lazy_tab.rb +0 -37
- data/lib/card/tab.rb +0 -83
- data/lib/javascript/smartmenu.js +0 -94
- data/lib/stylesheets/smartmenu.css +0 -433
- data/set/all/bootstrap/tabs/tab_panel.haml +0 -7
- data/set/all/bootstrap/tabs.rb +0 -40
- data/set/self/font_awesome.rb +0 -2
- data/set/self/material_icons.rb +0 -2
- data/set/self/script_load_select2.rb +0 -2
- data/set/self/smartmenu_css.rb +0 -5
- data/set/self/smartmenu_js.rb +0 -5
- data/set/self/style_bootstrap_cards.rb +0 -1
- data/set/self/style_bootstrap_colorpicker.rb +0 -6
- data/set/self/style_select2.rb +0 -10
- data/set/self/style_select2_bootstrap.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96edfcb6cdde7de9c4790cabd666fa28516b827f4145bd0d9103a7f1354b1f7e
|
4
|
+
data.tar.gz: 6db5300c568f05758e95cfb239f37ecf5a48b6f6bccf1f277d356b2e81f85ace
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3f9c0e78702723980d45027f6826eb41602f1e181a3d67eaea362a12c3d3327251d9cc32de9ac858610ec60dd7621bbd8352472daa038d8619c0f450f9c8933
|
7
|
+
data.tar.gz: 38d64ac9a379ca13cd7255cecab6614486bd052dbfe72f36a2aa97b1b7e85dabfe0d1d0bc81d5926c5621daedf6c49da30aff586134977f6b3261cd9e4ebf6fd
|
data/assets/script/manifest.yml
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
bootstrap:
|
2
|
-
minimize: true
|
3
2
|
items:
|
4
3
|
# full version of select2 is needed to support containerCssClass config option
|
5
4
|
# which we need for select2_bootstrap to work properly
|
@@ -10,9 +9,5 @@ bootstrap:
|
|
10
9
|
- ../../vendor/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js
|
11
10
|
- script_colorpicker.js.coffee
|
12
11
|
|
13
|
-
pointer:
|
14
|
-
items:
|
15
|
-
- script_pointer_config.js.coffee
|
16
|
-
- script_pointer_list_editor.js.coffee
|
17
12
|
|
18
13
|
|
@@ -0,0 +1,272 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap Colorpicker v2.5.2
|
3
|
+
* https://itsjavi.com/bootstrap-colorpicker/
|
4
|
+
*
|
5
|
+
* Originally written by (c) 2012 Stefan Petre
|
6
|
+
* Licensed under the Apache License v2.0
|
7
|
+
* http://www.apache.org/licenses/LICENSE-2.0.txt
|
8
|
+
*
|
9
|
+
*/
|
10
|
+
|
11
|
+
@mixin bgImg($imgBase64) {
|
12
|
+
background-image: url("#{$imgBase64}");
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin borderRadius($size) {
|
16
|
+
-webkit-border-radius: $size;
|
17
|
+
-moz-border-radius: $size;
|
18
|
+
border-radius: $size;
|
19
|
+
}
|
20
|
+
|
21
|
+
.colorpicker-saturation {
|
22
|
+
width: 100px;
|
23
|
+
height: 100px;
|
24
|
+
@include bgImg('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAQAAADa613fAAAP9klEQVR4XnRW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/fjCTnEiDAOg62j1utb/dv9mZ/aHCj4AyOHbsW3/As0BTzIgeJU7AAAAAElFTkSuQmCC');
|
25
|
+
cursor: crosshair;
|
26
|
+
float: left;
|
27
|
+
i {
|
28
|
+
display: block;
|
29
|
+
height: 5px;
|
30
|
+
width: 5px;
|
31
|
+
border: 1px solid #000;
|
32
|
+
@include borderRadius(5px);
|
33
|
+
position: absolute;
|
34
|
+
top: 0;
|
35
|
+
left: 0;
|
36
|
+
margin: -4px 0 0 -4px;
|
37
|
+
b {
|
38
|
+
display: block;
|
39
|
+
height: 5px;
|
40
|
+
width: 5px;
|
41
|
+
border: 1px solid #fff;
|
42
|
+
@include borderRadius(5px);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.colorpicker-hue,
|
48
|
+
.colorpicker-alpha {
|
49
|
+
width: 15px;
|
50
|
+
height: 100px;
|
51
|
+
float: left;
|
52
|
+
cursor: row-resize;
|
53
|
+
margin-left: 4px;
|
54
|
+
margin-bottom: 4px;
|
55
|
+
}
|
56
|
+
|
57
|
+
.colorpicker-hue i,
|
58
|
+
.colorpicker-alpha i {
|
59
|
+
display: block;
|
60
|
+
height: 1px;
|
61
|
+
background: #000;
|
62
|
+
border-top: 1px solid #fff;
|
63
|
+
position: absolute;
|
64
|
+
top: 0;
|
65
|
+
left: 0;
|
66
|
+
width: 100%;
|
67
|
+
margin-top: -1px;
|
68
|
+
}
|
69
|
+
|
70
|
+
.colorpicker-hue {
|
71
|
+
@include bgImg('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABkCAMAAABw8qpSAAABLFBMVEXqFBb/ABH/ACL/ADH/AEH/AFD/AGD/AG7/AH7/AI3/AJ3/AKz/ALz/AMr/ANv/AOr/APr2AP/mAP/XAP/HAP+4AP+oAP+aAP+JAP97AP9rAP9cAP9MAP8+AP8tAP8fAP8PAP8BAv8AEP8AH/8AL/8APv8ATv8AXP8Abf8Ae/8Ai/8Amv8Aqv8AuP8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hbu6XqdOtWOuin5hjABGp4a2uotZ71MVCfwDBt2/v37yo6AAAAAASUVORK5CYII=');
|
76
|
+
display: none;
|
77
|
+
}
|
78
|
+
|
79
|
+
.colorpicker-saturation,
|
80
|
+
.colorpicker-hue,
|
81
|
+
.colorpicker-alpha {
|
82
|
+
background-size: contain;
|
83
|
+
}
|
84
|
+
|
85
|
+
.colorpicker {
|
86
|
+
padding: 4px;
|
87
|
+
min-width: 130px;
|
88
|
+
margin-top: 1px;
|
89
|
+
@include borderRadius(4px);
|
90
|
+
z-index: 2500;
|
91
|
+
}
|
92
|
+
|
93
|
+
.colorpicker:before,
|
94
|
+
.colorpicker:after {
|
95
|
+
display: table;
|
96
|
+
content: "";
|
97
|
+
line-height: 0;
|
98
|
+
}
|
99
|
+
|
100
|
+
.colorpicker:after {
|
101
|
+
clear: both;
|
102
|
+
}
|
103
|
+
|
104
|
+
.colorpicker:before {
|
105
|
+
content: '';
|
106
|
+
display: inline-block;
|
107
|
+
border-left: 7px solid transparent;
|
108
|
+
border-right: 7px solid transparent;
|
109
|
+
border-bottom: 7px solid #ccc;
|
110
|
+
border-bottom-color: rgba(0, 0, 0, 0.2);
|
111
|
+
position: absolute;
|
112
|
+
top: -7px;
|
113
|
+
left: 6px;
|
114
|
+
}
|
115
|
+
|
116
|
+
.colorpicker:after {
|
117
|
+
content: '';
|
118
|
+
display: inline-block;
|
119
|
+
border-left: 6px solid transparent;
|
120
|
+
border-right: 6px solid transparent;
|
121
|
+
border-bottom: 6px solid #ffffff;
|
122
|
+
position: absolute;
|
123
|
+
top: -6px;
|
124
|
+
left: 7px;
|
125
|
+
}
|
126
|
+
|
127
|
+
.colorpicker div {
|
128
|
+
position: relative;
|
129
|
+
}
|
130
|
+
|
131
|
+
.colorpicker.colorpicker-with-alpha {
|
132
|
+
min-width: 140px;
|
133
|
+
}
|
134
|
+
|
135
|
+
.colorpicker.colorpicker-with-alpha .colorpicker-alpha {
|
136
|
+
display: block;
|
137
|
+
}
|
138
|
+
|
139
|
+
.colorpicker-color {
|
140
|
+
height: 10px;
|
141
|
+
margin-top: 5px;
|
142
|
+
clear: both;
|
143
|
+
@include bgImg('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAABkCAQAAAAVxWkcAAABr0lEQVR4Xo2VwU0DQQxF7dmRuNIFlzlSAR3QAaXQQdIBJVABFXDcOVAAd67cjJLR07dkhcSrkZKfb/t7bG88rFo3B5gZPMNycItu2xloGV7MWHzM9zuzFWCkmA0nK6AszCUJDW6+mG6R03ncw5v8EMTEvZ2O3AliYjpslblc0RF9LmZYWxURU6aKytWZYsoWCAe+xwOZp1GsEukGiIkYxcQCHck99+gRgB7JncyIB5SGEhP3Yh5P6JwX+u6AnYot104d8DJT7uH7M9JH6OZbimj0vfMVaYnJIZFJDBW9kHlerL2C6JV4mSt7uuo2N57RxnZ+usQjn0R1jwBJBrNO3evJpVYUWsJ/E3UiXRlv24/7YZ04xmEdWlzcKS+B/eapeyMvFd2k0+hRk/T0AmTW8h69s2sjYMsdPntECiILhAeIMZAeH4QvUwfn6ijC0tTV+fT9ky8jM9nK2g7Ly1VjSpKYq6IvsAm7MtNu1orEqa/K3KNvgMFdhfquPfJmp2dbh0/8Gzb6Y22ViaNr6n5410zXdngVhbu6XqdOtWOuin5hjABGp4a2uotZ71MVCfwDBt2/v37yo6AAAAAASUVORK5CYII=');
|
144
|
+
background-position: 0 100%;
|
145
|
+
}
|
146
|
+
|
147
|
+
.colorpicker-color div {
|
148
|
+
height: 10px;
|
149
|
+
}
|
150
|
+
|
151
|
+
.colorpicker-selectors {
|
152
|
+
display: none;
|
153
|
+
height: 10px;
|
154
|
+
margin-top: 5px;
|
155
|
+
clear: both;
|
156
|
+
}
|
157
|
+
|
158
|
+
.colorpicker-selectors i {
|
159
|
+
cursor: pointer;
|
160
|
+
float: left;
|
161
|
+
height: 10px;
|
162
|
+
width: 10px;
|
163
|
+
}
|
164
|
+
|
165
|
+
.colorpicker-selectors i + i {
|
166
|
+
margin-left: 3px;
|
167
|
+
}
|
168
|
+
|
169
|
+
.colorpicker-element .input-group-addon i,
|
170
|
+
.colorpicker-element .add-on i {
|
171
|
+
display: inline-block;
|
172
|
+
cursor: pointer;
|
173
|
+
height: 16px;
|
174
|
+
vertical-align: text-top;
|
175
|
+
width: 16px;
|
176
|
+
}
|
177
|
+
|
178
|
+
.colorpicker.colorpicker-inline {
|
179
|
+
position: relative;
|
180
|
+
display: inline-block;
|
181
|
+
float: none;
|
182
|
+
z-index: auto;
|
183
|
+
}
|
184
|
+
|
185
|
+
.colorpicker.colorpicker-horizontal {
|
186
|
+
width: 110px;
|
187
|
+
min-width: 110px;
|
188
|
+
height: auto;
|
189
|
+
}
|
190
|
+
|
191
|
+
.colorpicker.colorpicker-horizontal .colorpicker-saturation {
|
192
|
+
margin-bottom: 4px;
|
193
|
+
}
|
194
|
+
|
195
|
+
.colorpicker.colorpicker-horizontal .colorpicker-color {
|
196
|
+
width: 100px;
|
197
|
+
}
|
198
|
+
|
199
|
+
.colorpicker.colorpicker-horizontal .colorpicker-hue,
|
200
|
+
.colorpicker.colorpicker-horizontal .colorpicker-alpha {
|
201
|
+
width: 100px;
|
202
|
+
height: 15px;
|
203
|
+
float: left;
|
204
|
+
cursor: col-resize;
|
205
|
+
margin-left: 0px;
|
206
|
+
margin-bottom: 4px;
|
207
|
+
}
|
208
|
+
|
209
|
+
.colorpicker.colorpicker-horizontal .colorpicker-hue i,
|
210
|
+
.colorpicker.colorpicker-horizontal .colorpicker-alpha i {
|
211
|
+
display: block;
|
212
|
+
height: 15px;
|
213
|
+
background: #ffffff;
|
214
|
+
position: absolute;
|
215
|
+
top: 0;
|
216
|
+
left: 0;
|
217
|
+
width: 1px;
|
218
|
+
border: none;
|
219
|
+
margin-top: 0px;
|
220
|
+
}
|
221
|
+
|
222
|
+
.colorpicker.colorpicker-horizontal .colorpicker-hue {
|
223
|
+
@include bgImg('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAABCAMAAAAfB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bhLSPwRJ4wU0BRSc6HkECYYVw95nMKgJOcylxrJttE5Ibzf9Xq9GPvP+WX3MiV/MGHfRu/SentRQrfG1GzsIrytdNXucSRKxQNIGHM9YhGFQJcdjNcBZvfJayuYe4Sia1CzwW+19mWOhe37HsxJWKwbu/jluEU15QzAQjAqCEbhMJc78GYV2E0kooHDubUImWkTOhGpgv8PoT8DJG/bzxna4BZ0eOFSOaLADGeSpFsg5AzeaDZIDQQXjZ4y/8ryfzUXBwdELRjTjCNvOeT0rNlrJz90vwy6N9pXXQEluX0inElpPWokSdiLCfiNJJjMKQ8Qsh8GEKQKMo/eiHrNbI9UksAAAAASUVORK5CYII=');
|
228
|
+
}
|
229
|
+
|
230
|
+
.colorpicker-right:before {
|
231
|
+
left: auto;
|
232
|
+
right: 6px;
|
233
|
+
}
|
234
|
+
|
235
|
+
.colorpicker-right:after {
|
236
|
+
left: auto;
|
237
|
+
right: 7px;
|
238
|
+
}
|
239
|
+
|
240
|
+
.colorpicker-no-arrow:before {
|
241
|
+
border-right: 0;
|
242
|
+
border-left: 0;
|
243
|
+
}
|
244
|
+
|
245
|
+
.colorpicker-no-arrow:after {
|
246
|
+
border-right: 0;
|
247
|
+
border-left: 0;
|
248
|
+
}
|
249
|
+
|
250
|
+
.colorpicker,
|
251
|
+
.colorpicker-alpha,
|
252
|
+
.colorpicker-saturation,
|
253
|
+
.colorpicker-hue,
|
254
|
+
.colorpicker-selectors {
|
255
|
+
&.colorpicker-visible {
|
256
|
+
display: block;
|
257
|
+
}
|
258
|
+
}
|
259
|
+
|
260
|
+
.colorpicker,
|
261
|
+
.colorpicker-alpha,
|
262
|
+
.colorpicker-saturation,
|
263
|
+
.colorpicker-hue,
|
264
|
+
.colorpicker-selectors {
|
265
|
+
&.colorpicker-hidden {
|
266
|
+
display: none;
|
267
|
+
}
|
268
|
+
}
|
269
|
+
|
270
|
+
.colorpicker-inline.colorpicker-visible {
|
271
|
+
display: inline-block;
|
272
|
+
}
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
bootstrap_decko:
|
2
|
+
items:
|
3
|
+
- style_bootstrap_cards.scss
|
4
|
+
|
5
|
+
libraries:
|
6
|
+
items:
|
7
|
+
- font_awesome.css
|
8
|
+
- material_icons.css
|
9
|
+
- bootstrap_colorpicker.scss
|
10
|
+
- ../../vendor/select2/dist/css/select2.css
|
11
|
+
- select2_bootstrap.scss
|
12
|
+
- ../../vendor/bootstrap-colorpicker/src/sass/_colorpicker.scss
|
13
|
+
|
14
|
+
|
File without changes
|
File without changes
|
@@ -275,7 +275,7 @@ body.mceContentBody {
|
|
275
275
|
/*---------- comments -------------------------------------- */
|
276
276
|
|
277
277
|
.comment-box {
|
278
|
-
padding
|
278
|
+
padding: 0.5em 0;
|
279
279
|
input {
|
280
280
|
padding: 0px;
|
281
281
|
}
|
@@ -481,12 +481,14 @@ body.mceContentBody {
|
|
481
481
|
|
482
482
|
.item-box {
|
483
483
|
display: inline-block;
|
484
|
-
min-width: 260px;
|
485
|
-
width: 15%;
|
486
484
|
padding: 10px 1%;
|
487
485
|
vertical-align: top;
|
488
486
|
}
|
489
487
|
|
488
|
+
.box {
|
489
|
+
width: 320px;
|
490
|
+
}
|
491
|
+
|
490
492
|
.box-top {
|
491
493
|
display: flex;
|
492
494
|
min-height: 60px;
|
data/locales/de.yml
ADDED
@@ -20,8 +20,8 @@
|
|
20
20
|
# is taken from files.
|
21
21
|
# The bootswatch theme content is taken directly from the files in the bootswatch
|
22
22
|
# submodule. For the rest we use code file cards.
|
23
|
-
# Cards of type "customized bootswatch skin" have the same structure but make the
|
24
|
-
# and stylesheets part editable.
|
23
|
+
# Cards of type "customized bootswatch skin" have the same structure but make the
|
24
|
+
# variables and stylesheets part editable.
|
25
25
|
#
|
26
26
|
# Bootswatch theme cards are machine cards for the following reason.
|
27
27
|
# Machine cards usually store all involved input cards of all nested levels in
|
@@ -36,25 +36,48 @@
|
|
36
36
|
# To do that it is a machine itself and stores the generated machine output as its
|
37
37
|
# content which will trigger the updates of other machines that use this card.
|
38
38
|
|
39
|
-
include_set Abstract::
|
40
|
-
include_set
|
41
|
-
include_set Abstract::CodeFile
|
39
|
+
include_set Abstract::AssetInputter, input_format: :css, input_view: :compressed
|
40
|
+
include_set Abstract::Scss
|
42
41
|
include_set Abstract::SkinBox
|
43
42
|
|
44
43
|
CONTENT_PARTS = %i[pre_variables variables post_variables stylesheets].freeze
|
45
44
|
|
46
|
-
PRE_VARIABLES_CARD_NAMES = %i[
|
47
|
-
|
48
|
-
bootstrap_functions
|
49
|
-
].freeze
|
45
|
+
PRE_VARIABLES_CARD_NAMES = %i[bootstrap_functions].freeze
|
46
|
+
POST_VARIABLES_CARD_NAMES = %i[bootstrap_core style_mods].freeze
|
50
47
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
48
|
+
def content
|
49
|
+
CONTENT_PARTS.map do |n|
|
50
|
+
send "#{n}_content"
|
51
|
+
end.join "\n"
|
52
|
+
end
|
53
|
+
|
54
|
+
def item_names _args={}
|
55
|
+
(PRE_VARIABLES_CARD_NAMES + variables_card_names +
|
56
|
+
POST_VARIABLES_CARD_NAMES + stylesheets_card_names).compact.map do |n|
|
57
|
+
Card.fetch_name(n)
|
58
|
+
end.compact
|
59
|
+
end
|
60
|
+
|
61
|
+
format :html do
|
62
|
+
view :input do
|
63
|
+
# Localize
|
64
|
+
"Content is stored in file and can't be edited."
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
def theme_name
|
69
|
+
/^(.+)_skin$/.match(codename)&.capture(0) ||
|
70
|
+
/^(.+)[ _][sS]kin/.match(name)&.capture(0)&.downcase
|
71
|
+
end
|
72
|
+
|
73
|
+
def scss_from_theme_file file
|
74
|
+
return "" unless (path = ::File.join(source_dir, "_#{file}.scss")) &&
|
75
|
+
::File.exist?(path)
|
76
|
+
|
77
|
+
::File.read path
|
78
|
+
end
|
79
|
+
|
80
|
+
private
|
58
81
|
|
59
82
|
# @return [Array<Card::Name,String>]
|
60
83
|
def variables_card_names
|
@@ -66,43 +89,20 @@ def stylesheets_card_names
|
|
66
89
|
[]
|
67
90
|
end
|
68
91
|
|
69
|
-
#
|
70
|
-
def engine_input
|
71
|
-
extended_input_cards.select { |ca| ca.type_id.in? [Card::ScssID, Card::CssID] }
|
72
|
-
end
|
73
|
-
|
74
|
-
# Don't create "+*machine output" file card
|
75
|
-
# instead save the the output as the card's content is
|
76
|
-
def after_engine output
|
77
|
-
Card::Auth.as_bot { update! db_content: output }
|
78
|
-
end
|
79
|
-
|
80
|
-
# needed to make the refresh_assets method work with these cards
|
92
|
+
# needed to make the refresh_script_and_style method work with these cards
|
81
93
|
def source_files
|
82
|
-
|
94
|
+
item_cards.map do |i_card|
|
83
95
|
i_card.try(:source_files)
|
84
96
|
end.flatten.compact
|
85
97
|
end
|
86
98
|
|
87
99
|
# needed to make the refresh_assets method work with these cards
|
88
100
|
def existing_source_paths
|
89
|
-
|
101
|
+
item_cards.map do |i_card|
|
90
102
|
i_card.try(:existing_source_paths)
|
91
103
|
end.flatten.compact
|
92
104
|
end
|
93
105
|
|
94
|
-
def extended_input_cards
|
95
|
-
input_names.map do |n|
|
96
|
-
Card.fetch(n).extended_item_cards
|
97
|
-
end.flatten.compact
|
98
|
-
end
|
99
|
-
|
100
|
-
def content
|
101
|
-
CONTENT_PARTS.map do |n|
|
102
|
-
send "#{n}_content"
|
103
|
-
end.join "\n"
|
104
|
-
end
|
105
|
-
|
106
106
|
def pre_variables_content
|
107
107
|
load_content(*PRE_VARIABLES_CARD_NAMES)
|
108
108
|
end
|
@@ -119,38 +119,13 @@ def stylesheets_content
|
|
119
119
|
load_content stylesheets_card_names
|
120
120
|
end
|
121
121
|
|
122
|
-
def input_names _args={}
|
123
|
-
(PRE_VARIABLES_CARD_NAMES + variables_card_names +
|
124
|
-
POST_VARIABLES_CARD_NAMES + stylesheets_card_names).compact.map do |n|
|
125
|
-
Card.fetch_name(n)
|
126
|
-
end.compact
|
127
|
-
end
|
128
|
-
|
129
|
-
def item_names _args={}
|
130
|
-
[]
|
131
|
-
end
|
132
|
-
|
133
|
-
def item_cards _args={}
|
134
|
-
[self]
|
135
|
-
end
|
136
|
-
|
137
122
|
def load_content *names
|
138
|
-
cards = names.flatten.map
|
123
|
+
cards = names.flatten.map do |n|
|
124
|
+
Card.fetch(n)&.extended_item_cards
|
125
|
+
end
|
139
126
|
cards.flatten.compact.map(&:content).join "\n"
|
140
127
|
end
|
141
128
|
|
142
|
-
def scss_from_theme_file file
|
143
|
-
return "" unless (path = ::File.join(source_dir, "_#{file}.scss")) &&
|
144
|
-
::File.exist?(path)
|
145
|
-
|
146
|
-
::File.read path
|
147
|
-
end
|
148
|
-
|
149
|
-
def theme_name
|
150
|
-
/^(.+)_skin$/.match(codename)&.capture(0) ||
|
151
|
-
/^(.+)[ _][sS]kin/.match(name)&.capture(0)&.downcase
|
152
|
-
end
|
153
|
-
|
154
129
|
def source_dir
|
155
130
|
@source_dir ||= File.expand_path(
|
156
131
|
"#{mod_root :bootstrap}/vendor/bootswatch/dist/#{theme_name}", __FILE__
|
data/set/all/bootstrap/helper.rb
CHANGED
@@ -55,7 +55,7 @@ format :html do
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def popover_opts text, title, opts
|
58
|
-
add_class opts, "pl-1 text-muted-link"
|
58
|
+
add_class opts, "pl-1 text-muted-link _popover_link"
|
59
59
|
opts.merge! path: "#", "data-toggle": "popover",
|
60
60
|
"data-trigger": :focus, "data-content": text
|
61
61
|
opts["data-title"] = title if title
|
data/set/all/bootstrap/icon.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
include_set Abstract::BootswatchTheme
|
2
2
|
|
3
|
-
card_accessor :colors
|
4
|
-
card_accessor :variables
|
5
|
-
card_accessor :stylesheets
|
3
|
+
card_accessor :colors, type: :scss
|
4
|
+
card_accessor :variables, type: :scss
|
5
|
+
card_accessor :stylesheets, type: :skin
|
6
6
|
|
7
7
|
def top_level_item_cards
|
8
8
|
cards = PRE_VARIABLES_CARD_NAMES.map { |n| Card[n] }
|
@@ -68,7 +68,7 @@ event :copy_theme, :prepare_to_store, on: :create do
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def initialize_theme style_item_names=nil
|
71
|
-
|
71
|
+
subfield :colors, type_id: Card::ScssID
|
72
72
|
add_variables_subfield
|
73
73
|
add_stylesheets_subfield style_item_names
|
74
74
|
end
|
@@ -83,20 +83,17 @@ def add_stylesheets_subfield style_items=nil
|
|
83
83
|
opts[:content] = [opts[:content], style_items].flatten.compact.to_pointer_content
|
84
84
|
end
|
85
85
|
|
86
|
-
|
86
|
+
subfield :stylesheets, opts
|
87
87
|
end
|
88
88
|
|
89
89
|
def add_variables_subfield
|
90
90
|
theme_content = content_from_theme(:variables)
|
91
91
|
default_content = read_bootstrap_variables
|
92
|
-
|
93
|
-
type_id: Card::ScssID,
|
94
|
-
content: "#{theme_content}\n\n\n#{default_content}"
|
92
|
+
subfield :variables, type: :scss, content: "#{theme_content}\n\n\n#{default_content}"
|
95
93
|
end
|
96
94
|
|
97
95
|
def add_bootswatch_subfield
|
98
|
-
|
99
|
-
content: content_from_theme(:bootswatch)
|
96
|
+
subfield :bootswatch, type: :scss, content: content_from_theme(:bootswatch)
|
100
97
|
end
|
101
98
|
|
102
99
|
def theme_card
|