-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathstyle.css
More file actions
102 lines (89 loc) · 2 KB
/
style.css
File metadata and controls
102 lines (89 loc) · 2 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
@import url("https://fonts.googleapis.com/css2?family=Ruda&display=swap");
/**
👉https://cssgradient.io/ 👈
Go to that link, generate a gradient of colors that you want,
then put it into the variable --insert-liner-gradient-here below
Change font-color if needed
Go to HTML file, replace name with your own, swap
picture out for your own one, and finally put your
own major down
**/
* {
margin: 0;
padding: 0;
font-family: "Ruda", sans-serif;
text-align: center;
--insert-liner-gradient-here: linear-gradient(
90deg,
rgba(250, 128, 114, 1) 0%,
rgba(250, 152, 114, 1) 100%
);
--font-color: rgba(0, 0, 0, 0.6);
--container-size-width: 30vw;
--container-size-height: 60vh;
--container-size-height-back: 70vh;
}
body {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: rgba(244, 244, 244, 0.8);
}
.container {
display: flex;
flex-direction: column;
width: var(--container-size-width);
height: var(--container-size-height);
align-items: center;
justify-content: center;
border-radius: 20px;
background-size: cover;
background: rgba(255, 255, 255, 0.7);
padding: 1rem;
box-shadow: rgba(255, 255, 255, 0.1);
}
.container::before {
position: absolute;
content: "";
width: var(--container-size-width);
height: var(--container-size-height-back);
background: var(--insert-liner-gradient-here);
transform: rotate(-9deg) translateX(-3px);
border-radius: 20px;
z-index: -1;
}
.container > * {
margin: 0.5rem;
color: var(--font-color);
}
img {
padding-bottom: 1rem;
max-height: 15vh;
border-radius: 50%;
}
h1 {
font-size: 2em;
font-weight: 400;
}
@media only screen and (max-width: 1100px) {
* {
--container-size-height: 70vh;
--container-size-height-back: 80vh;
}
h1 {
font-size: 1.5em;
font-weight: 400;
}
.container {
width: 80vw;
}
.container::before {
width: 80vw;
}
h3 {
font-size: 1em;
}
}