-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
148 lines (125 loc) · 3.07 KB
/
styles.css
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
/*
Austin Jenchi
CSE 154 19sp AQ
05/14/2019
Styles for the message board. Sets the background of the board using images and adds some other
decorative elements. Adds styles to make elements look like paper with pushpins. Has CSS
animations triggered by Javascript on page load using the animate class.
*/
@import url('https://fonts.googleapis.com/css?family=Gloria+Hallelujah|Kodchasan|Source+Code+Pro');
body {
/* Corkboard image under CC0 public domain by Petr Kratochvil
https://www.publicdomainpictures.net/en/view-image.php?image=25664&picture=cork-board */
background-image: url("img/cork-board.jpg");
background-repeat: repeat;
font-family: Kodchasan, sans-serif;
margin: 0;
}
header, footer, body > section {
background-color: #ffffff;
border-radius: 4px;
/* box-shadow based on Google's Material Web Components Cards
https://material.io/develop/web/components/cards/ */
box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14),
0 1px 3px 0 rgba(0,0,0,.12);
margin: 8px auto;
opacity: 0;
padding: 8px;
transition: transform 2s ease, opacity 2s ease;
}
header.animate, footer.animate, body > section.animate {
transform: translateY(0);
opacity: 1;
}
header, footer, #add-msg {
text-align: center;
}
header {
transform: translateY(-100vh);
width: 40vw;
}
footer, body > section {
transform: translateY(100vh);
width: 80vw;
}
h2 {
font-size: 2em;
}
main {
align-items: flex-start;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
a {
color: inherit;
text-decoration: none;
}
table {
border-collapse: collapse;
}
thead tr td {
border-bottom: 2px solid black;
}
td:first-child {
border-right: 2px solid black;
}
pre, .code {
background: #e0e0e0;
border: solid 1px #999999;
border-radius: 4px;
color: #ad0000;
font-family: "Source Code Pro", monospace;
padding: 4px;
width: 40vw;
}
.code {
padding: 2px;
margin: 0;
}
.ajax-type {
border-radius: 2px;
padding: 0 2px;
}
.ajax-get {
background-color: orange;
color: #000000;
}
.ajax-post {
background-color: green;
color: #eeeeee;
}
.message {
/* css custom property to separately animate scale */
--grow: 0;
background-color: #ffff88;
box-shadow: 0px 10px 7px 0px #000000c4;
font-family: "Gloria Hallelujah", cursive;
margin: 32px;
min-height: 200px;
overflow-wrap: break-word;
padding: 16px;
transition: transform 500ms ease;
width: 200px;
}
.message:hover {
/* !important to override the javascript given .style */
transform: rotate(0deg) scale(1.2) !important;
}
.hidden {
display: none;
}
#in-msg {
width: 40vw;
}
#fetch-error {
color: red;
}
#api-header {
/* PHP icon under CC-BY 3.0 by Samat Odedara
https://www.iconfinder.com/icons/682678/code_coding_html_php_program_programming_script_icon */
background-image: url("img/php.svg");
background-position: right center;
background-repeat: no-repeat;
background-size: contain
}