megatron 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +43 -2
- data/app/assets/javascripts/megatron/form.js +36 -0
- data/app/assets/javascripts/megatron/index.js +93 -0
- data/app/assets/javascripts/megatron/link.js +58 -0
- data/app/assets/javascripts/megatron/utils/auto-navigate.js +24 -0
- data/app/assets/javascripts/megatron/utils/form-notify.js +39 -0
- data/app/assets/javascripts/megatron/utils/index.js +112 -0
- data/app/assets/javascripts/megatron/utils/messages.js +97 -0
- data/app/assets/javascripts/megatron/utils/time/date-to-html.js +59 -0
- data/app/assets/javascripts/megatron/utils/time/time-switch.js +87 -0
- data/app/assets/javascripts/megatron/utils/time/timeago.js +95 -0
- data/app/assets/javascripts/megatron/utils/toggler.js +163 -0
- data/app/assets/stylesheets/_example.scss +76 -0
- data/app/assets/stylesheets/_grid.scss +41 -0
- data/app/assets/stylesheets/_typography.scss +38 -0
- data/app/assets/stylesheets/application.scss +19 -0
- data/app/assets/stylesheets/megatron/error-pages.scss +164 -0
- data/app/assets/stylesheets/megatron/error-pages/_animations.scss +96 -0
- data/app/assets/stylesheets/megatron/error-pages/_csi.scss +41 -0
- data/app/assets/stylesheets/megatron/error-pages/_waves.scss +36 -0
- data/app/assets/stylesheets/megatron/megatron.scss +3 -0
- data/app/assets/stylesheets/megatron/modules/_crop-height.scss +5 -0
- data/app/assets/stylesheets/megatron/modules/_index.scss +22 -0
- data/app/assets/stylesheets/megatron/modules/_logo.scss +67 -0
- data/app/assets/stylesheets/megatron/modules/_new-tag.scss +11 -0
- data/app/assets/stylesheets/megatron/modules/_progress.scss +80 -0
- data/app/assets/stylesheets/megatron/modules/app/_animation-classes.scss +3 -0
- data/app/assets/stylesheets/megatron/modules/app/_animations.scss +62 -0
- data/app/assets/stylesheets/megatron/modules/app/_index.scss +5 -0
- data/app/assets/stylesheets/megatron/modules/app/_layout.scss +261 -0
- data/app/assets/stylesheets/megatron/modules/app/_sizes.scss +28 -0
- data/app/assets/stylesheets/megatron/modules/app/_typography.scss +111 -0
- data/app/assets/stylesheets/megatron/modules/box/_base.scss +94 -0
- data/app/assets/stylesheets/megatron/modules/box/_color-box.scss +33 -0
- data/app/assets/stylesheets/megatron/modules/box/_deployment_box.scss +37 -0
- data/app/assets/stylesheets/megatron/modules/box/_index.scss +4 -0
- data/app/assets/stylesheets/megatron/modules/box/_placeholder.scss +6 -0
- data/app/assets/stylesheets/megatron/modules/buttons/_animations.scss +35 -0
- data/app/assets/stylesheets/megatron/modules/buttons/_buttons.scss +266 -0
- data/app/assets/stylesheets/megatron/modules/buttons/_index.scss +4 -0
- data/app/assets/stylesheets/megatron/modules/buttons/_mixins.scss +108 -0
- data/app/assets/stylesheets/megatron/modules/buttons/_pills.scss +44 -0
- data/app/assets/stylesheets/megatron/modules/code/_codemirror.scss +98 -0
- data/app/assets/stylesheets/megatron/modules/code/_highlighted.scss +65 -0
- data/app/assets/stylesheets/megatron/modules/code/_index.scss +3 -0
- data/app/assets/stylesheets/megatron/modules/code/_syntax.scss +18 -0
- data/app/assets/stylesheets/megatron/modules/core/_colored-items.scss +22 -0
- data/app/assets/stylesheets/megatron/modules/core/_colors.scss +163 -0
- data/app/assets/stylesheets/megatron/modules/core/_index.scss +3 -0
- data/app/assets/stylesheets/megatron/modules/core/_mixins.scss +262 -0
- data/app/assets/stylesheets/megatron/modules/core/_vars.scss +30 -0
- data/app/assets/stylesheets/megatron/modules/core/_z-index.scss +3 -0
- data/app/assets/stylesheets/megatron/modules/dialog/_animations.scss +48 -0
- data/app/assets/stylesheets/megatron/modules/dialog/_dialog.scss +81 -0
- data/app/assets/stylesheets/megatron/modules/dialog/_index.scss +2 -0
- data/app/assets/stylesheets/megatron/modules/forms/_base.scss +31 -0
- data/app/assets/stylesheets/megatron/modules/forms/_check-radio.scss +99 -0
- data/app/assets/stylesheets/megatron/modules/forms/_check-switch.scss +88 -0
- data/app/assets/stylesheets/megatron/modules/forms/_footer.scss +13 -0
- data/app/assets/stylesheets/megatron/modules/forms/_index.scss +10 -0
- data/app/assets/stylesheets/megatron/modules/forms/_login.scss +92 -0
- data/app/assets/stylesheets/megatron/modules/forms/_radio-nav.scss +62 -0
- data/app/assets/stylesheets/megatron/modules/forms/_select.scss +37 -0
- data/app/assets/stylesheets/megatron/modules/forms/_stacked-form.scss +29 -0
- data/app/assets/stylesheets/megatron/modules/forms/_table-form.scss +53 -0
- data/app/assets/stylesheets/megatron/modules/forms/_text-input.scss +118 -0
- data/app/assets/stylesheets/megatron/modules/grids/_alignment.scss +39 -0
- data/app/assets/stylesheets/megatron/modules/grids/_grid.scss +144 -0
- data/app/assets/stylesheets/megatron/modules/grids/_index.scss +2 -0
- data/app/assets/stylesheets/megatron/modules/headers/_actions.scss +10 -0
- data/app/assets/stylesheets/megatron/modules/headers/_base.scss +67 -0
- data/app/assets/stylesheets/megatron/modules/headers/_index.scss +4 -0
- data/app/assets/stylesheets/megatron/modules/headers/_meta.scss +10 -0
- data/app/assets/stylesheets/megatron/modules/headers/_site-header.scss +8 -0
- data/app/assets/stylesheets/megatron/modules/lib/_codemirror.scss +301 -0
- data/app/assets/stylesheets/megatron/modules/lists/_base.scss +13 -0
- data/app/assets/stylesheets/megatron/modules/lists/_box-list.scss +53 -0
- data/app/assets/stylesheets/megatron/modules/lists/_index.scss +2 -0
- data/app/assets/stylesheets/megatron/modules/messages/_index.scss +3 -0
- data/app/assets/stylesheets/megatron/modules/messages/_notice.scss +57 -0
- data/app/assets/stylesheets/megatron/modules/messages/_notifications.scss +126 -0
- data/app/assets/stylesheets/megatron/modules/messages/_pop-message.scss +157 -0
- data/app/assets/stylesheets/megatron/modules/nav/_auto-navigate.scss +7 -0
- data/app/assets/stylesheets/megatron/modules/nav/_breadcrumbs.scss +35 -0
- data/app/assets/stylesheets/megatron/modules/nav/_index.scss +8 -0
- data/app/assets/stylesheets/megatron/modules/nav/_main-sidebar.scss +21 -0
- data/app/assets/stylesheets/megatron/modules/nav/_mixins.scss +53 -0
- data/app/assets/stylesheets/megatron/modules/nav/_nav-toggle.scss +61 -0
- data/app/assets/stylesheets/megatron/modules/nav/_primary-nav.scss +120 -0
- data/app/assets/stylesheets/megatron/modules/nav/_secondary-nav.scss +105 -0
- data/app/assets/stylesheets/megatron/modules/nav/_tabs.scss +87 -0
- data/app/assets/stylesheets/megatron/modules/roboticons/_font.scss +62 -0
- data/app/assets/stylesheets/megatron/modules/roboticons/_icons.scss +219 -0
- data/app/assets/stylesheets/megatron/modules/roboticons/_index.scss +2 -0
- data/app/assets/stylesheets/megatron/modules/slider/_base.scss +49 -0
- data/app/assets/stylesheets/megatron/modules/slider/_index.scss +4 -0
- data/app/assets/stylesheets/megatron/modules/slider/_slider.scss +282 -0
- data/app/assets/stylesheets/megatron/modules/slider/_switch.scss +75 -0
- data/app/assets/stylesheets/megatron/modules/slider/_themes.scss +42 -0
- data/app/assets/stylesheets/megatron/modules/tables/_base.scss +170 -0
- data/app/assets/stylesheets/megatron/modules/tables/_border-table.scss +28 -0
- data/app/assets/stylesheets/megatron/modules/tables/_box-table.scss +36 -0
- data/app/assets/stylesheets/megatron/modules/tables/_columns.scss +8 -0
- data/app/assets/stylesheets/megatron/modules/tables/_doc-table.scss +22 -0
- data/app/assets/stylesheets/megatron/modules/tables/_icon-cell.scss +9 -0
- data/app/assets/stylesheets/megatron/modules/tables/_index.scss +7 -0
- data/app/assets/stylesheets/megatron/modules/tables/_link-cell.scss +8 -0
- data/app/assets/stylesheets/megatron/modules/tables/_responsive-table.scss +13 -0
- data/app/assets/stylesheets/megatron/modules/widgets/_index.scss +1 -0
- data/app/assets/stylesheets/megatron/modules/widgets/_time-switch.scss +24 -0
- data/lib/megatron.rb +1 -1
- data/lib/megatron/engine.rb +5 -0
- data/lib/megatron/version.rb +1 -1
- data/lib/tasks/megatron_tasks.rake +4 -4
- data/public/assets/megatron/megatron-0.0.4.css +3 -0
- data/public/assets/megatron/{megatron-0.0.3.css.map → megatron-0.0.4.css.map} +3 -3
- data/public/assets/megatron/{megatron-0.0.3.js → megatron-0.0.4.js} +1 -1
- data/public/assets/megatron/megatron-0.0.4.map.json +1 -0
- metadata +115 -6
- data/public/assets/megatron/megatron-0.0.3.css +0 -2
- data/public/assets/megatron/megatron-0.0.3.map.json +0 -1
@@ -0,0 +1,262 @@
|
|
1
|
+
@mixin until($size) {
|
2
|
+
$size: $size - 1;
|
3
|
+
@media all and (max-width: $size) { @content; }
|
4
|
+
}
|
5
|
+
|
6
|
+
@mixin at-least($size) {
|
7
|
+
@media all and (min-width: $size) { @content; }
|
8
|
+
}
|
9
|
+
|
10
|
+
@mixin between($small-width, $large-width) {
|
11
|
+
$large-width: $large-width - 1;
|
12
|
+
@media (max-width: $large-width) and (min-width: $small-width) { @content; }
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin destroy-margins {
|
16
|
+
@include destroy-top-margins;
|
17
|
+
@include destroy-bottom-margins;
|
18
|
+
}
|
19
|
+
|
20
|
+
@mixin destroy-top-margins {
|
21
|
+
> :first-child,
|
22
|
+
> :first-child > :first-child,
|
23
|
+
> :first-child > :first-child > :first-child { margin-top: 0; }
|
24
|
+
}
|
25
|
+
|
26
|
+
@mixin destroy-bottom-margins {
|
27
|
+
> :last-child,
|
28
|
+
> :last-child > :last-child,
|
29
|
+
> :last-child > :last-child > :last-child { margin-bottom: 0; }
|
30
|
+
}
|
31
|
+
|
32
|
+
// Remove inner elements' top and bottom margin
|
33
|
+
%destroy-margins {
|
34
|
+
@include destroy-margins;
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
@mixin pad_box($v: $v-pad-box, $h: $h-pad-box) {
|
39
|
+
@if $v {
|
40
|
+
@include v-pad_box($v);
|
41
|
+
}
|
42
|
+
@if $h {
|
43
|
+
@include h-pad_box($h);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
@mixin invert-h-pad($h: $h-pad-box) {
|
48
|
+
margin: {
|
49
|
+
left: - nth($h, 1);
|
50
|
+
right: - nth($h, 1);
|
51
|
+
}
|
52
|
+
@include at-least($medium) {
|
53
|
+
margin: {
|
54
|
+
left: - nth($h, 2);
|
55
|
+
right: - nth($h, 2);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
@mixin v-pad_box($v: $v-pad-box) {
|
61
|
+
padding: {
|
62
|
+
top: nth($v, 1);
|
63
|
+
bottom: nth($v, 1);
|
64
|
+
}
|
65
|
+
@include at-least($medium) {
|
66
|
+
padding: {
|
67
|
+
top: nth($v, 2);
|
68
|
+
bottom: nth($v, 2);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
@mixin h-pad_box($h: $h-pad-box) {
|
74
|
+
padding: {
|
75
|
+
left: nth($h, 1);
|
76
|
+
right: nth($h, 1);
|
77
|
+
}
|
78
|
+
@include at-least($medium) {
|
79
|
+
padding: {
|
80
|
+
left: nth($h, 2);
|
81
|
+
right: nth($h, 2);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
@mixin left-pad_box($h: $h-pad-box) {
|
87
|
+
|
88
|
+
padding-left: nth($h, 1);
|
89
|
+
|
90
|
+
@include at-least($medium) {
|
91
|
+
padding-left: nth($h, 2);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
@mixin right-pad_box($h: $h-pad-box) {
|
96
|
+
|
97
|
+
padding-right: nth($h, 1);
|
98
|
+
|
99
|
+
@include at-least($medium) {
|
100
|
+
padding-right: nth($h, 2);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
@mixin top-pad_box($v: $v-pad-box) {
|
105
|
+
|
106
|
+
padding-top: nth($v, 1);
|
107
|
+
|
108
|
+
@include at-least($medium) {
|
109
|
+
padding-top: nth($v, 2);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
@mixin bottom-pad_box($v: $v-pad-box) {
|
114
|
+
|
115
|
+
padding-bottom: nth($v, 1);
|
116
|
+
|
117
|
+
@include at-least($medium) {
|
118
|
+
padding-bottom: nth($v, 2);
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
@mixin smooth-text {
|
123
|
+
-webkit-font-smoothing: antialiased;
|
124
|
+
-moz-osx-font-smoothing: grayscale;
|
125
|
+
}
|
126
|
+
|
127
|
+
@function icon-selector() {
|
128
|
+
@return "[class*='_icon']:before";
|
129
|
+
}
|
130
|
+
|
131
|
+
@mixin icon {
|
132
|
+
#{icon-selector()} {
|
133
|
+
@content;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
// Returns true if the color is brighter than 50% lightness
|
138
|
+
@function is-bright($color) {
|
139
|
+
@return (lightness($color) > 50%);
|
140
|
+
}
|
141
|
+
|
142
|
+
// Picks the color with the highest contrast
|
143
|
+
@function if-bright($bg, $light: true, $dark: false) {
|
144
|
+
@return if(is-bright($bg), $light, $dark);
|
145
|
+
}
|
146
|
+
|
147
|
+
// Picks the color with the highest contrast
|
148
|
+
@function text-contrast($bg, $dark-text: #000, $light-text: #fff) {
|
149
|
+
@return if-bright($bg, $dark-text, $light-text);
|
150
|
+
}
|
151
|
+
|
152
|
+
|
153
|
+
@mixin triangle($direction, $color, $size) {
|
154
|
+
@if $direction == left {
|
155
|
+
border-bottom: $size solid transparent;
|
156
|
+
border-right: $size solid $color;
|
157
|
+
border-top: $size solid transparent;
|
158
|
+
}
|
159
|
+
@else if $direction == right {
|
160
|
+
border-bottom: $size solid transparent;
|
161
|
+
border-left: $size solid $color;
|
162
|
+
border-top: $size solid transparent;
|
163
|
+
}
|
164
|
+
@else if $direction == up {
|
165
|
+
border-bottom: $size solid $color;
|
166
|
+
border-left: $size solid transparent;
|
167
|
+
border-right: $size solid transparent;
|
168
|
+
}
|
169
|
+
@else if $direction == down {
|
170
|
+
border-right: $size solid transparent;
|
171
|
+
border-left: $size solid transparent;
|
172
|
+
border-top: $size solid $color;
|
173
|
+
}
|
174
|
+
|
175
|
+
height: 0;
|
176
|
+
width: 0;
|
177
|
+
}
|
178
|
+
|
179
|
+
|
180
|
+
@mixin tetromino-animations($name, $x, $y) {
|
181
|
+
@keyframes #{$name}-tetromino-animation-1 {
|
182
|
+
0%, 40% {
|
183
|
+
/* compose logo *//* 1 on 3 *//* L-shape */
|
184
|
+
transform: translate(0,0);
|
185
|
+
} 50% {
|
186
|
+
/* pre-box */
|
187
|
+
transform: translate($x,-$y);
|
188
|
+
} 60%, 100% {
|
189
|
+
/* box *//* compose logo */
|
190
|
+
transform: translate($x*2,0);
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
@keyframes #{$name}-tetromino-animation-2 {
|
195
|
+
0%, 20% {
|
196
|
+
/* compose logo *//* 1 on 3 */
|
197
|
+
transform: translate($x*2, 0px);
|
198
|
+
} 40%, 100% {
|
199
|
+
/* L-shape *//* box *//* compose logo */
|
200
|
+
transform: translate($x*3, $y);
|
201
|
+
}
|
202
|
+
}
|
203
|
+
|
204
|
+
@keyframes #{$name}-tetromino-animation-3 {
|
205
|
+
0% {
|
206
|
+
/* compose logo */
|
207
|
+
transform: translate($x*3, $y);
|
208
|
+
} 20%, 60% {
|
209
|
+
/* 1 on 3 *//* L-shape *//* box */
|
210
|
+
transform: translate($x*2, $y*2);
|
211
|
+
} 90%, 100% {
|
212
|
+
/* compose logo */
|
213
|
+
transform: translate($x, $y);
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
@keyframes #{$name}-tetromino-animation-4 {
|
218
|
+
0%, 60% {
|
219
|
+
/* compose logo *//* 1 on 3 *//* L-shape *//* box */
|
220
|
+
transform: translate($x, $y);
|
221
|
+
} 90%, 100% {
|
222
|
+
/* compose logo */
|
223
|
+
transform: translate(0, 0);
|
224
|
+
}
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
228
|
+
@mixin tetromino-graphics($name, $width, $height, $cube-color, $hole-color){
|
229
|
+
$x: $width/2 - .5;
|
230
|
+
$y: $height/4 - .7;
|
231
|
+
|
232
|
+
@if($height > 50){
|
233
|
+
$y: $y - 1;
|
234
|
+
$x: $x - 2;
|
235
|
+
}
|
236
|
+
|
237
|
+
@include tetromino-animations($name, $x, $y);
|
238
|
+
|
239
|
+
%#{$name}-tetromino {
|
240
|
+
content: "";
|
241
|
+
width: $width;
|
242
|
+
height: $height;
|
243
|
+
position: absolute;
|
244
|
+
background: url('data:image/svg+xml;utf-8,%3Csvg viewBox="0 0 38 44" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"%3E%3Cpath fill="%23#{$cube-color}" d="M18.76 43.28L.017 32.46V10.82L18.758 0 37.5 10.82v21.64L18.76 43.28z"/%3E%3Cpath d="M18.76 2.885L33.75 11.54 18.76 20.2 3.764 11.54 18.76 2.886zM2.516 31.018V13.705L17.51 22.36v17.315L2.516 31.018z" fill="%23#{$hole-color}"/%3E%3Cpath d="M2.516 31.018V13.705L17.51 22.36v17.315L2.516 31.018z" fill-opacity=".50" fill="%23#{$cube-color}" /%3E%3C/svg%3E') no-repeat top center;
|
245
|
+
}
|
246
|
+
|
247
|
+
%#{$name}-tetromino-position-1 {
|
248
|
+
transform: translate(0, 0);
|
249
|
+
}
|
250
|
+
|
251
|
+
%#{$name}-tetromino-position-2 {
|
252
|
+
transform: translate($x*2, 0px);
|
253
|
+
}
|
254
|
+
|
255
|
+
%#{$name}-tetromino-position-3 {
|
256
|
+
transform: translate($x*3, $y);
|
257
|
+
}
|
258
|
+
|
259
|
+
%#{$name}-tetromino-position-4 {
|
260
|
+
transform: translate($x, $y);
|
261
|
+
}
|
262
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@import "z-index";
|
2
|
+
// Global breakpoints
|
3
|
+
$tiny: 320px;
|
4
|
+
$x-small: 450px;
|
5
|
+
$small: 600px;
|
6
|
+
$medium: 750px;
|
7
|
+
$large: 900px;
|
8
|
+
$x-large: 1020px;
|
9
|
+
$max: 1500px;
|
10
|
+
|
11
|
+
$h-pad-box: 8px, 12px;
|
12
|
+
$v-pad-box: 8px, 14px;
|
13
|
+
|
14
|
+
// Widths for primary navigation
|
15
|
+
// Standard and mobile epxanded
|
16
|
+
$primary-nav-width: (
|
17
|
+
small: 75%,
|
18
|
+
large: 65px
|
19
|
+
);
|
20
|
+
|
21
|
+
$secondary-nav-width: (
|
22
|
+
small: 42px, large: 140px
|
23
|
+
);
|
24
|
+
|
25
|
+
$page-header-height: 52px;
|
26
|
+
$plain-page-header-height: 40px;
|
27
|
+
|
28
|
+
$main-sidebar-width: 300px;
|
29
|
+
|
30
|
+
$block-margin: 1em;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
@keyframes box-pop {
|
2
|
+
0% {
|
3
|
+
/*opacity: 0; */
|
4
|
+
box-shadow: 0 1px 1px rgba(0,0,0,0.3);
|
5
|
+
transform: translateY(0) scale(0.95, 0.95);
|
6
|
+
}
|
7
|
+
100% {
|
8
|
+
/*opacity: 1; */
|
9
|
+
box-shadow: 0 11px 18px rgba(0,0,0,0.2);
|
10
|
+
transform: translateY(-20px) scale(1, 1);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
@keyframes dialog-slide-down {
|
15
|
+
0%, 20% {
|
16
|
+
opacity: 0;
|
17
|
+
}
|
18
|
+
21% {
|
19
|
+
opacity: 1;
|
20
|
+
box-shadow: 0 1px 1px rgba(0,0,0,0.3);
|
21
|
+
transform: translateY(-45px) scale(0.95, 0.95);
|
22
|
+
}
|
23
|
+
100% {
|
24
|
+
opacity: 1;
|
25
|
+
box-shadow: 0 11px 18px rgba(0,0,0,0.2);
|
26
|
+
transform: translateY(-15px) scale(1, 1);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
@keyframes dialog-slide-up {
|
31
|
+
0% {
|
32
|
+
opacity: 1;
|
33
|
+
box-shadow: 0 11px 18px rgba(0,0,0,0.2);
|
34
|
+
transform: translateY(-15px) scale(1, 1);
|
35
|
+
}
|
36
|
+
10% {
|
37
|
+
opacity: 1;
|
38
|
+
}
|
39
|
+
|
40
|
+
80% {
|
41
|
+
opacity: 0;
|
42
|
+
}
|
43
|
+
100% {
|
44
|
+
opacity: 0;
|
45
|
+
box-shadow: 0 1px 1px rgba(0,0,0,0.3);
|
46
|
+
transform: translateY(-55px) scale(.95, .95);
|
47
|
+
}
|
48
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
.dialog {
|
2
|
+
$fade-in-animation: .8s;
|
3
|
+
|
4
|
+
position: fixed;
|
5
|
+
top: 0; right: 0; left: 0; bottom: 0;
|
6
|
+
z-index: 1000;
|
7
|
+
|
8
|
+
&:before {
|
9
|
+
content: "";
|
10
|
+
background: rgba(#fff, .9);
|
11
|
+
position: absolute;
|
12
|
+
top: 0; right: 0; bottom: 0; left: 0;
|
13
|
+
transform: translate3d(0,0,0);
|
14
|
+
animation: fade-in .5s cubic-bezier(0.190, 1.000, 0.220, 1.000);
|
15
|
+
}
|
16
|
+
|
17
|
+
&-box {
|
18
|
+
background: #fcfcfc;
|
19
|
+
background-image: linear-gradient(#fff, #fafafa 30%, #fafafa 80%, #f9f9f9 95%);
|
20
|
+
box-shadow: 0 11px 18px rgba(0,0,0,0.2);
|
21
|
+
border-bottom-left-radius: 5px;
|
22
|
+
border-bottom-right-radius: 5px;
|
23
|
+
max-width: 340px;
|
24
|
+
margin: 0 auto;
|
25
|
+
animation: dialog-slide-down .3s cubic-bezier(0.190, 1.000, 0.980, 1.000);
|
26
|
+
padding: 30px 20px 20px;
|
27
|
+
transform: translateY(-15px);
|
28
|
+
}
|
29
|
+
|
30
|
+
&.dismiss {
|
31
|
+
&:before {
|
32
|
+
animation: fade-out .2s cubic-bezier(0.190, 1.000, 0.980, 1.000);
|
33
|
+
animation-delay: .15s;
|
34
|
+
}
|
35
|
+
.dialog-box {
|
36
|
+
opacity: 0;
|
37
|
+
animation: dialog-slide-up .4s cubic-bezier(0.190, 1.000, 0.220, 1.000);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
&-message, &-actions {
|
42
|
+
position: relative;
|
43
|
+
z-index: 1;
|
44
|
+
}
|
45
|
+
|
46
|
+
&-message {
|
47
|
+
text-align: center;
|
48
|
+
text-shadow: 0 1px 0 #fff;
|
49
|
+
margin-bottom: 15px;
|
50
|
+
}
|
51
|
+
|
52
|
+
h2 {
|
53
|
+
margin: 0;
|
54
|
+
font-weight: 600;
|
55
|
+
font-size: 24px;
|
56
|
+
}
|
57
|
+
|
58
|
+
p {
|
59
|
+
margin: 10px 0 0;
|
60
|
+
}
|
61
|
+
|
62
|
+
&-actions {
|
63
|
+
border-top: 1px solid transparent;
|
64
|
+
max-width: 300px;
|
65
|
+
}
|
66
|
+
|
67
|
+
button {
|
68
|
+
width: 48%;
|
69
|
+
font-size: 15px;
|
70
|
+
border-radius: 5px;
|
71
|
+
padding: { top: 3px; bottom: 3px; }
|
72
|
+
+ button {
|
73
|
+
float: right;
|
74
|
+
}
|
75
|
+
&:first-child:last-child {
|
76
|
+
width: 70%;
|
77
|
+
display: block;
|
78
|
+
margin: 0 auto 10px;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
form {
|
2
|
+
width: 100%;
|
3
|
+
|
4
|
+
&.max {
|
5
|
+
max-width: 100%;
|
6
|
+
}
|
7
|
+
|
8
|
+
fieldset {
|
9
|
+
padding: 0;
|
10
|
+
border: 0;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
label {
|
15
|
+
font-size: 15px;
|
16
|
+
}
|
17
|
+
|
18
|
+
form, .form-width {
|
19
|
+
max-width: 700px;
|
20
|
+
}
|
21
|
+
|
22
|
+
.form-row {
|
23
|
+
margin: .8em 0;
|
24
|
+
&.split {
|
25
|
+
margin-top: 1.3em;
|
26
|
+
padding-top: .5em;
|
27
|
+
border-top: 1px solid $page-border;
|
28
|
+
box-shadow: #fff 0 1px inset;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|