-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcustom.scss
163 lines (142 loc) · 4.53 KB
/
custom.scss
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
151
152
153
154
155
156
157
158
159
160
161
162
163
/*-- scss:defaults --*/
$theme-spotify-green: #1DB954;
$theme-lighter-green: #1ed760;
$theme-dark-purple: #7D3C98;
$theme-light-purple: #e3cbf2;
$theme-darkest-gray: #191414;
$theme-medium-gray: #282828;
$theme-light-gray: #f4f4f4;
$theme-text-color: white;
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@700&family=Montserrat&display=swap');
$font-family-sans-serif: 'Montserrat', sans-serif;
$footer-bg: $theme-spotify-green;
$font-size-root: 12px;
$link-color: $theme-light-purple;
$sidebar-bg: $theme-light-gray;
$sidebar-fg: $theme-darkest-gray;
$code-block-bg: $theme-medium-gray;
/*-- scss:rules --*/
/* Display options for tables */
table {
display: block;
max-width: 100%;
overflow: auto;
}
td {
mid-width: 200px;
}
/* Change the background colours to a Spotify-like theme */
body {
background-color: $theme-darkest-gray !important;
}
.card {
--bs-card-border-width: 0px;
--bs-card-bg: $theme-darkest-gray !important;
}
.card-body {
padding: 0px;
color: $theme-text-color !important;
background-color: $theme-darkest-gray;
}
.navbar {
background-color: $theme-medium-gray;
color: $theme-text-color;
}
:root {
--bs-body-bg: $theme-darkest-gray !important;
--bs-card-bg: $theme-darkest-gray !important;
}
/* Scrollbar theming */
::-webkit-scrollbar {
width: 12px; /* Vertical scrollbar width */
height: 12px; /* Horizontal scrollbar height */
}
::-webkit-scrollbar-track { /* Track (part the thumb slides within) */
background: $theme-darkest-gray;
border-radius: 10px; /* Rounded corners on the track */
}
::-webkit-scrollbar-thumb { /* Thumb (draggable part of the scrollbar) */
background-color: $theme-spotify-green;
border-radius: 10px; /* Rounded corners on the thumb */
border: 3px solid $theme-darkest-gray; /* Makes the thumb slightly smaller than the track */
}
::-webkit-scrollbar-thumb:hover { /* Thumb hover effects */
background-color: $theme-lighter-green;
}
::-webkit-scrollbar-corner { /* Bottom corner of the scrollbar */
background: $theme-darkest-gray; /* Match the track background color */
}
select { /* Dropdown styling */
background-color: $theme-darkest-gray !important;
padding: 8px;
border: 1px solid $theme-text-color !important;
border-radius: 4px;
width: 200px;
}
select option { /* Styling of the items in the dropdown list when dropdown button is clicked */
background-color: $theme-darkest-gray !important; /* Light grey background for options */
color: $theme-text-color !important; /* Text color for options */
}
select option:hover { /* Styling of the currently highlighted item in the dropdown menu */
background-color: $theme-spotify-green !important;
}
/* Make superscripts in gt table not italic */
.gt_footnote_marks sup {
font-style: normal;
}
/* Make sure album art in gt table always stays square and maintains aspect ratio */
.gt_table img {
object-fit: contain;
}
/* Defined custom class in generate_circle_svg function to be able to modify the font size of the nanoplot text only */
div.html-fill-item.html-fill-container text:not(.circle-text) {
font-size: 6em; /* This will exclude text elements with the 'circle-text' class */
}
/* Remove underline from hyperlinks*/
a {
text-decoration: none;
color: $link-color;
}
/* Bold navbar title */
.navbar-title {
font-weight: bold;
}
/* Height of embedded Spotify Web Player */
.TrackWidget_widgetContainer__gADzr {
height: 100vh !important;
}
div.html-fill-item.html-fill-container .custom-iframe {
justify-content: center; /* Center the web player only, not the gt table */
}
/* Make all headings and paragraph text white */
h1, h2, h3, h4, h5, h6, p {
color: $theme-text-color;
}
/* Make the text in the sidebar (of the Quarto website, not the dashboard), dark gray */
.sidebar-title {
color: $theme-darkest-gray;
}
/* Text colour of currently selected page in sidebar */
div.sidebar-item-container .active {
color: $theme-dark-purple;
}
/* Text colour of noncurrently selected sidebar list items */
div.sidebar-item-container {
color: $theme-darkest-gray;
}
/* Text colour of currently hovered on sidebar list item */
div.sidebar-item-container:hover {
color: $theme-dark-purple;
}
/* Colour of "Next page" text in bottom right of each Quarto HTML webpage */
.nav-page a {
color: $link-color;
}
/* Colour of "AUTHOR" text */
#title-block-header.quarto-title-block.default .quarto-title-meta-heading {
color: $link-color;
}
/* Colour of non-hovered list items in table of contents */
.sidebar .toc-actions ul li a {
color: $theme-text-color !important;
}