-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
139 lines (117 loc) · 1.79 KB
/
style.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
* {
margin: 0;
box-sizing: border-box;
}
body {
width: 100%;
height: 100%;
background: linear-gradient(45deg, yellow, pink) no-repeat;
}
#container {
width: 100%;
height: 100vh;
}
aside {
padding: 1em;
width: 100%;
display: grid;
grid-template-columns: auto 50px;
font-size: 1.5em;
align-items: center;
}
main {
overflow: auto;
max-height: calc(100vh - 100px);
}
#user {
display: grid;
grid-template-columns: 60px auto;
align-items: center;
color: maroon;
}
#user img {
width: 40px;
height: 40px;
border-radius: 50%;
}
#hamburger {
width: 50px;
height: 50px;
cursor: pointer;
}
.active {
display: block;
position: absolute;
top: 100px;
right: 0;
background: rgb(255,255,255,0.8);
width: 50%;
height: calc(100vh - 100px);
}
nav {
display: none;
padding: 1em;
}
ul {
padding: 0;
}
nav ul li {
list-style: none;
margin: 0;
width: 80px;
}
nav ul li a {
text-decoration: none;
color: darkblue;
width: 200px;
}
nav ul li a:hover {
color: green;
}
main p {
margin: 20px 50px;
}
@media only screen and (min-width: 768px) {
main {
overflow: auto;
max-height: calc(100vh - 280px);
}
aside {
grid-template-columns: auto 500px;
align-items: start;
}
#hamburger {
display: none;
}
#user {
display: flex;
flex-direction: column;
margin: 30px 0 0 100px;
align-items: start;
}
#user div {
margin-top: 10px;
font-size: 1.4em;
/* height: 100px; */
justify-content: flex-start;
}
#user img {
width: 150px;
height: 150px;
border-radius: 5%;
}
nav {
display: inline;
}
ul {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
}
ul li {
display: inline-block;
margin: 1.5em auto;
}
main p {
margin: 20px 70px;
}
}