-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcloseread.css
More file actions
106 lines (91 loc) · 2.09 KB
/
closeread.css
File metadata and controls
106 lines (91 loc) · 2.09 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
/* 1. Define Variables using CSS syntax */
:root {
--linen: #fff7ef;
--chickpea: #ffcf85;
--coral: #eb7447;
--lightgreen: #E3F2FF;
--blue: #27a7d8;
--evergreen: #084024;
--primary: var(--coral);
--secondary: var(--blue);
--pop: var(--chickpea);
--light: var(--lightgreen);
--dark: var(--evergreen);
--body-bg: var(--linen);
--body-color: var(--evergreen);
}
/* 2. Base Styles */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100..800&family=Space+Grotesk:wght@300..700&display=swap');
body {
font-family: "Space Grotesk", sans-serif;
font-weight: 400;
font-size: 18px;
text-align: justify;
color: var(--body-color);
background-color: var(--body-bg);
}
h1, h2, h3, h4, h5, h6 {
font-family: "JetBrains Mono", monospace;
color: var(--dark);
text-align: left;
}
/* 3. Link Styles (Expanded from nested SCSS) */
p a {
text-decoration: none;
color: var(--secondary);
font-weight: 700;
position: relative;
z-index: 1;
display: inline-block;
}
p a::before {
content: '';
position: absolute;
left: 0;
bottom: 5px;
width: 100%;
height: 4px;
background-color: hsla(207, 100%, 90%, .75);
z-index: -1;
transition: all .3s ease-in-out;
}
p a:hover::before {
bottom: 0;
height: 100%;
}
/* 4. Navbar Styles */
.navbar {
background-color: var(--primary);
font-family: "JetBrains Mono", monospace;
font-size: 1.3rem;
font-weight: 700;
border-bottom: 2px solid var(--pop);
}
.navbar a {
color: var(--body-bg);
transition: color 0.5s ease;
}
.navbar a:active {
color: white;
}
.navbar a:hover {
color: var(--pop);
}
/* 5. Closeread Sections */
.cr-section {
background-color: var(--body-bg) !important;
}
.narrative {
font-family: "Space Grotesk", sans-serif;
font-size: 18px;
background-color: rgba(227, 242, 255, 0.8) !important; /* Based on lightgreen */
color: var(--dark) !important;
text-align: justify;
border-radius: 15px !important;
padding: 20px;
}
.cr-section .sticky-col .sticky-col-stack .cr-active {
opacity: 1 !important;
visibility: visible !important;
transition: 0.5s ease-in;
}