-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpr.css
112 lines (111 loc) · 2.07 KB
/
pr.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
*{
box-sizing: border-box;
}
body{
color: #222;
background-color: #fff;
font-family: 'Montserrat', sans-serif;
transition: background-color .5s, color .5s;
margin: 0;
padding: 0;
}
.body--night-mode {
background-color: #222;
color: darken(white, 15%);
}
.header{
text-align: right;
width: 80vw;
max-width: 500px;
display: flex;
flex-direction: column;
padding: 1rem;
margin: auto ;
}
.header__title {
display: block ;
}
.tumbler__wrapper {
margin-left: auto;
width: 50px;
height: 30px;
background-color: black;
border: darken(#aae2f1, 40);
border-radius: 30px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 6px;
cursor: pointer;
display: flex;
position: relative;
}
svg {
width: 15px;
height: 15px;
}
.tumbler {
position: absolute;
height: 20px;
width: 20px;
border-radius: 50%;
background-color: #fff;
transition: transform .5s, background-color .5s;
will-change: transform;
}
.tumbler--night-mode {
transform: translateX(calc(100% - 2px));
}
.credits{
display: none;
}
.sun-svg,
.moon-svg{
display: none;
}
.main{
width: 80vw;
max-width: 500px;
padding: 0 1rem;
margin: auto;
}
.post {
border-bottom: 1px dashed #222;
margin-bottom: 1rem;
transition: border-bottom .5s;
}
.post--night-mode{
border-bottom: 1px dashed darken(white, 15%);
}
.post__title {
font-weight: 700;
}
&:first-child {
margin-top: 0;
}
.footer {
width: 80vw;
max-width: 500px;
padding: 1rem;
margin: 0 auto 1.5rem;
}
.description {
display: flex;
}
.description__text {
margin-right: 0.25rem;
}
.loveSvg svg {
display: block;
height: 1rem;
max-width: 1rem;
}
.btn {
background-color: #684acb;
color: white;
padding: 14px 25px;
text-align: center;
text-decoration: none;
display: inline-block;
border-radius: 0.2rem;
}