-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
150 lines (144 loc) · 2.95 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
140
141
142
143
144
145
146
147
148
149
150
*{
margin:0;
padding: 0;
box-sizing: border-box;
}
:root{
font-size: 16px;
}
body{
background-color: #121215;
color: #EAEAEA;
font-family: 'Roboto', sans-serif;
display: grid;
grid-template-areas: "profile timeline";
grid-template-columns: 1fr 1fr;
grid-auto-rows: 100vh;
}
aside{
grid-area: profile;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-right: 1px solid;
border-image: linear-gradient(#727275, #2c2c31) 1;
gap: 20px;
background-image: url("./assets/background.svg");
background-position: top right;
background-repeat: no-repeat;
background-size: auto 100%;
}
aside img:nth-child(2){
width: 160px;
height: auto;
border-radius: 50%;
border: 4px solid transparent;
background: linear-gradient(#d39e33, #ed5636,#633bbc ) padding-box,linear-gradient(260deg,#d39e33, #ed5636,#633bbc) border-box;
}
aside p{
font-size: 2rem;
text-align: center;
}
aside span{
font-size: 0.75rem;
color:#9e9ea0
}
aside *{
animation: enteringProfile 1s ease-in-out;
}
nav{
padding: 64px;
grid-area: timeline;
animation: enteringTimeline 1s ease-in-out;
overflow-y: scroll;
/* Aqui ativamos a 'função' de rolagem atraves das barras, somente para nav, fazendo com que aside fique fixo */
}
::-webkit-scrollbar{
width: 8px;
}
::-webkit-scrollbar-track{
background-color: #727275;
}
::-webkit-scrollbar-thumb{
background-color: #633bbc;
}
.memory{
display: flex;
flex-direction: column;
gap: 16px;
text-decoration: none;
margin-bottom: 64px;
}
.memory small{
color: #BEBEBF;
font-size: 0,75rem;
}
.memory h1{
font-size: 2rem;
color: #EAEAEA;
}
.memory div{
width: 100%;
height: 280px;
border-radius: 8px;
overflow: hidden;
/* refere-se ao restante da imagem que não caberá no tamanho da div após aplicação do transform */
}
.memory img{
width: 100%;
height: 280px;
object-fit: cover;
border-radius: 8px;
transition: transform 0.3s ease-in-out
}
.memory:hover img{
transform: scale(1.1);
}
.memory p{
font-size: 1.2rem;
color: #BEBEBF;
line-height: 28px;
}
@keyframes enteringTimeline{
from{
opacity:0;
transform: translateY(-200px)
}
to{
opacity: 1;
transform: translateY(0);
}
}
@keyframes enteringProfile{
from{
opacity:0;
transform: translateY(200px)
}
to{
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px){
:root{
font-size: 14px;
}
body{
grid-template-columns: 1fr;
grid-template-rows: 0.2fr 0.8fr;
grid-template-areas:
"profile"
"timeline";
}
aside{
border: none;
padding: 32px 12px;
margin-bottom: 60px;
}
nav{
overflow-y: visible;
border:none;
padding: 22px;
}
}