-
-
Notifications
You must be signed in to change notification settings - Fork 213
Expand file tree
/
Copy pathContent.ts
More file actions
139 lines (120 loc) · 2.46 KB
/
Content.ts
File metadata and controls
139 lines (120 loc) · 2.46 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
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
import styled from "styled-components";
export const ContentContainer = styled.div`
padding: 1.25rem;
max-width: 56.25rem;
width: 100%;
margin: 0 auto;
background-color: var(--bg-color);
border-radius: 0.5rem;
box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
box-sizing: border-box;
h1, h2, h3, h4, h5, h6 {
margin-top: 1em;
margin-bottom: 0.5em;
color: var(--text-color);
}
p {
line-height: 1.6;
margin-bottom: 1em;
color: var(--text-color);
}
a {
color: #2eaa4b;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
ul, ol {
margin: 1em 0;
li {
margin-bottom: 0.5em;
color: var(--text-color);
}
}
img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
.image-container {
display: flex;
justify-content: center;
}
pre {
background-color: #282c34;
color: white;
padding: 0.75rem;
border-radius: 0.3125rem;
overflow-x: auto;
font-size: 0.875rem;
margin: 0.625rem 0;
}
code {
font-family: "Fira Code", monospace;
white-space: pre-wrap;
}
@media (max-width: 75rem) {
max-width: 90%;
}
@media (max-width: 48rem) {
padding: 0.9375rem;
}
`;
export const CodeBlockContainer = styled.div`
position: relative;
margin: 0.625rem 0;
`;
export const CopyButton = styled.button`
position: absolute;
top: 0.5rem;
right: 0.625rem;
border: none;
background: rgba(255, 255, 255, 0.2);
color: white;
cursor: pointer;
padding: 0.3125rem;
border-radius: 0.25rem;
font-size: 0.75rem;
&:hover {
background: rgba(255, 255, 255, 0.4);
}
`;
export const NavigationButtons = styled.div`
margin-top: 3.75rem;
margin-bottom: 1.25rem;
display: flex;
justify-content: space-between;
@media (max-width: 48rem) {
flex-direction: column;
align-items: stretch;
button {
margin-bottom: 0.625rem;
}
}
`;
export const NavigationButton = styled.button`
padding: 0.625rem 1.25rem;
border: 0.125rem solid #19c6c7;
border-radius: 0.25rem;
background-color: white;
color: #1b2540;
cursor: pointer;
font-weight: 700;
font-size: 1rem;
display: flex;
align-items: center;
justify-content: center;
&:disabled {
background-color: #e0e0e0;
color: #9e9e9e;
cursor: not-allowed;
border-color: #e0e0e0;
}
&:hover:not(:disabled) {
background-color: #19c6c7;
color: white;
text-decoration: underline;
}
`;