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,41 @@
|
|
1
|
+
.grid-demo .grid-cell {
|
2
|
+
|
3
|
+
code {
|
4
|
+
display: inline-block;
|
5
|
+
color: #fff;
|
6
|
+
background: hsl(200, 65%, 72%);
|
7
|
+
width: 100%;
|
8
|
+
border: none;
|
9
|
+
border-radius: 0px;
|
10
|
+
line-height: 1.8em;
|
11
|
+
margin-bottom: 1px;
|
12
|
+
}
|
13
|
+
.grid {
|
14
|
+
code {
|
15
|
+
background: hsl(160, 45%, 72%);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
.cell-size-demo {
|
21
|
+
.grid-cell:nth-child(even) {
|
22
|
+
code {
|
23
|
+
background: hsl(200, 12%, 90%);
|
24
|
+
color: #444;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.gutter-demo {
|
30
|
+
.grid-cell:nth-child(2) code {
|
31
|
+
background: hsl(160, 45%, 72%);
|
32
|
+
}
|
33
|
+
|
34
|
+
.grid-cell:nth-child(3) code {
|
35
|
+
background: hsl(0, 45%, 72%);
|
36
|
+
}
|
37
|
+
|
38
|
+
.grid-cell:nth-child(4) code {
|
39
|
+
background: hsl(240, 45%, 72%);
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
.main-content {
|
2
|
+
h2 {
|
3
|
+
font-size: 32px;
|
4
|
+
&:not(:first-of-type) {
|
5
|
+
border-top: 1px solid $page-border;
|
6
|
+
padding-top: $block-margin + 1em;
|
7
|
+
margin-top: $block-margin + 1.2em;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
h3 {
|
11
|
+
font-size: 26px;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.heading-anchor {
|
16
|
+
position: relative;
|
17
|
+
color: inherit;
|
18
|
+
text-decoration: none;
|
19
|
+
|
20
|
+
&:hover:after {
|
21
|
+
font-weight: normal;
|
22
|
+
display: inline-block;
|
23
|
+
opacity: .3;
|
24
|
+
font-size: .8em;
|
25
|
+
top: -2px;
|
26
|
+
width: 1em;
|
27
|
+
left: .3em;
|
28
|
+
position: relative;
|
29
|
+
content: "§";
|
30
|
+
font-family: Arial,Helvetica,sans-serif;
|
31
|
+
|
32
|
+
@include at-least($large) {
|
33
|
+
position: absolute;
|
34
|
+
left: -.8em;
|
35
|
+
top: 3px;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
+
* file per style scope.
|
12
|
+
*
|
13
|
+
*= require_self
|
14
|
+
*/
|
15
|
+
@import "megatron/modules/core/index";
|
16
|
+
@import "typography";
|
17
|
+
@import "grid";
|
18
|
+
@import "example";
|
19
|
+
|
@@ -0,0 +1,164 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
$error-animation-step: .5s;
|
3
|
+
* { box-sizing: border-box; }
|
4
|
+
|
5
|
+
@import "modules/core/colors";
|
6
|
+
@import "modules/core/mixins";
|
7
|
+
@import "error-pages/animations";
|
8
|
+
|
9
|
+
.error-layout {
|
10
|
+
background: #262b30;
|
11
|
+
height: 100%;
|
12
|
+
@media all and (min-width: 600px) and (min-height: 600px) { overflow: hidden; }
|
13
|
+
|
14
|
+
body {
|
15
|
+
overflow: visible;
|
16
|
+
text-align: center;
|
17
|
+
}
|
18
|
+
|
19
|
+
.error-page {
|
20
|
+
padding: 60px 0 20px;
|
21
|
+
display: inline-block;
|
22
|
+
font-family: Helvetica-neue, Helvetica, Arial, sans-serif;
|
23
|
+
color: #788392;
|
24
|
+
|
25
|
+
svg {
|
26
|
+
position: relative;
|
27
|
+
overflow: visible;
|
28
|
+
z-index: 2;
|
29
|
+
transform: translate3d(0,0,0);
|
30
|
+
margin: 4em;
|
31
|
+
}
|
32
|
+
|
33
|
+
.error-message {
|
34
|
+
margin: 1em 0;
|
35
|
+
position: relative;
|
36
|
+
transform: translate3d(0,0,0);
|
37
|
+
z-index: 2;
|
38
|
+
}
|
39
|
+
|
40
|
+
h1 {
|
41
|
+
font-size: 50px;
|
42
|
+
font-weight: normal;
|
43
|
+
margin: 0;
|
44
|
+
span {
|
45
|
+
animation: $error-animation-step*3 ease-out fade-in-slowly;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
p {
|
49
|
+
font-size: 20px;
|
50
|
+
margin: 10px 0;
|
51
|
+
span {
|
52
|
+
animation: $error-animation-step*4 ease-out fade-in-slowly;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
.support-links {
|
57
|
+
margin: 1.5em 0;
|
58
|
+
animation: $error-animation-step*5 ease-out fade-in-slowly;
|
59
|
+
position: relative;
|
60
|
+
z-index: 3;
|
61
|
+
}
|
62
|
+
|
63
|
+
a {
|
64
|
+
color: $shade;
|
65
|
+
text-decoration: none;
|
66
|
+
&:hover { text-decoration: underline; }
|
67
|
+
+ a:before {
|
68
|
+
content: "";
|
69
|
+
position: relative;
|
70
|
+
top: -.3em;
|
71
|
+
width: 10px;
|
72
|
+
margin: 0 15px;
|
73
|
+
border-top: 1px solid $shade;
|
74
|
+
display: inline-block;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
&.error-404 svg:hover + .error-message {
|
78
|
+
animation: error-party .9s linear infinite;
|
79
|
+
transform: translateY(10px);
|
80
|
+
|
81
|
+
[data-alt-message]{
|
82
|
+
font-size: 0;
|
83
|
+
&:before { content: attr(data-alt-message) }
|
84
|
+
}
|
85
|
+
h1[data-alt-message]:before {
|
86
|
+
font-size: 20px;
|
87
|
+
}
|
88
|
+
p[data-alt-message]:before {
|
89
|
+
font-size: 50px;
|
90
|
+
}
|
91
|
+
p {
|
92
|
+
animation: error-bounce .5s linear infinite;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
@for $i from 1 through 12 {
|
98
|
+
[id$=cube-#{$i}], [id$=cube-#{$i + 12}], [id$=cube-#{$i + 24}] {
|
99
|
+
animation: drop-cube-#{$i} .9s cubic-bezier(0.190, 1.000, 0.320, 1.000);
|
100
|
+
path {
|
101
|
+
animation: fade-cube-#{$i} .9s cubic-bezier(0.190, 1.000, 0.320, 1.000);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
.reverse-stack svg:hover + .error-message {
|
107
|
+
h1[data-alt-message]:before {
|
108
|
+
font-size: 20px;
|
109
|
+
position: relative;
|
110
|
+
top: 10px;
|
111
|
+
}
|
112
|
+
|
113
|
+
p[data-alt-message]:before {
|
114
|
+
font-size: 50px;
|
115
|
+
}
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
.error-404 svg:hover {
|
120
|
+
|
121
|
+
@for $i from 1 through 12{
|
122
|
+
[id$=cube-#{$i}] path, [id$=cube-#{$i + 12}] path, [id$=cube-#{$i + 24}] path {
|
123
|
+
animation: fade-out-cube-#{$i} .7s cubic-bezier(0.190, 1.000, 0.320, 1.000) infinite;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
$logo-width: 20px;
|
131
|
+
$logo-height: $logo-width * 1.173;
|
132
|
+
$cube-animation-style: 1.5s ease-out infinite;
|
133
|
+
|
134
|
+
@include tetromino-graphics(small, $logo-width, $logo-height, 47515b, 262b30);
|
135
|
+
|
136
|
+
.hidden_label {
|
137
|
+
font-size: 0;
|
138
|
+
}
|
139
|
+
|
140
|
+
.compose-logo {
|
141
|
+
position: relative;
|
142
|
+
height: $logo-height * 1.7;
|
143
|
+
width: $logo-width * 2.5;
|
144
|
+
display: inline-block;
|
145
|
+
text-align: left;
|
146
|
+
top: -5px;
|
147
|
+
margin: 4em 0;
|
148
|
+
|
149
|
+
&:before, &:after,
|
150
|
+
.hidden_label:before,
|
151
|
+
.hidden_label:after { @extend %small-tetromino; }
|
152
|
+
|
153
|
+
&:before { @extend %small-tetromino-position-1 }
|
154
|
+
.hidden_label:before { @extend %small-tetromino-position-2 }
|
155
|
+
.hidden_label:after { @extend %small-tetromino-position-3 }
|
156
|
+
&:after { @extend %small-tetromino-position-4 }
|
157
|
+
|
158
|
+
&:hover {
|
159
|
+
&:before { animation: small-tetromino-animation-1 $cube-animation-style; }
|
160
|
+
.hidden_label:before { animation: small-tetromino-animation-2 $cube-animation-style; }
|
161
|
+
.hidden_label:after { animation: small-tetromino-animation-3 $cube-animation-style; z-index: 2; }
|
162
|
+
&:after { animation: small-tetromino-animation-4 $cube-animation-style; }
|
163
|
+
}
|
164
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
$error-drop-distance: 200px;
|
2
|
+
|
3
|
+
@for $i from 1 through 12 {
|
4
|
+
@keyframes drop-cube-#{$i} {
|
5
|
+
0%, #{7 * $i}% {
|
6
|
+
transform: translateY($error-drop-distance);
|
7
|
+
} 100% {
|
8
|
+
transform: translateY(0);
|
9
|
+
}
|
10
|
+
}
|
11
|
+
@keyframes fade-cube-#{$i} {
|
12
|
+
0%, #{7 * $i}% {
|
13
|
+
opacity: 0;
|
14
|
+
}
|
15
|
+
100% {
|
16
|
+
opacity: 1;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
@keyframes fade-out-cube-#{$i} {
|
20
|
+
$start: 3 * $i;
|
21
|
+
$mid: 100 - $start;
|
22
|
+
0%, #{$start}% {
|
23
|
+
opacity: 1;
|
24
|
+
}
|
25
|
+
#{$mid}% {
|
26
|
+
opacity: 0;
|
27
|
+
}
|
28
|
+
100% {
|
29
|
+
opacity: 1;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
@keyframes error-party {
|
35
|
+
0% {
|
36
|
+
color: #8e55dd;
|
37
|
+
} 20% {
|
38
|
+
color: #967adc;
|
39
|
+
} 40% {
|
40
|
+
color: #fef0bd;
|
41
|
+
} 60% {
|
42
|
+
color: #d4eef7;
|
43
|
+
} 80% {
|
44
|
+
color: #82c1ed;
|
45
|
+
} 100% {
|
46
|
+
color: #5d9cec;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
@keyframes fade-in-slowly {
|
51
|
+
0% { opacity: 0; }
|
52
|
+
80% { opacity: 0; }
|
53
|
+
100% { opacity: 1; }
|
54
|
+
}
|
55
|
+
|
56
|
+
@keyframes error-bounce {
|
57
|
+
0%, 100% {
|
58
|
+
transform: scale(.95, .95)
|
59
|
+
}
|
60
|
+
50% {
|
61
|
+
transform: scale(1, 1)
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
/*
|
66
|
+
@keyframes waves-1 {
|
67
|
+
0% {
|
68
|
+
transform: translate(0px, 0px);
|
69
|
+
} 100% {
|
70
|
+
transform: translate(40px, 0px);
|
71
|
+
}
|
72
|
+
}
|
73
|
+
@keyframes waves-2 {
|
74
|
+
0% {
|
75
|
+
transform: translate(0px, 0px);
|
76
|
+
} 100% {
|
77
|
+
transform: translate(-40px, 0px);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
@keyframes tide {
|
82
|
+
0%, 100% {
|
83
|
+
transform: translateY(0);
|
84
|
+
} 50% {
|
85
|
+
transform: translateY(-25px);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
@keyframes csi {
|
90
|
+
0% {
|
91
|
+
transform: translateY(1.5em);
|
92
|
+
} 100% {
|
93
|
+
transform: translateY(-1.5em * 4);
|
94
|
+
}
|
95
|
+
}
|
96
|
+
*/
|
@@ -0,0 +1,41 @@
|
|
1
|
+
.csi {
|
2
|
+
overflow: hidden;
|
3
|
+
position: relative;
|
4
|
+
display: block;
|
5
|
+
height: 1.5em;
|
6
|
+
}
|
7
|
+
|
8
|
+
.csi span {
|
9
|
+
display: block;
|
10
|
+
text-align: center;
|
11
|
+
line-height: 1.5em;
|
12
|
+
}
|
13
|
+
|
14
|
+
.error-page.error-503:hover {
|
15
|
+
p {
|
16
|
+
margin: 0;
|
17
|
+
}
|
18
|
+
.csi {
|
19
|
+
animation: $error-animation-step*2 ease-out fade-in-slowly;
|
20
|
+
font-size: 50px;
|
21
|
+
top: 15px;
|
22
|
+
}
|
23
|
+
.csi span {
|
24
|
+
font-size: 50px;
|
25
|
+
&:first-child {
|
26
|
+
display: none;
|
27
|
+
}
|
28
|
+
transform: translateY(-1.5em * 3);
|
29
|
+
animation: csi 4.5s steps(5, end);
|
30
|
+
}
|
31
|
+
h1:after {
|
32
|
+
content: "YEEEEEAAAAAAAHHHH!!!!!";
|
33
|
+
display: block;
|
34
|
+
font-size: 16px;
|
35
|
+
position: absolute;
|
36
|
+
top: 100%;
|
37
|
+
width: 100%;
|
38
|
+
text-align: center;
|
39
|
+
animation: 7s ease-out fade-in-slowly;
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
.waves-bg {
|
2
|
+
$animation-style: 1.5s ease-in-out infinite;
|
3
|
+
$box-height: 66px;
|
4
|
+
$box-width: 40px;
|
5
|
+
$top-shift: $box-height/2;
|
6
|
+
position: fixed;
|
7
|
+
top: 0; left: 0;
|
8
|
+
bottom: 0; right: 0;
|
9
|
+
z-index: -1;
|
10
|
+
animation: tide 4.5s ease infinite;
|
11
|
+
|
12
|
+
&:before, &:after {
|
13
|
+
background-image: url('data:image/svg+xml;utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="40" height="44.7" viewBox="0 0 59.4 66.5"%3E%3ClinearGradient id="a" gradientUnits="userSpaceOnUse" x1="29.72" y1="66.48" x2="29.72"%3E%3Cstop offset=".117" stop-opacity="0"/%3E%3Cstop offset="1" stop-opacity=".1"/%3E%3C/linearGradient%3E%3Cpath fill="url(%23a)" d="M29.7 0L0 16.6v33.2l29.7 16.6 29.7-16.6V16.6L29.7 0z"/%3E%3Cpath opacity=".3" fill="%2330363d" d="M29.7 7.8L7 20.5l22.7 12.7 22.7-12.7L29.7 7.8"/%3E%3C/svg%3E');
|
14
|
+
position: absolute;
|
15
|
+
top: -$box-width; left: -$box-width;
|
16
|
+
bottom: -$box-width; right: -$box-width;
|
17
|
+
background-size: $box-width $box-height;
|
18
|
+
opacity: 0;
|
19
|
+
content: "";
|
20
|
+
transition: opacity 1.5s ease-out;
|
21
|
+
}
|
22
|
+
&:after {
|
23
|
+
background-position: $box-width/2 $top-shift;
|
24
|
+
animation: waves-1 $animation-style;
|
25
|
+
}
|
26
|
+
&:before {
|
27
|
+
animation: waves-2 $animation-style;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.error-500:hover + .waves-bg {
|
32
|
+
opacity: 1;
|
33
|
+
&:before, &:after {
|
34
|
+
opacity: 1;
|
35
|
+
}
|
36
|
+
}
|