-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
124 lines (116 loc) · 2.03 KB
/
styles.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
.sidebar.drag,
button,
img,
h1,
.productname {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Standard syntax */
}
body {
background-color: #f9d8be;
font-family: "Crimson Text", serif;
font-weight: 400;
min-height: 100vh;
}
main {
display: flex;
margin: 0 auto;
padding: 0;
width: 33vw;
height: 80vh;
background-image: url(images/background.jpg);
background-size: cover;
border: 1px solid #2d1913;
overflow: hidden;
}
h1 {
margin: 0.5em 0;
letter-spacing: 0.05em;
}
h1,
p {
text-align: center;
}
.instructions {
margin: 0.5em 0;
font-size: 1.5em;
}
.sidebar {
display: flex;
flex-direction: column;
background-color: white;
transform: translateX(-85%);
touch-action: none;
}
.sidebar .drag {
background-color: white;
position: absolute;
bottom: 0;
right: 0;
width: 15%;
height: 100%;
cursor: grab;
}
.sidebar .drag:active {
cursor: grabbing;
}
.content {
display: flex;
flex-direction: column;
align-items: center;
padding-left: 5em;
padding-right: 5em;
}
.content img {
max-height: 10em;
}
.content p {
font-size: 1.3em;
margin: 0;
margin-top: 1em;
}
svg.lucide {
height: 2em;
width: 2em;
stroke-width: 1px;
stroke: #2d1913;
}
svg[data-lucide^="chevrons-"] {
position: absolute;
top: 50%;
right: 1em;
transform: translateY(-50%);
}
.icon-wrapper {
display: flex;
justify-content: center;
}
svg[data-lucide="chevron-up"],
svg[data-lucide="chevron-down"] {
height: 4em;
width: 4em;
stroke-width: 0.025em;
margin: 1.5em 0;
cursor: pointer;
}
a {
align-self: center;
}
button {
outline: none;
border: none;
cursor: pointer;
font-family: "Crimson Text", serif;
font-weight: 400;
font-weight: bold;
font-size: 0.9em;
margin-top: 2em;
letter-spacing: 0.05em;
padding: 0.5em 2.5em;
border: 1px solid #2d1913;
background: transparent;
}