Skip to content

Commit

Permalink
Refactor SCSS architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
skysarwer committed Nov 3, 2022
1 parent 3421840 commit 7c2f93d
Show file tree
Hide file tree
Showing 48 changed files with 97 additions and 250 deletions.
5 changes: 0 additions & 5 deletions sass/abstracts/_abstracts.scss

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 0 additions & 25 deletions sass/base/_base.scss

This file was deleted.

14 changes: 0 additions & 14 deletions sass/base/typography/_headings.scss

This file was deleted.

15 changes: 0 additions & 15 deletions sass/base/typography/_typography.scss

This file was deleted.

48 changes: 0 additions & 48 deletions sass/components/_components.scss

This file was deleted.

7 changes: 0 additions & 7 deletions sass/components/comments/_comments.scss

This file was deleted.

8 changes: 0 additions & 8 deletions sass/components/widgets/_widgets.scss

This file was deleted.

34 changes: 14 additions & 20 deletions sass/css/editor/gutenberg.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
@import "../../abstracts/variables/colors";
@import "../../abstracts/variables/typography";
@import "../../abstracts/mixins/mixins";
@import "../../variables/colors";
@import "../../variables/typography";
@import "../../variables/mixins";

/* Fonts for gutenberg */
@font-face {
Expand Down Expand Up @@ -82,10 +82,11 @@ body .editor-styles-wrapper{
/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
@import "../../base/elements/buttons";
@import "../../base/elements/links";
@import "../../base/elements/lists";
@import "../../base/elements/media";
@import "../../elements/buttons";
@import "../../elements/links";
@import "../../elements/lists";
@import "../../elements/media";
@import "../../elements/copy";

/*--------------------------------------------------------------
# Typography
Expand All @@ -96,18 +97,15 @@ body .editor-styles-wrapper{
font-size: 1rem;
line-height: $font__line-height-body;

@import "../../base/typography/copy";
@import "../../base/typography/headings";


/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/

@import "../../components/media/captions";
@import "../../components/media/galleries";
@import "../../components/media/media";
@import "../../components/media/screen-array";
@import "../../patterns/captions";
@import "../../patterns/galleries";
@import "../../patterns/media";
@import "../../patterns/screen-array";

.screen-array li {
background: linear-gradient(to left, #000, #858686, #000);
Expand Down Expand Up @@ -137,11 +135,7 @@ body .editor-styles-wrapper{

/* Normalize
--------------------------------------------- */
@import "../../generic/normalize";

/* Box sizing
--------------------------------------------- */
@import "../../generic/box-sizing";
@import "../../misc/normalize";


/*--------------------------------------------------------------
Expand All @@ -166,6 +160,6 @@ body .editor-styles-wrapper{

/* WP-Core Utilities
--------------------------------------------- */
@import "../../components/content/posts-and-pages";
@import "../../structure/content";

}
File renamed without changes.
16 changes: 16 additions & 0 deletions sass/base/typography/_copy.scss → sass/elements/_copy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,22 @@ blockquote {
}
}

h1,
h2,
h3,
h4,
h5,
h6 {
clear: both;
font-family: $font__bold;
color: $color__accent;

a {
text-decoration: none;
}
}


address {
margin: 0 0 1.5em;
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions sass/generic/_box-sizing.scss

This file was deleted.

27 changes: 0 additions & 27 deletions sass/layouts/_content-sidebar.scss

This file was deleted.

11 changes: 0 additions & 11 deletions sass/layouts/_no-sidebar.scss

This file was deleted.

27 changes: 0 additions & 27 deletions sass/layouts/_sidebar-content.scss

This file was deleted.

12 changes: 12 additions & 0 deletions sass/generic/_normalize.scss → sass/misc/_normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@ pre {
* Remove the gray background on active links in IE 10.
*/

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
box-sizing: inherit;
}

html {
box-sizing: border-box;
}

a {
background-color: transparent;
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions sass/base/elements/_body.scss → sass/structure/_body.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ body {
background: $color__background-body; // Fallback for when there is no custom background color defined.
}

body,
button,
input,
select,
optgroup,
textarea {
color: $color__text-main;
font-family: $font__main;
font-size: 1rem;
line-height: $font__line-height-body;
}

*:focus {
outline: 2px dotted $color__accent;
outline-offset: 1px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,12 @@ main.homepage::after {
background: -o-linear-gradient(270deg, rgba(255,255,255,0) 0%, $color__background-body 100%);
pointer-events: none;
}

//comments
.comment-content a {
word-wrap: break-word;
}

.bypostauthor {
display: block;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 7c2f93d

Please sign in to comment.