Skip to content

Commit 964d881

Browse files
committed
Updating documentation
1 parent 87e5a47 commit 964d881

File tree

1 file changed

+135
-12
lines changed

1 file changed

+135
-12
lines changed

theme.scss

Lines changed: 135 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//-- scss:defaults --*/
12
// GRASS Theme
23
/* GRASS Variables
34
Use these variables to customize the GRASS theme.
@@ -121,8 +122,19 @@ $gs-icons-base-path: $gs-images-base-path + '/icons';
121122
$gs-grass-logo-white-simple: url('images/logos/small/[email protected]');
122123
$gs-grass-logo-simple-svg: url($gs-svg-logos-base-path + '/grass-green-no-text.svg');
123124
$gs-grass-icon: url($gs-icons-base-path + '/grass-icon.svg');
124-
//-- scss:defaults --*/
125125

126+
// Description: This file defines Bootstrap theme variables by mapping them
127+
// to custom color variables. These variables are used to
128+
// customize the appearance of the Bootstrap framework.
129+
// Variables:
130+
// - $primary: Primary theme color, mapped to $gs-primary-color.
131+
// - $secondary: Secondary theme color, mapped to $gs-secondary-color.
132+
// - $success: Success state color, mapped to $gs-success-color.
133+
// - $info: Informational state color, mapped to $gs-info-color.
134+
// - $warning: Warning state color, mapped to $gs-warning-color.
135+
// - $danger: Danger/error state color, mapped to $gs-danger-color.
136+
// - $light: Light theme color, mapped to $gs-grey-light-color.
137+
// - $dark: Dark theme color, mapped to $gs-grey-dark-color.
126138
// Bootstrap Variables
127139
/*---------------------------------------------------------------------------*/
128140
$primary: $gs-primary-color;
@@ -134,8 +146,52 @@ $danger: $gs-danger-color;
134146
$light: $gs-grey-light-color;
135147
$dark: $gs-grey-dark-color;
136148

149+
// ---------------------------------------------------------------------------
137150
// Quarto Variables
138-
/*---------------------------------------------------------------------------*/
151+
// ---------------------------------------------------------------------------
152+
// This section defines the primary variables used throughout the theme,
153+
// including body background, text color, link color, font families, and root
154+
// font size.
155+
156+
// Navbar
157+
// ---------------------------------------------------------------------------
158+
// Variables for styling the navigation bar, including foreground and highlight
159+
// colors.
160+
161+
// Footer
162+
// ---------------------------------------------------------------------------
163+
// Variables for styling the footer, including background, foreground, and link
164+
// highlight colors.
165+
166+
// Inputs
167+
// ---------------------------------------------------------------------------
168+
// Variables for input field styling, such as background color.
169+
170+
// Popover
171+
// ---------------------------------------------------------------------------
172+
// Variables for popover styling, including background color.
173+
174+
// Table of Contents
175+
// ---------------------------------------------------------------------------
176+
// Variables for styling the table of contents, such as font size.
177+
178+
// Code
179+
// ---------------------------------------------------------------------------
180+
// Variables for code block styling, including text color, background color,
181+
// and syntax highlighting for keywords and strings.
182+
183+
// Callouts
184+
// ---------------------------------------------------------------------------
185+
// Variables for callout box styling, with specific colors for different types
186+
// of callouts (e.g., note, warning, tip, caution, important).
187+
188+
// Mermaid Theme
189+
// ---------------------------------------------------------------------------
190+
// Variables for Mermaid diagram styling, including background, edge, node,
191+
// and label colors, as well as font family and transparency settings.
192+
/* Quarto Variables
193+
194+
---------------------------------------------------------------------------*/
139195

140196
$body-bg: $gs-white-color;
141197
$body-color: $gs-black-color;
@@ -144,38 +200,61 @@ $font-family-sans-serif: $gs-grass-font;
144200
$font-family-monospace: $gs-grass-font--mono;
145201
$font-size-root: 16px;
146202

147-
// Navbar
203+
/* Navbar
204+
-----------------------------------------------------------------------------*/
148205
$navbar-fg: $gs-white-color;
149206
$navbar-hl: $gs-secondary-alt-color;
150207

151-
// Footer
208+
/* Footer
209+
-----------------------------------------------------------------------------*/
152210
$footer-bg: $gs-secondary-color;
153211
$footer-fg: $gs-white-base-color;
154212
$footer-link-hl: $gs-white-color--light;
155213

156-
// Inputs
214+
/* Inputs
215+
-----------------------------------------------------------------------------*/
157216
$input-bg: $gs-white-base-color;
158217

159-
// Popover
218+
/* Popover
219+
-----------------------------------------------------------------------------*/
160220
$popover-bg: $body-bg;
161221

162-
// Table of Contents
222+
/* Table of Contents
223+
-----------------------------------------------------------------------------*/
163224
$toc-font-size: 1rem;
164225

165-
// Code Variables
226+
/* Code
227+
-----------------------------------------------------------------------------*/
166228
$code-color: $gs-secondary-color;
167229
$code-bg: $gs-grey-light-color;
168230
$code-block-bg: $gs-grey-light-color;
169231
$code-keyword-color: $gs-primary-color;
170232
$code-string-color: $gs-primary-color;
171233

