-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmatRain.css
More file actions
92 lines (80 loc) · 1.56 KB
/
matRain.css
File metadata and controls
92 lines (80 loc) · 1.56 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
body {
margin: 0 50px;
font-family: 'Roboto', 'Open Sans', 'sans-serif';
background-color: #fff;
color: #444;
}
h1, p {
margin: 0 0 1em 0;
}
.wrapper {
margin: 0 auto;
display: grid;
grid-template-columns: 50px 3fr 1fr 50px;
grid-template-rows: max-content auto max-content;
grid-template-areas:
". head head ."
". main menu ."
". foot foot .";
}
.wrapper > * {
background-color: #444;
color: #fff;
padding: 20px;
}
@media (max-width: 768px) {
.wrapper {
grid-template-columns: 5% auto 5%;
grid-template-rows: max-content auto max-content max-content;
grid-template-areas:
". head ."
". main ."
". menu ."
". foot .";
}
}
.head {
grid-area: head;
font-size: 4vw;
}
.foot {
grid-area: foot;
font-size: 1vw;
}
.demo {
display: grid;
grid-area: main;
grid-template-columns: 2fr 1fr;
grid-template-rows: 2fr 1fr;
justify-items: stretch;
align-items: stretch;
grid-gap: 5px;
background-color: #888;
}
.menu {
grid-area: menu;
padding: 0;
background: #222;
font-size: 2vw;
}
.menu a {
background-color: #222;
color: white;
text-decoration: none;
text-align: right;
padding: 10px 15px; /* Some padding */
cursor: pointer; /* Pointer/hand icon */
display: block; /* Make the buttons appear below each other */
}
.menu a:hover {
background-color: #666;
}
.prog {
width: 600px;
height: 400px;
}
.desc {
padding: 10px;
grid-column: 1 / -1;
background-color: #777;
}