-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencrypt.css
More file actions
186 lines (162 loc) · 3.51 KB
/
encrypt.css
File metadata and controls
186 lines (162 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/*
* This is the stylesheet for encrypt-it
*/
@import url('https://fonts.googleapis.com/css?family=Orbitron|Lato');
/* Typography */
body {
background-color: #202020;
color: white;
font-family: "Lato", sans-serif;
}
button, select {
font-family: "Lato", sans-serif;
}
button, textarea {
color: white;
}
h1, h2, legend {
text-align: center;
}
h1 {
margin: 30px auto;
font-size: 28pt;
font-family: "Orbitron", sans-serif;
/*
* If you've never seen text-shadow, open up the Inspector and play around
* with it a bit!
*/
text-shadow: 3px 3px #d92b6f, -3px -3px #047ab9;
/*
* This here sets the header to do the animation defined by the keyframe rule
* "glitch", and plays it for 1 second when the page loads
*/
animation: glitch 1s;
}
legend {
padding: 0 16pt;
font-size: 16pt;
}
button, strong, textarea, #result-area {
font-size: 14pt;
}
strong {
line-height: 26pt;
}
select {
padding: 2pt;
margin: 0 14pt;
font-size: 12pt;
}
/* Fieldset */
button, fieldset, select, textarea, #result {
border-radius: 5pt;
}
fieldset {
width: 80%;
padding: 7pt 14pt;
border: 1.5pt solid white;
margin: 14pt auto;
}
textarea {
width: 100%;
padding: 7pt;
border: 2px solid #101010;
background-color: #101010;
/*
* Disable resize and outline (the blue-y border thing you see when you click
* on interactive elements on a page. Never remove outline if you are not
* implementing your own CSS for an element's focused state for
* accessibility!)
* Read more at:
* https://developer.mozilla.org/en-US/docs/Web/CSS/outline#Accessibility_concerns
*/
resize: none;
outline: none;
/*
* A CSS property that changes the border-color smoothly when the textarea
* changes state. In this case, when the text area is focused
*/
transition: border-color 0.5s;
}
textarea:focus {
border-color: #047ab9;
}
#result {
width: 80%;
padding: 7pt;
min-height: 20px;
margin: 0 auto;
background-color: #101010;
}
button, select {
border: none;
}
button {
min-width: 150px;
padding: 5px;
margin: 5px 0;
background-color: #047ab9;
cursor: pointer;
transition: background-color 0.2s;
}
button:hover {
background-color: #d92b6f;
}
h2, p {
animation: fade-in-up 0.5s;
animation-fill-mode: both;
}
p {
animation-delay: 0.2s;
margin: 0;
}
/*
* The keyframes rule defines a CSS animation. It defines what styles
* the selected elements take on at certain times.
*/
@keyframes glitch {
/*
* Keyframes are defined by percentage, the length of the animation
* is defined in the animation property, see line 42 in h1 ruleset.
*
* Since the length of the animation is 1s, 0% is the start time (0s)
* 15% represents 15% of 1s (0.15s) and so on.
*/
0% {
/* heading is hidden at this point */
opacity: 0;
text-shadow: none;
}
15% {
/* text-shadow starts small */
text-shadow: 1px 1px #d92b6f, -1px -1px #047ab9;
}
35% {
/* text-shadow at max expansion */
text-shadow: 10px 10px #047ab9, -10px -10px #d92b6f;
}
65% {
/* text-shadow squeeze back but over shoots */
text-shadow: 1px 1px #d92b6f, -1px -1px #047ab9;
}
100% {
/* heading is fully revealed */
opacity: 1;
/* text-shadow's final position*/
text-shadow: 3px 3px #d92b6f, -3px -3px #047ab9;
}
}
/*
* A simpler keyframe rule, where 'from' is the same as 0%, and 'to' is the same
* as 100%
*/
@keyframes fade-in-up {
from {
transform: translateY(8pt);
opacity: 0;
}
to {
transform: none;
opacity: 1;
}
}