lato_view 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +35 -0
- data/app/assets/fonts/lato-bold-webfont.eot +0 -0
- data/app/assets/fonts/lato-bold-webfont.svg +4551 -0
- data/app/assets/fonts/lato-bold-webfont.ttf +0 -0
- data/app/assets/fonts/lato-bold-webfont.woff +0 -0
- data/app/assets/fonts/lato-bold-webfont.woff2 +0 -0
- data/app/assets/fonts/lato-regular-webfont.eot +0 -0
- data/app/assets/fonts/lato-regular-webfont.svg +4241 -0
- data/app/assets/fonts/lato-regular-webfont.ttf +0 -0
- data/app/assets/fonts/lato-regular-webfont.woff +0 -0
- data/app/assets/fonts/lato-regular-webfont.woff2 +0 -0
- data/app/assets/images/lato_view/icons/_arrow-down.svg +1 -0
- data/app/assets/images/lato_view/icons/_arrow-left.svg +1 -0
- data/app/assets/images/lato_view/icons/_arrow-right.svg +1 -0
- data/app/assets/images/lato_view/icons/_arrow-up.svg +1 -0
- data/app/assets/images/lato_view/icons/_artist.svg +1 -0
- data/app/assets/images/lato_view/icons/_artwork.svg +1 -0
- data/app/assets/images/lato_view/icons/_attachment.svg +1 -0
- data/app/assets/images/lato_view/icons/_calendar.svg +1 -0
- data/app/assets/images/lato_view/icons/_clients.svg +1 -0
- data/app/assets/images/lato_view/icons/_close.svg +1 -0
- data/app/assets/images/lato_view/icons/_download.svg +1 -0
- data/app/assets/images/lato_view/icons/_file.svg +1 -0
- data/app/assets/images/lato_view/icons/_google-plus.svg +1 -0
- data/app/assets/images/lato_view/icons/_home.svg +1 -0
- data/app/assets/images/lato_view/icons/_info.svg +1 -0
- data/app/assets/images/lato_view/icons/_instagram.svg +1 -0
- data/app/assets/images/lato_view/icons/_lato-logo.svg +1 -0
- data/app/assets/images/lato_view/icons/_linkedin.svg +1 -0
- data/app/assets/images/lato_view/icons/_list.svg +1 -0
- data/app/assets/images/lato_view/icons/_magni-glass.svg +1 -0
- data/app/assets/images/lato_view/icons/_mail.svg +1 -0
- data/app/assets/images/lato_view/icons/_minus.svg +1 -0
- data/app/assets/images/lato_view/icons/_modify.svg +1 -0
- data/app/assets/images/lato_view/icons/_percentage.svg +1 -0
- data/app/assets/images/lato_view/icons/_plus.svg +1 -0
- data/app/assets/images/lato_view/icons/_power.svg +1 -0
- data/app/assets/images/lato_view/icons/_settings.svg +1 -0
- data/app/assets/images/lato_view/icons/_sweet.svg +1 -0
- data/app/assets/images/lato_view/icons/_trash.svg +1 -0
- data/app/assets/images/lato_view/icons/_twitter.svg +1 -0
- data/app/assets/images/lato_view/icons/_upload.svg +1 -0
- data/app/assets/images/lato_view/icons/_user.svg +1 -0
- data/app/assets/images/lato_view/icons/_users.svg +1 -0
- data/app/assets/images/lato_view/icons/_warning.svg +1 -0
- data/app/assets/images/lato_view/icons/_web.svg +1 -0
- data/app/assets/images/lato_view/vendor/trumbowyg_icons.svg +1 -0
- data/app/assets/images/lato_view/work-in-progress/da-scegliere.svg +225 -0
- data/app/assets/images/lato_view/work-in-progress/social.svg +76 -0
- data/app/assets/javascripts/lato_view/application.js +68 -0
- data/app/assets/javascripts/lato_view/build/ActionBar.js +65 -0
- data/app/assets/javascripts/lato_view/build/Dropdown.js +33 -0
- data/app/assets/javascripts/lato_view/build/Flash.js +23 -0
- data/app/assets/javascripts/lato_view/build/FormManager.js +159 -0
- data/app/assets/javascripts/lato_view/build/Navigation.js +79 -0
- data/app/assets/javascripts/lato_view/build/Util.js +91 -0
- data/app/assets/javascripts/lato_view/build/Validator.js +235 -0
- data/app/assets/javascripts/lato_view/vendor/dropzone.min.js +2 -0
- data/app/assets/javascripts/lato_view/vendor/jquery.email-autocomplete.min.js +9 -0
- data/app/assets/javascripts/lato_view/vendor/modernizr.js +3 -0
- data/app/assets/javascripts/lato_view/vendor/moment.min.js +7 -0
- data/app/assets/javascripts/lato_view/vendor/picker-it_IT.js +1 -0
- data/app/assets/javascripts/lato_view/vendor/picker.date.js +5 -0
- data/app/assets/javascripts/lato_view/vendor/picker.js +7 -0
- data/app/assets/javascripts/lato_view/vendor/picker.time.js +5 -0
- data/app/assets/javascripts/lato_view/vendor/trumbowyg.js +1522 -0
- data/app/assets/stylesheets/lato_view/application.scss.erb +32 -0
- data/app/assets/stylesheets/lato_view/base/_base.scss +53 -0
- data/app/assets/stylesheets/lato_view/base/_helpers.scss +491 -0
- data/app/assets/stylesheets/lato_view/base/_media.scss +32 -0
- data/app/assets/stylesheets/lato_view/base/_reset.scss +424 -0
- data/app/assets/stylesheets/lato_view/base/_typography.scss +138 -0
- data/app/assets/stylesheets/lato_view/config/_config.scss +143 -0
- data/app/assets/stylesheets/lato_view/config/templates/_base-template.scss +158 -0
- data/app/assets/stylesheets/lato_view/config/templates/_black-template.scss +158 -0
- data/app/assets/stylesheets/lato_view/modules/_action-bar.scss +62 -0
- data/app/assets/stylesheets/lato_view/modules/_arranger.scss +10 -0
- data/app/assets/stylesheets/lato_view/modules/_button-group.scss +70 -0
- data/app/assets/stylesheets/lato_view/modules/_buttons.scss +177 -0
- data/app/assets/stylesheets/lato_view/modules/_content-block.scss +33 -0
- data/app/assets/stylesheets/lato_view/modules/_datepicker.scss +580 -0
- data/app/assets/stylesheets/lato_view/modules/_dropdown.scss +166 -0
- data/app/assets/stylesheets/lato_view/modules/_flash.scss +55 -0
- data/app/assets/stylesheets/lato_view/modules/_form-controls.scss +83 -0
- data/app/assets/stylesheets/lato_view/modules/_form.scss +297 -0
- data/app/assets/stylesheets/lato_view/modules/_modules.scss +19 -0
- data/app/assets/stylesheets/lato_view/modules/_navbar.scss +262 -0
- data/app/assets/stylesheets/lato_view/modules/_pagination.scss +30 -0
- data/app/assets/stylesheets/lato_view/modules/_search-bar.scss +44 -0
- data/app/assets/stylesheets/lato_view/modules/_select.scss +313 -0
- data/app/assets/stylesheets/lato_view/modules/_sidebar.scss +211 -0
- data/app/assets/stylesheets/lato_view/modules/_status.scss +39 -0
- data/app/assets/stylesheets/lato_view/modules/_table.scss +94 -0
- data/app/assets/stylesheets/lato_view/modules/_upload.scss +371 -0
- data/app/assets/stylesheets/lato_view/modules/_wyswyg.scss +755 -0
- data/app/assets/stylesheets/lato_view/views/_admin.scss +30 -0
- data/app/assets/stylesheets/lato_view/views/_grid.scss +448 -0
- data/app/assets/stylesheets/lato_view/views/_login.scss +152 -0
- data/app/assets/stylesheets/lato_view/views/_print.scss +41 -0
- data/app/assets/stylesheets/lato_view/views/_views.scss +48 -0
- data/app/concepts/lato_view/actionbar/cell.rb +65 -0
- data/app/concepts/lato_view/actionbar/views/show.html.erb +21 -0
- data/app/concepts/lato_view/block/cell.rb +52 -0
- data/app/concepts/lato_view/buttongroup/cell.rb +50 -0
- data/app/concepts/lato_view/buttongroup/views/show.html.erb +7 -0
- data/app/concepts/lato_view/dropdown/cell.rb +46 -0
- data/app/concepts/lato_view/dropdown/views/show.html.erb +19 -0
- data/app/concepts/lato_view/index/cell.rb +112 -0
- data/app/concepts/lato_view/index/views/head.html.erb +12 -0
- data/app/concepts/lato_view/index/views/rows.html.erb +49 -0
- data/app/concepts/lato_view/input/cell.rb +148 -0
- data/app/concepts/lato_view/input/views/checkbox.html.erb +8 -0
- data/app/concepts/lato_view/input/views/date.html.erb +5 -0
- data/app/concepts/lato_view/input/views/editor.html.erb +7 -0
- data/app/concepts/lato_view/input/views/email.html.erb +5 -0
- data/app/concepts/lato_view/input/views/file.html.erb +17 -0
- data/app/concepts/lato_view/input/views/multiple-select.html.erb +12 -0
- data/app/concepts/lato_view/input/views/number.html.erb +5 -0
- data/app/concepts/lato_view/input/views/password.html.erb +8 -0
- data/app/concepts/lato_view/input/views/radio.html.erb +10 -0
- data/app/concepts/lato_view/input/views/select.html.erb +12 -0
- data/app/concepts/lato_view/input/views/text.html.erb +5 -0
- data/app/concepts/lato_view/input/views/textarea.html.erb +5 -0
- data/app/concepts/lato_view/input/views/time.html.erb +5 -0
- data/app/concepts/lato_view/searchbar/cell.rb +63 -0
- data/app/concepts/lato_view/searchbar/views/show.html.erb +6 -0
- data/app/concepts/lato_view/table/cell.rb +88 -0
- data/app/concepts/lato_view/table/views/head.html.erb +9 -0
- data/app/concepts/lato_view/table/views/row.html.erb +7 -0
- data/app/concepts/lato_view/table/views/rows.html.erb +5 -0
- data/app/controllers/lato_view/assets_controller.rb +18 -0
- data/app/controllers/lato_view/develop_controller.rb +18 -0
- data/app/helpers/lato_view/application_helper.rb +22 -0
- data/app/views/lato_view/develop/home.html.erb +281 -0
- data/app/views/lato_view/icons/_arrowdown.svg +1 -0
- data/app/views/lato_view/icons/_arrowleft.svg +1 -0
- data/app/views/lato_view/icons/_arrowright.svg +1 -0
- data/app/views/lato_view/icons/_arrowup.svg +1 -0
- data/app/views/lato_view/icons/_artist.svg +1 -0
- data/app/views/lato_view/icons/_artwork.svg +1 -0
- data/app/views/lato_view/icons/_attachment.svg +1 -0
- data/app/views/lato_view/icons/_calendar.svg +1 -0
- data/app/views/lato_view/icons/_clients.svg +1 -0
- data/app/views/lato_view/icons/_close.svg +1 -0
- data/app/views/lato_view/icons/_download.svg +1 -0
- data/app/views/lato_view/icons/_file.svg +1 -0
- data/app/views/lato_view/icons/_googleplus.svg +1 -0
- data/app/views/lato_view/icons/_home.svg +1 -0
- data/app/views/lato_view/icons/_info.svg +1 -0
- data/app/views/lato_view/icons/_instagram.svg +1 -0
- data/app/views/lato_view/icons/_latologo.svg +1 -0
- data/app/views/lato_view/icons/_linkedin.svg +1 -0
- data/app/views/lato_view/icons/_list.svg +1 -0
- data/app/views/lato_view/icons/_magni-glass.svg +1 -0
- data/app/views/lato_view/icons/_mail.svg +1 -0
- data/app/views/lato_view/icons/_minus.svg +1 -0
- data/app/views/lato_view/icons/_modify.svg +1 -0
- data/app/views/lato_view/icons/_percentage.svg +1 -0
- data/app/views/lato_view/icons/_plus.svg +1 -0
- data/app/views/lato_view/icons/_power.svg +1 -0
- data/app/views/lato_view/icons/_settings.svg +1 -0
- data/app/views/lato_view/icons/_sweet.svg +1 -0
- data/app/views/lato_view/icons/_trash.svg +1 -0
- data/app/views/lato_view/icons/_twitter.svg +1 -0
- data/app/views/lato_view/icons/_upload.svg +1 -0
- data/app/views/lato_view/icons/_user.svg +1 -0
- data/app/views/lato_view/icons/_users.svg +1 -0
- data/app/views/lato_view/icons/_warning.svg +1 -0
- data/app/views/lato_view/icons/_web.svg +1 -0
- data/app/views/lato_view/layout/_flash.html.erb +5 -0
- data/app/views/lato_view/layout/_header.html.erb +31 -0
- data/app/views/lato_view/layout/_sidebar.html.erb +28 -0
- data/app/views/lato_view/layout/_strings.html.erb +8 -0
- data/app/views/layouts/lato_layout.html.erb +81 -0
- data/config/example.yml +19 -0
- data/config/initializers/assets.rb +5 -0
- data/config/initializers/init.rb +5 -0
- data/config/initializers/lists.rb +34 -0
- data/config/initializers/ram.rb +23 -0
- data/config/routes.rb +9 -0
- data/lib/lato_view/concepts.rb +19 -0
- data/lib/lato_view/engine.rb +23 -0
- data/lib/lato_view/interface/assets.rb +90 -0
- data/lib/lato_view/interface/images.rb +69 -0
- data/lib/lato_view/interface/navigation.rb +17 -0
- data/lib/lato_view/interface/themes.rb +37 -0
- data/lib/lato_view/interface.rb +19 -0
- data/lib/lato_view.rb +20 -0
- data/lib/tasks/lato_starter_tasks.rake +11 -0
- data/test/controllers/lato_view/api/v1/api_controller_test.rb +9 -0
- data/test/controllers/lato_view/application_controller_test.rb +9 -0
- data/test/controllers/lato_view/back/back_controller_test.rb +9 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config/application.rb +25 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/integration/navigation_test.rb +8 -0
- data/test/lato_view_test.rb +7 -0
- data/test/test_helper.rb +21 -0
- metadata +453 -0
@@ -0,0 +1,755 @@
|
|
1
|
+
$light-color: #ecf0f1;
|
2
|
+
$dark-color: #222;
|
3
|
+
$modal-submit-color: #2ecc71;
|
4
|
+
$modal-reset-color: #EEE;
|
5
|
+
$transition-duration: 150ms;
|
6
|
+
|
7
|
+
#trumbowyg-icons {
|
8
|
+
overflow: hidden;
|
9
|
+
visibility: hidden;
|
10
|
+
height: 0;
|
11
|
+
width: 0;
|
12
|
+
|
13
|
+
svg {
|
14
|
+
height: 0;
|
15
|
+
width: 0;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.trumbowyg-box {
|
20
|
+
*, *::before, *::after {
|
21
|
+
box-sizing: border-box;
|
22
|
+
}
|
23
|
+
|
24
|
+
svg {
|
25
|
+
width: 17px;
|
26
|
+
height: 100%;
|
27
|
+
fill: $dark-color;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.trumbowyg-box, .trumbowyg-editor {
|
32
|
+
display: block;
|
33
|
+
position: relative;
|
34
|
+
border: 1px solid #DDD;
|
35
|
+
width: 96%;
|
36
|
+
min-height: 300px;
|
37
|
+
margin: 17px auto;
|
38
|
+
}
|
39
|
+
|
40
|
+
.trumbowyg-box .trumbowyg-editor {
|
41
|
+
margin: 0 auto;
|
42
|
+
}
|
43
|
+
|
44
|
+
.trumbowyg-box.trumbowyg-fullscreen {
|
45
|
+
position: fixed;
|
46
|
+
top: 0; left: 0;
|
47
|
+
background: #FEFEFE;
|
48
|
+
border: none !important;
|
49
|
+
height: 100%;
|
50
|
+
width: 100%;
|
51
|
+
max-height: none;
|
52
|
+
}
|
53
|
+
|
54
|
+
.trumbowyg-editor,
|
55
|
+
.trumbowyg-textarea {
|
56
|
+
position: relative;
|
57
|
+
box-sizing: border-box;
|
58
|
+
padding: 20px;
|
59
|
+
min-height: 300px;
|
60
|
+
width: 100%;
|
61
|
+
border-style: none;
|
62
|
+
resize: none;
|
63
|
+
outline: none;
|
64
|
+
overflow: auto;
|
65
|
+
}
|
66
|
+
|
67
|
+
.trumbowyg-box-blur .trumbowyg-editor {
|
68
|
+
*,
|
69
|
+
&::before {
|
70
|
+
color: transparent !important;
|
71
|
+
text-shadow: 0 0 7px #333;
|
72
|
+
|
73
|
+
@media screen and (min-width: 0\0) {
|
74
|
+
color: rgba(200, 200, 200, 0.6) !important;
|
75
|
+
}
|
76
|
+
@supports (-ms-accelerator:true) {
|
77
|
+
color: rgba(200, 200, 200, 0.6) !important;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
img,
|
81
|
+
hr {
|
82
|
+
opacity: 0.2;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.trumbowyg-textarea {
|
87
|
+
position: relative;
|
88
|
+
display: block;
|
89
|
+
overflow: auto;
|
90
|
+
border: none;
|
91
|
+
white-space: normal;
|
92
|
+
font-size: 14px;
|
93
|
+
font-family: "Inconsolata", "Consolas", "Courier", "Courier New", sans-serif;
|
94
|
+
line-height: 18px;
|
95
|
+
}
|
96
|
+
|
97
|
+
.trumbowyg-box.trumbowyg-editor-visible {
|
98
|
+
.trumbowyg-textarea {
|
99
|
+
height: 1px !important;
|
100
|
+
width: 25%;
|
101
|
+
min-height: 0 !important;
|
102
|
+
padding: 0 !important;
|
103
|
+
background: none;
|
104
|
+
opacity: 0;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
.trumbowyg-box.trumbowyg-editor-hidden {
|
109
|
+
.trumbowyg-textarea {
|
110
|
+
display: block;
|
111
|
+
}
|
112
|
+
.trumbowyg-editor {
|
113
|
+
display: none;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
.trumbowyg-editor[contenteditable=true]:empty::before {
|
118
|
+
content: attr(placeholder);
|
119
|
+
color: #999;
|
120
|
+
pointer-events: none;
|
121
|
+
}
|
122
|
+
|
123
|
+
.trumbowyg-button-pane {
|
124
|
+
display: flex;
|
125
|
+
flex-flow: row wrap;
|
126
|
+
width: 100%;
|
127
|
+
min-height: 36px;
|
128
|
+
background: $light-color;
|
129
|
+
border-bottom: 1px solid darken($light-color, 7%);
|
130
|
+
margin: 0;
|
131
|
+
padding: 0 5px;
|
132
|
+
list-style-type: none;
|
133
|
+
line-height: 10px;
|
134
|
+
backface-visibility: hidden;
|
135
|
+
|
136
|
+
&::after {
|
137
|
+
content: " ";
|
138
|
+
display: block;
|
139
|
+
position: absolute;
|
140
|
+
top: 36px;
|
141
|
+
left: 0;
|
142
|
+
right: 0;
|
143
|
+
width: 100%;
|
144
|
+
height: 1px;
|
145
|
+
background: darken($light-color, 7%);
|
146
|
+
}
|
147
|
+
|
148
|
+
.trumbowyg-button-group {
|
149
|
+
display: flex;
|
150
|
+
flex-flow: row wrap;
|
151
|
+
|
152
|
+
.trumbowyg-fullscreen-button svg {
|
153
|
+
color: transparent;
|
154
|
+
}
|
155
|
+
|
156
|
+
&:not(:empty) + .trumbowyg-button-group::before {
|
157
|
+
content: " ";
|
158
|
+
display: block;
|
159
|
+
width: 1px;
|
160
|
+
background: darken($light-color, 7%);
|
161
|
+
margin: 0 5px;
|
162
|
+
height: 35px;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
button {
|
167
|
+
display: block;
|
168
|
+
position: relative;
|
169
|
+
width: 35px;
|
170
|
+
height: 35px;
|
171
|
+
padding: 1px 6px !important;
|
172
|
+
margin-bottom: 1px;
|
173
|
+
overflow: hidden;
|
174
|
+
border: none;
|
175
|
+
cursor: pointer;
|
176
|
+
background: none;
|
177
|
+
transition: background-color $transition-duration, opacity $transition-duration;
|
178
|
+
}
|
179
|
+
|
180
|
+
&.trumbowyg-disable {
|
181
|
+
button:not(.trumbowyg-not-disable):not(.trumbowyg-active) {
|
182
|
+
opacity: 0.2;
|
183
|
+
cursor: default;
|
184
|
+
}
|
185
|
+
.trumbowyg-button-group::before {
|
186
|
+
background: darken($light-color, 3%);
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
button:not(.trumbowyg-disable):hover,
|
191
|
+
button:not(.trumbowyg-disable):focus,
|
192
|
+
button.trumbowyg-active {
|
193
|
+
background-color: #FFF;
|
194
|
+
outline: none;
|
195
|
+
}
|
196
|
+
|
197
|
+
.trumbowyg-open-dropdown::after {
|
198
|
+
display: block;
|
199
|
+
content: " ";
|
200
|
+
position: absolute;
|
201
|
+
top: 25px;
|
202
|
+
right: 3px;
|
203
|
+
height: 0;
|
204
|
+
width: 0;
|
205
|
+
border: 3px solid transparent;
|
206
|
+
border-top-color: #555;
|
207
|
+
}
|
208
|
+
|
209
|
+
.trumbowyg-right {
|
210
|
+
margin-left: auto;
|
211
|
+
|
212
|
+
&::before {
|
213
|
+
display: none !important;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
.trumbowyg-dropdown {
|
219
|
+
width: 200px;
|
220
|
+
border: 1px solid $light-color;
|
221
|
+
padding: 5px 0;
|
222
|
+
border-top: none;
|
223
|
+
background: #FFF;
|
224
|
+
margin-left: -1px;
|
225
|
+
box-shadow: rgba(0, 0, 0, .1) 0 2px 3px;
|
226
|
+
|
227
|
+
button {
|
228
|
+
display: block;
|
229
|
+
width: 100%;
|
230
|
+
height: 35px;
|
231
|
+
line-height: 35px;
|
232
|
+
text-decoration: none;
|
233
|
+
background: #FFF;
|
234
|
+
padding: 0 10px;
|
235
|
+
color: #333 !important;
|
236
|
+
border: none;
|
237
|
+
cursor: pointer;
|
238
|
+
text-align: left;
|
239
|
+
font-size: 15px;
|
240
|
+
transition: all $transition-duration;
|
241
|
+
|
242
|
+
&:hover,
|
243
|
+
&:focus {
|
244
|
+
background: $light-color;
|
245
|
+
}
|
246
|
+
|
247
|
+
svg {
|
248
|
+
float: left;
|
249
|
+
margin-right: 14px;
|
250
|
+
}
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
/* Modal box */
|
255
|
+
.trumbowyg-modal {
|
256
|
+
position: absolute;
|
257
|
+
top: 0;
|
258
|
+
left: 50%;
|
259
|
+
transform: translateX(-50%);
|
260
|
+
max-width: 520px;
|
261
|
+
width: 100%;
|
262
|
+
height: 350px;
|
263
|
+
z-index: 11;
|
264
|
+
overflow: hidden;
|
265
|
+
backface-visibility: hidden;
|
266
|
+
}
|
267
|
+
|
268
|
+
.trumbowyg-modal-box {
|
269
|
+
position: absolute;
|
270
|
+
top: 0;
|
271
|
+
left: 50%;
|
272
|
+
transform: translateX(-50%);
|
273
|
+
max-width: 500px;
|
274
|
+
width: calc(100% - 20px);
|
275
|
+
padding-bottom: 45px;
|
276
|
+
z-index: 1;
|
277
|
+
background-color: #FFF;
|
278
|
+
text-align: center;
|
279
|
+
font-size: 14px;
|
280
|
+
box-shadow: rgba(0, 0, 0, .2) 0 2px 3px;
|
281
|
+
backface-visibility: hidden;
|
282
|
+
|
283
|
+
.trumbowyg-modal-title {
|
284
|
+
font-size: 24px;
|
285
|
+
font-weight: bold;
|
286
|
+
margin: 0 0 20px;
|
287
|
+
padding: 15px 0 13px;
|
288
|
+
display: block;
|
289
|
+
border-bottom: 1px solid #EEE;
|
290
|
+
color: #333;
|
291
|
+
background: lighten($light-color, 5%);
|
292
|
+
}
|
293
|
+
|
294
|
+
.trumbowyg-progress {
|
295
|
+
width: 100%;
|
296
|
+
height: 3px;
|
297
|
+
position: absolute;
|
298
|
+
top: 58px;
|
299
|
+
|
300
|
+
.trumbowyg-progress-bar {
|
301
|
+
background: #2BC06A;
|
302
|
+
height: 100%;
|
303
|
+
transition: width $transition-duration linear;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
|
307
|
+
label {
|
308
|
+
display: block;
|
309
|
+
position: relative;
|
310
|
+
margin: 15px 12px;
|
311
|
+
height: 27px;
|
312
|
+
line-height: 27px;
|
313
|
+
overflow: hidden;
|
314
|
+
|
315
|
+
.trumbowyg-input-infos {
|
316
|
+
display: block;
|
317
|
+
text-align: left;
|
318
|
+
height: 25px;
|
319
|
+
line-height: 25px;
|
320
|
+
transition: all 150ms;
|
321
|
+
|
322
|
+
span {
|
323
|
+
display: block;
|
324
|
+
color: darken($light-color, 45%);
|
325
|
+
background-color: lighten($light-color, 5%);
|
326
|
+
border: 1px solid #DEDEDE;
|
327
|
+
padding: 0 7px;
|
328
|
+
width: 150px;
|
329
|
+
}
|
330
|
+
span.trumbowyg-msg-error {
|
331
|
+
color: #e74c3c;
|
332
|
+
}
|
333
|
+
}
|
334
|
+
|
335
|
+
&.trumbowyg-input-error {
|
336
|
+
input,
|
337
|
+
textarea {
|
338
|
+
border: 1px solid #e74c3c;
|
339
|
+
}
|
340
|
+
|
341
|
+
.trumbowyg-input-infos {
|
342
|
+
margin-top: -27px;
|
343
|
+
}
|
344
|
+
}
|
345
|
+
|
346
|
+
input {
|
347
|
+
position: absolute;
|
348
|
+
top: 0;
|
349
|
+
right: 0;
|
350
|
+
height: 27px;
|
351
|
+
line-height: 27px;
|
352
|
+
border: 1px solid #DEDEDE;
|
353
|
+
background: #fff;
|
354
|
+
font-size: 14px;
|
355
|
+
max-width: 330px;
|
356
|
+
width: 70%;
|
357
|
+
padding: 0 7px;
|
358
|
+
transition: all $transition-duration;
|
359
|
+
|
360
|
+
&:hover,
|
361
|
+
&:focus {
|
362
|
+
outline: none;
|
363
|
+
border: 1px solid #95a5a6;
|
364
|
+
}
|
365
|
+
&:focus {
|
366
|
+
background: lighten($light-color, 5%);
|
367
|
+
}
|
368
|
+
}
|
369
|
+
}
|
370
|
+
|
371
|
+
.error {
|
372
|
+
margin-top: 25px;
|
373
|
+
display: block;
|
374
|
+
color: red;
|
375
|
+
}
|
376
|
+
|
377
|
+
.trumbowyg-modal-button {
|
378
|
+
position: absolute;
|
379
|
+
bottom: 10px;
|
380
|
+
right: 0;
|
381
|
+
text-decoration: none;
|
382
|
+
color: #FFF;
|
383
|
+
display: block;
|
384
|
+
width: 100px;
|
385
|
+
height: 35px;
|
386
|
+
line-height: 33px;
|
387
|
+
margin: 0 10px;
|
388
|
+
background-color: #333;
|
389
|
+
border: none;
|
390
|
+
cursor: pointer;
|
391
|
+
font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif;
|
392
|
+
font-size: 16px;
|
393
|
+
transition: all $transition-duration;
|
394
|
+
|
395
|
+
&.trumbowyg-modal-submit {
|
396
|
+
right: 110px;
|
397
|
+
background: darken($modal-submit-color, 3%);
|
398
|
+
|
399
|
+
&:hover,
|
400
|
+
&:focus {
|
401
|
+
background: lighten($modal-submit-color, 5%);
|
402
|
+
outline: none;
|
403
|
+
}
|
404
|
+
&:active {
|
405
|
+
background: darken($modal-submit-color, 10%);
|
406
|
+
}
|
407
|
+
}
|
408
|
+
|
409
|
+
&.trumbowyg-modal-reset {
|
410
|
+
color: #555;
|
411
|
+
background: darken($modal-reset-color, 3%);
|
412
|
+
|
413
|
+
&:hover,
|
414
|
+
&:focus {
|
415
|
+
background: lighten($modal-reset-color, 5%);
|
416
|
+
outline: none;
|
417
|
+
}
|
418
|
+
&:active {
|
419
|
+
background: darken($modal-reset-color, 10%);
|
420
|
+
}
|
421
|
+
}
|
422
|
+
}
|
423
|
+
}
|
424
|
+
|
425
|
+
.trumbowyg-overlay {
|
426
|
+
position: absolute;
|
427
|
+
background-color: rgba(255, 255, 255, 0.5);
|
428
|
+
width: 100%;
|
429
|
+
left: 0;
|
430
|
+
display: none;
|
431
|
+
z-index: 10;
|
432
|
+
}
|
433
|
+
|
434
|
+
/**
|
435
|
+
* Fullscreen
|
436
|
+
*/
|
437
|
+
body.trumbowyg-body-fullscreen {
|
438
|
+
overflow: hidden;
|
439
|
+
}
|
440
|
+
|
441
|
+
.trumbowyg-fullscreen {
|
442
|
+
position: fixed;
|
443
|
+
top: 0;
|
444
|
+
left: 0;
|
445
|
+
width: 100%;
|
446
|
+
height: 100%;
|
447
|
+
margin: 0;
|
448
|
+
padding: 0;
|
449
|
+
z-index: 99999;
|
450
|
+
|
451
|
+
&.trumbowyg-box,
|
452
|
+
.trumbowyg-editor {
|
453
|
+
border: none;
|
454
|
+
}
|
455
|
+
.trumbowyg-editor,
|
456
|
+
.trumbowyg-textarea {
|
457
|
+
height: calc(100% - 37px) !important;
|
458
|
+
overflow: auto;
|
459
|
+
}
|
460
|
+
.trumbowyg-overlay {
|
461
|
+
height: 100% !important;
|
462
|
+
}
|
463
|
+
.trumbowyg-button-group .trumbowyg-fullscreen-button svg {
|
464
|
+
color: $dark-color;
|
465
|
+
fill: transparent;
|
466
|
+
}
|
467
|
+
}
|
468
|
+
|
469
|
+
.trumbowyg-editor {
|
470
|
+
object,
|
471
|
+
embed,
|
472
|
+
video,
|
473
|
+
img {
|
474
|
+
max-width: 100%;
|
475
|
+
}
|
476
|
+
video,
|
477
|
+
img {
|
478
|
+
height: auto;
|
479
|
+
}
|
480
|
+
img {
|
481
|
+
cursor: move;
|
482
|
+
}
|
483
|
+
|
484
|
+
/*
|
485
|
+
* lset for resetCss option
|
486
|
+
*/
|
487
|
+
&.trumbowyg-reset-css {
|
488
|
+
background: #FEFEFE !important;
|
489
|
+
font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif !important;
|
490
|
+
font-size: 14px !important;
|
491
|
+
line-height: 1.45em !important;
|
492
|
+
white-space: normal !important;
|
493
|
+
color: #333;
|
494
|
+
|
495
|
+
a {
|
496
|
+
color: #15c !important;
|
497
|
+
text-decoration: underline !important;
|
498
|
+
}
|
499
|
+
|
500
|
+
div,
|
501
|
+
p,
|
502
|
+
ul,
|
503
|
+
ol,
|
504
|
+
blockquote {
|
505
|
+
box-shadow: none !important;
|
506
|
+
background: none !important;
|
507
|
+
margin: 0 !important;
|
508
|
+
margin-bottom: 15px !important;
|
509
|
+
line-height: 1.4em !important;
|
510
|
+
font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif !important;
|
511
|
+
font-size: 14px !important;
|
512
|
+
border: none;
|
513
|
+
}
|
514
|
+
iframe,
|
515
|
+
object,
|
516
|
+
hr {
|
517
|
+
margin-bottom: 15px !important;
|
518
|
+
}
|
519
|
+
blockquote {
|
520
|
+
margin-left: 32px !important;
|
521
|
+
font-style: italic !important;
|
522
|
+
color: #555;
|
523
|
+
}
|
524
|
+
ul,
|
525
|
+
ol {
|
526
|
+
padding-left: 20px !important;
|
527
|
+
}
|
528
|
+
ul ul,
|
529
|
+
ol ol,
|
530
|
+
ul ol,
|
531
|
+
ol ul {
|
532
|
+
border: none;
|
533
|
+
margin: 2px !important;
|
534
|
+
padding: 0 !important;
|
535
|
+
padding-left: 24px !important;
|
536
|
+
}
|
537
|
+
hr {
|
538
|
+
display: block;
|
539
|
+
height: 1px;
|
540
|
+
border: none;
|
541
|
+
border-top: 1px solid #CCC;
|
542
|
+
}
|
543
|
+
|
544
|
+
h1,
|
545
|
+
h2,
|
546
|
+
h3,
|
547
|
+
h4 {
|
548
|
+
color: #111;
|
549
|
+
background: none;
|
550
|
+
margin: 0 !important;
|
551
|
+
padding: 0 !important;
|
552
|
+
font-weight: bold;
|
553
|
+
}
|
554
|
+
|
555
|
+
h1 {
|
556
|
+
font-size: 32px !important;
|
557
|
+
line-height: 38px !important;
|
558
|
+
margin-bottom: 20px !important;
|
559
|
+
}
|
560
|
+
h2 {
|
561
|
+
font-size: 26px !important;
|
562
|
+
line-height: 34px !important;
|
563
|
+
margin-bottom: 15px !important;
|
564
|
+
}
|
565
|
+
h3 {
|
566
|
+
font-size: 22px !important;
|
567
|
+
line-height: 28px !important;
|
568
|
+
margin-bottom: 7px !important;
|
569
|
+
}
|
570
|
+
h4 {
|
571
|
+
font-size: 16px !important;
|
572
|
+
line-height: 22px !important;
|
573
|
+
margin-bottom: 7px !important;
|
574
|
+
}
|
575
|
+
}
|
576
|
+
}
|
577
|
+
|
578
|
+
/*
|
579
|
+
* Dark theme
|
580
|
+
*/
|
581
|
+
.trumbowyg-dark {
|
582
|
+
.trumbowyg-textarea {
|
583
|
+
background: #111;
|
584
|
+
color: #ddd;
|
585
|
+
}
|
586
|
+
.trumbowyg-box {
|
587
|
+
border: 1px solid lighten($dark-color, 7%);
|
588
|
+
|
589
|
+
&.trumbowyg-fullscreen {
|
590
|
+
background: #111;
|
591
|
+
}
|
592
|
+
&.trumbowyg-box-blur .trumbowyg-editor {
|
593
|
+
*,
|
594
|
+
&::before {
|
595
|
+
text-shadow: 0 0 7px #ccc;
|
596
|
+
|
597
|
+
@media screen and (min-width: 0\0) {
|
598
|
+
color: rgba(20, 20, 20, 0.6) !important;
|
599
|
+
}
|
600
|
+
@supports (-ms-accelerator:true) {
|
601
|
+
color: rgba(20, 20, 20, 0.6) !important;
|
602
|
+
}
|
603
|
+
}
|
604
|
+
}
|
605
|
+
|
606
|
+
svg {
|
607
|
+
fill: $light-color;
|
608
|
+
color: $light-color;
|
609
|
+
}
|
610
|
+
}
|
611
|
+
.trumbowyg-button-pane {
|
612
|
+
background-color: $dark-color;
|
613
|
+
border-bottom-color: lighten($dark-color, 7%);
|
614
|
+
|
615
|
+
&::after {
|
616
|
+
background: lighten($dark-color, 7%);
|
617
|
+
}
|
618
|
+
|
619
|
+
.trumbowyg-button-group:not(:empty) {
|
620
|
+
&::before {
|
621
|
+
background-color: lighten($dark-color, 7%);
|
622
|
+
}
|
623
|
+
.trumbowyg-fullscreen-button svg {
|
624
|
+
color: transparent;
|
625
|
+
}
|
626
|
+
}
|
627
|
+
|
628
|
+
&.trumbowyg-disable {
|
629
|
+
.trumbowyg-button-group::before {
|
630
|
+
background-color: lighten($dark-color, 3%);
|
631
|
+
}
|
632
|
+
}
|
633
|
+
|
634
|
+
button:not(.trumbowyg-disable):hover,
|
635
|
+
button:not(.trumbowyg-disable):focus,
|
636
|
+
button.trumbowyg-active {
|
637
|
+
background-color: #333;
|
638
|
+
}
|
639
|
+
|
640
|
+
.trumbowyg-open-dropdown::after {
|
641
|
+
border-top-color: #fff;
|
642
|
+
}
|
643
|
+
}
|
644
|
+
.trumbowyg-fullscreen {
|
645
|
+
.trumbowyg-button-group .trumbowyg-fullscreen-button svg {
|
646
|
+
color: $light-color;
|
647
|
+
fill: transparent;
|
648
|
+
}
|
649
|
+
}
|
650
|
+
|
651
|
+
.trumbowyg-dropdown {
|
652
|
+
border-color: $dark-color;
|
653
|
+
background: #333;
|
654
|
+
box-shadow: rgba(0, 0, 0, .3) 0 2px 3px;
|
655
|
+
|
656
|
+
button {
|
657
|
+
background: #333;
|
658
|
+
color: #fff !important;
|
659
|
+
|
660
|
+
&:hover,
|
661
|
+
&:focus {
|
662
|
+
background: $dark-color;
|
663
|
+
}
|
664
|
+
}
|
665
|
+
}
|
666
|
+
|
667
|
+
// Modal box
|
668
|
+
.trumbowyg-modal-box {
|
669
|
+
background-color: $dark-color;
|
670
|
+
|
671
|
+
.trumbowyg-modal-title {
|
672
|
+
border-bottom: 1px solid #555;
|
673
|
+
color: #fff;
|
674
|
+
background: lighten($dark-color, 10%);
|
675
|
+
}
|
676
|
+
|
677
|
+
label {
|
678
|
+
display: block;
|
679
|
+
position: relative;
|
680
|
+
margin: 15px 12px;
|
681
|
+
height: 27px;
|
682
|
+
line-height: 27px;
|
683
|
+
overflow: hidden;
|
684
|
+
|
685
|
+
.trumbowyg-input-infos {
|
686
|
+
span {
|
687
|
+
color: #eee;
|
688
|
+
background-color: lighten($dark-color, 5%);
|
689
|
+
border-color: $dark-color;
|
690
|
+
}
|
691
|
+
span.trumbowyg-msg-error {
|
692
|
+
color: #e74c3c;
|
693
|
+
}
|
694
|
+
}
|
695
|
+
|
696
|
+
&.trumbowyg-input-error {
|
697
|
+
input,
|
698
|
+
textarea {
|
699
|
+
border-color: #e74c3c;
|
700
|
+
}
|
701
|
+
}
|
702
|
+
|
703
|
+
input {
|
704
|
+
border-color: $dark-color;
|
705
|
+
color: #eee;
|
706
|
+
background: #333;
|
707
|
+
|
708
|
+
&:hover,
|
709
|
+
&:focus {
|
710
|
+
border-color: lighten($dark-color, 25%);
|
711
|
+
}
|
712
|
+
&:focus {
|
713
|
+
background-color: lighten($dark-color, 5%);
|
714
|
+
}
|
715
|
+
}
|
716
|
+
}
|
717
|
+
|
718
|
+
.trumbowyg-modal-button {
|
719
|
+
&.trumbowyg-modal-submit {
|
720
|
+
background: darken($modal-submit-color, 20%);
|
721
|
+
|
722
|
+
&:hover,
|
723
|
+
&:focus {
|
724
|
+
background: darken($modal-submit-color, 10%);
|
725
|
+
}
|
726
|
+
&:active {
|
727
|
+
background: darken($modal-submit-color, 25%);
|
728
|
+
}
|
729
|
+
}
|
730
|
+
&.trumbowyg-modal-reset {
|
731
|
+
background: #333;
|
732
|
+
color: #ccc;
|
733
|
+
|
734
|
+
&:hover,
|
735
|
+
&:focus {
|
736
|
+
background: #444;
|
737
|
+
}
|
738
|
+
&:active {
|
739
|
+
background: #111;
|
740
|
+
}
|
741
|
+
}
|
742
|
+
}
|
743
|
+
}
|
744
|
+
.trumbowyg-overlay {
|
745
|
+
background-color: rgba(15, 15, 15, 0.6);
|
746
|
+
}
|
747
|
+
}
|
748
|
+
|
749
|
+
|
750
|
+
// Custom
|
751
|
+
.trumbowyg-box, .trumbowyg-editor {
|
752
|
+
width: 100%;
|
753
|
+
min-height: 100px;
|
754
|
+
max-height: 200px;
|
755
|
+
}
|