172-
// Callouts
234+
/* Callouts
235+
Quarto Docs: https: //quarto.org/docs/authoring/callouts.html
236+
-----------------------------------------------------------------------------*/
173237
$callout-color-note: $gs-primary-light-color;
174238
$callout-color-warning: $gs-warning-color;
175239
$callout-color-tip: $gs-info-color;
176240
$callout-color-caution: $gs-danger-color;
177241
$callout-color-important: $gs-primary-dark-color;
178242

243+
/* Mermaid Theme
244+
Quarto Docs: https: //quarto.org/docs/authoring/diagrams.html
245+
-----------------------------------------------------------------------------*/
246+
$mermaid-bg-color: $body-bg;
247+
$mermaid-edge-color: $secondary;
248+
$mermaid-node-fg-color: $body-color;
249+
$mermaid-fg-color: $body-color;
250+
$mermaid-fg-color--lighter: lighten($body-color, 10%);
251+
$mermaid-fg-color--lightest: lighten($body-color, 20%);
252+
$mermaid-font-family: $gs-grass-font;
253+
$mermaid-label-bg-color: $body-bg;
254+
$mermaid-label-fg-color: $primary;
255+
$mermaid-node-bg-color: rgba($primary, 0.1);
256+
$mermaid-node-fg-color: $gs-primary-dark-color;
257+
179258
/*-- scss:mixins --*/
180259
/* Mixin for custom button styles */
181260

@@ -272,6 +351,50 @@ code {
272351
}
273352
}
274353

354+
/*
355+
Button Styles
356+
-----------------------------------------------------------------------------
357+
Defines the styles for various button components used in the project.
358+
Each button style is designed with specific colors, borders, and hover/focus effects
359+
to match the theme's design system.
360+
361+
General Button Styles:
362+
- `.btn`: Base button styles including font, padding, and border-radius.
363+
364+
Primary Buttons:
365+
- `.btn-primary`: Primary button with theme's primary color.
366+
- `.btn-outline-primary`: Outlined version of the primary button.
367+
368+
Secondary Buttons:
369+
- `.btn-secondary`: Secondary button with theme's secondary color.
370+
- `.btn-outline-secondary`: Outlined version of the secondary button.
371+
372+
Success Buttons:
373+
- `.btn-success`: Success button with theme's success color.
374+
- `.btn-outline-success`: Outlined version of the success button.
375+
376+
Warning Buttons:
377+
- `.btn-warning`: Warning button with theme's warning color.
378+
- `.btn-outline-warning`: Outlined version of the warning button.
379+
380+
Support Buttons:
381+
- `.btn-support`: Support button with theme's support color.
382+
- `.btn-outline-support`: Outlined version of the support button with icon support.
383+
384+
Light Buttons:
385+
- `.btn-outline-light`: Outlined button with light/grey color scheme.
386+
387+
Link Buttons:
388+
- `.btn-outline-link`: Outlined button styled as a link with underline.
389+
390+
Hover and Focus States:
391+
- Each button includes hover and focus states to enhance interactivity.
392+
- Colors are adjusted (e.g., darkened or lightened) to provide visual feedback.
393+
394+
Mixins and Utilities:
395+
- `@include box-shadow-default`: Applied to certain buttons for shadow effects.
396+
- `gap`: Used in `.btn-outline-support` for spacing between icon and text.
397+
*/
275398
/* Button Styles
276399
-----------------------------------------------------------------------------*/
277400
.btn {
@@ -281,6 +404,7 @@ code {
281404
padding: .5rem 1rem;
282405
border-radius: .25rem;
283406
}
407+
284408
.btn-primary {
285409
background-color: $gs-primary-color;
286410
border-color: $gs-primary-color;
@@ -292,6 +416,7 @@ code {
292416
color: $gs-white-base-color;
293417
}
294418
}
419+
295420
.btn-secondary {
296421
background-color: $gs-secondary-color;
297422
border-color: $gs-secondary-color;
@@ -303,6 +428,7 @@ code {
303428
color: $gs-white-base-color;
304429
}
305430
}
431+
306432
.btn-success {
307433
background-color: $gs-success-color;
308434
border-color: $gs-success-color;
@@ -319,7 +445,6 @@ code {
319445
background-color: $gs-warning-color;
320446
border-color: $gs-warning-color;
321447
color: $gs-white-color;
322-
323448
&:hover,
324449
&:focus {
325450
background-color: darken($gs-warning-color, 10%);
@@ -381,7 +506,6 @@ code {
381506
background-color: $gs-white-color;
382507
border-color: $gs-warning-color;
383508
color: $gs-warning-color;
384-
385509
&:hover,
386510
&:focus {
387511
background-color: $gs-warning-color;
@@ -406,7 +530,6 @@ code {
406530
border-color: $gs-primary-color;
407531
color: $gs-primary-color;
408532
text-decoration: underline;
409-
410533
&:hover,
411534
&:focus {
412535
border-color: $gs-primary-dark-color;

0 commit comments

Comments
 (0)