Skip to content

Commit

Permalink
Replace all CSS comments with Sass comments
Browse files Browse the repository at this point in the history
  • Loading branch information
markteekman committed Nov 25, 2021
1 parent adb834a commit f4c0f79
Show file tree
Hide file tree
Showing 26 changed files with 141 additions and 217 deletions.
13 changes: 5 additions & 8 deletions src/styles/base/_auto-grid.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> auto-grid
| -------------------------------------------------------------
|
| Easy to implement column layouts with display grid.
|
*/
// | -------------------------------------------------------------
// | > Auto Grid
// | -------------------------------------------------------------
// | Easy to implement column layouts with display grid.
// | -------------------------------------------------------------

// used variables and mixins
@use "breakpoint" as *;
Expand Down
14 changes: 6 additions & 8 deletions src/styles/base/_breakpoint.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/*
| -------------------------------------------------------------
| --> breakpoint
| -------------------------------------------------------------
|
| Breakpoint mixin used in the other base files.
|
*/
// | -------------------------------------------------------------
// | > Breakpoint
// | -------------------------------------------------------------
// | Breakpoint mixin used in the other base files or in a
// | project.
// | -------------------------------------------------------------

// breakpoints map
$breakpoints: (
Expand Down
15 changes: 6 additions & 9 deletions src/styles/base/_color.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/*
| -------------------------------------------------------------
| --> color
| -------------------------------------------------------------
|
| Color map with HSL values. Used to create Custom Properties
| in _root.scss.
|
*/
// | -------------------------------------------------------------
// | > Color
// | -------------------------------------------------------------
// | Color map with HSL values. Used to create Custom
// | Properties in _root.scss.
// | -------------------------------------------------------------

$colors: (
primary-clr: (
Expand Down
13 changes: 5 additions & 8 deletions src/styles/base/_elevation.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> elevation
| -------------------------------------------------------------
|
| Box-shadow mixins used as tokens in _tokens.scss
|
*/
// | -------------------------------------------------------------
// | > Elevation
// | -------------------------------------------------------------
// | Box-shadow mixins used as tokens in _utility.scss.
// | -------------------------------------------------------------

// use to override other elevations
@mixin elevation-000 {
Expand Down
13 changes: 5 additions & 8 deletions src/styles/base/_font.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> font
| -------------------------------------------------------------
|
| Default font declarations and sizes.
|
*/
// | -------------------------------------------------------------
// | > Font
// | -------------------------------------------------------------
// | Default font declarations and sizes.
// | -------------------------------------------------------------

// used variables and mixins
@use "breakpoint" as *;
Expand Down
21 changes: 9 additions & 12 deletions src/styles/base/_grid.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
/*
| -------------------------------------------------------------
| --> grid
| -------------------------------------------------------------
|
| This file contains all the settings for making flexible
| grids. Just apply a combination of these classes to build
| your own grid in the front-end.
|
| Docs: https://www.markteekman.nl/project/flexbox-grid
|
*/
// | -------------------------------------------------------------
// | > Grid
// | -------------------------------------------------------------
// | This file contains all the settings for making flexible
// | grids. Just apply a combination of these classes to build
// | your own grid in the front-end.
// |
// | Docs: https://www.markteekman.nl/project/flexbox-grid
// | -------------------------------------------------------------

// used variables and mixins
@use "sass:math";
Expand Down
15 changes: 6 additions & 9 deletions src/styles/base/_list.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/*
| -------------------------------------------------------------
| --> lists
| -------------------------------------------------------------
|
| A set of defaults styles for standard ordered and unordered
| lists.
|
*/
// | -------------------------------------------------------------
// | > Lists
// | -------------------------------------------------------------
// | A set of default styles for standard ordered and
// | unordered lists.
// | -------------------------------------------------------------

// used variables and mixins
@use "breakpoint" as *;
Expand Down
15 changes: 6 additions & 9 deletions src/styles/base/_outline.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/*
| -------------------------------------------------------------
| --> outline
| -------------------------------------------------------------
|
| Outline mixin to help with (tab)focus of different elements
| on the page.
|
*/
// | -------------------------------------------------------------
// | > Outline
// | -------------------------------------------------------------
// | Outline mixin to help with (tab)focus of different
// | elements on the page.
// | -------------------------------------------------------------

@mixin outline {
outline: 2px dotted black;
Expand Down
15 changes: 6 additions & 9 deletions src/styles/base/_reset.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/*
| -------------------------------------------------------------
| --> reset
| -------------------------------------------------------------
|
| A set of reset declarations to prevent inconsistencies
| between browser vendors.
|
*/
// | -------------------------------------------------------------
// | > Reset
// | -------------------------------------------------------------
// | A set of reset declarations to prevent inconsistencies
// | between browser vendors.
// | -------------------------------------------------------------

// set box sizing and scroll behaviour
html {
Expand Down
14 changes: 6 additions & 8 deletions src/styles/base/_root.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/*
| -------------------------------------------------------------
| --> root
| -------------------------------------------------------------
|
| Sets all custom properties (variables) to the root element.
|
*/
// | -------------------------------------------------------------
// | > Root
// | -------------------------------------------------------------
// | Sets all custom properties (variables) to the root
// | element.
// | -------------------------------------------------------------

@use "color" as *;

Expand Down
13 changes: 5 additions & 8 deletions src/styles/base/_size.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> size
| -------------------------------------------------------------
|
| Size mixins used in _tokens.scss and other base files.
|
*/
// | -------------------------------------------------------------
// | > Size
// | -------------------------------------------------------------
// | Size mixins used in _utility.scss and other base files.
// | -------------------------------------------------------------

// size mixins
@mixin size-10 {
Expand Down
14 changes: 6 additions & 8 deletions src/styles/base/_space.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/*
| -------------------------------------------------------------
| --> space
| -------------------------------------------------------------
|
| Space variables used in _tokens.scss and other base files.
|
*/
// | -------------------------------------------------------------
// | > Space
// | -------------------------------------------------------------
// | Space variables used in _utility.scss and other base
// | files.
// | -------------------------------------------------------------

// space variables
$space-2: 0.125rem;
Expand Down
14 changes: 5 additions & 9 deletions src/styles/base/_utility.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
/*
| -------------------------------------------------------------
| --> utility
| -------------------------------------------------------------
|
| This file contains all the utility tokens which are distilled
| from bases styles.
|
*/
// | -------------------------------------------------------------
// | > Utility
// | -------------------------------------------------------------
// | This file contains all the utility tokens.
// | -------------------------------------------------------------

@use 'utilities/align-horizontal';
@use 'utilities/align-vertical';
Expand Down
13 changes: 5 additions & 8 deletions src/styles/base/utilities/_align-horizontal.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> align horizontal
| -------------------------------------------------------------
|
| Align horizontal utility tokens.
|
*/
// | -------------------------------------------------------------
// | > Align Horizontal
// | -------------------------------------------------------------
// | Align Horizontal utility token.
// | -------------------------------------------------------------

.align-horizontal {
display: flex;
Expand Down
13 changes: 5 additions & 8 deletions src/styles/base/utilities/_align-vertical.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> align vertical
| -------------------------------------------------------------
|
| Align vertical utility tokens.
|
*/
// | -------------------------------------------------------------
// | > Align Vertical
// | -------------------------------------------------------------
// | Align Vertical utility token.
// | -------------------------------------------------------------

.align-vertical {
display: flex;
Expand Down
13 changes: 5 additions & 8 deletions src/styles/base/utilities/_colors.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> Colors
| -------------------------------------------------------------
|
| Colors utility tokens.
|
*/
// | -------------------------------------------------------------
// | > Colors
// | -------------------------------------------------------------
// | Colors utility token.
// | -------------------------------------------------------------

.color-neutral {
background-color: var(--neutral-background);
Expand Down
13 changes: 5 additions & 8 deletions src/styles/base/utilities/_contents.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> Contents
| -------------------------------------------------------------
|
| Contents utility token.
|
*/
// | -------------------------------------------------------------
// | > Contents
// | -------------------------------------------------------------
// | Contents utility token.
// | -------------------------------------------------------------

.contents {
display: contents;
Expand Down
13 changes: 5 additions & 8 deletions src/styles/base/utilities/_elevations.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> elevation
| -------------------------------------------------------------
|
| Elevation utility tokens.
|
*/
// | -------------------------------------------------------------
// | > Elevations
// | -------------------------------------------------------------
// | Elevations utility token.
// | -------------------------------------------------------------

@use '../elevation' as *;

Expand Down
13 changes: 5 additions & 8 deletions src/styles/base/utilities/_gutter-gap.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> gutter gap
| -------------------------------------------------------------
|
| Gutter gap utility tokens.
|
*/
// | -------------------------------------------------------------
// | > Gutter
// | -------------------------------------------------------------
// | Gutter utility token.
// | -------------------------------------------------------------

.gap-small {
gap: var(--gap-small);
Expand Down
13 changes: 5 additions & 8 deletions src/styles/base/utilities/_margins.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> margins
| -------------------------------------------------------------
|
| Margins utility tokens.
|
*/
// | -------------------------------------------------------------
// | > Margins
// | -------------------------------------------------------------
// | Margins utility token.
// | -------------------------------------------------------------

@use '../breakpoint' as *;
@use '../space' as *;
Expand Down
13 changes: 5 additions & 8 deletions src/styles/base/utilities/_paddings.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> padding
| -------------------------------------------------------------
|
| Padding utility tokens.
|
*/
// | -------------------------------------------------------------
// | > Paddings
// | -------------------------------------------------------------
// | Paddings utility token.
// | -------------------------------------------------------------

@use '../breakpoint' as *;
@use '../space' as *;
Expand Down
13 changes: 5 additions & 8 deletions src/styles/base/utilities/_size-content.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/*
| -------------------------------------------------------------
| --> size content
| -------------------------------------------------------------
|
| Size content utility token.
|
*/
// | -------------------------------------------------------------
// | > Size Content
// | -------------------------------------------------------------
// | Size Content utility token.
// | -------------------------------------------------------------

@use '../breakpoint' as *;
@use '../size' as *;
Expand Down
Loading

0 comments on commit f4c0f79

Please sign in to comment.