Skip to content

Commit

Permalink
all-grid atomic design, cleaned
Browse files Browse the repository at this point in the history
  • Loading branch information
gizulor committed Nov 20, 2022
1 parent 32f690d commit d07bd28
Show file tree
Hide file tree
Showing 129 changed files with 1,107 additions and 6,971 deletions.
16 changes: 16 additions & 0 deletions atomic-docs/atomic-db/components.dat
Original file line number Diff line number Diff line change
Expand Up @@ -310,5 +310,21 @@
"backgroundColor": "",
"order": -37,
"has_js": "false"
},
{
"component": "m_video",
"category": "4-molecules",
"description": "",
"backgroundColor": "",
"order": -38,
"has_js": "false"
},
{
"component": "q_tables",
"category": "2-quarks",
"description": "",
"backgroundColor": "",
"order": -39,
"has_js": "false"
}
]
2 changes: 1 addition & 1 deletion atomic-docs/components/1-base/b_typeset.txp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- components/1-base/b_typeset.txp -->

<div class="u_baseline-grid l_beam">
<div class="u_baseline-grid">
<div>
<h1>Lorem Khaled Ipsum is a major key to success.</h1>
<p>To succeed you must believe. When you believe, you will succeed. The key to more success is to have a lot of pillows.</p>
Expand Down
1 change: 1 addition & 0 deletions atomic-docs/components/2-quarks/q_tables.txp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- components/2-quarks/q_tables.txp -->
1 change: 1 addition & 0 deletions atomic-docs/components/4-molecules/m_video.txp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- components/4-molecules/m_video.txp -->
4 changes: 4 additions & 0 deletions atomic-docs/scss/1-base/_b_typeset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ $shevy-ssmall: (
@extend .a_heading, .h4-styled, .h3-styled\@medium;
}

a {
text-decoration: underline;
}

blockquote p {
&:before {
content: '';
Expand Down
3 changes: 2 additions & 1 deletion atomic-docs/scss/2-quarks/_2-quarks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
@import "_q_forms";
@import "_q_code";
@import "_q_figure";
@import "_q_hr";
@import "_q_hr";
@import "_q_tables";
32 changes: 32 additions & 0 deletions atomic-docs/scss/2-quarks/_q_tables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* scss/3-quarks/_q_tables.scss */

table {
width: 100%;
}

th,
td:first-child {
font-weight: 600;
}

th {
padding-bottom: my-bs(1);
}

td,
th {
text-align: left;
vertical-align: baseline;
}

tr:first-child {
width: max-content;
}


td {
padding-right: var(--base-unit--ss);
padding-bottom: my-bs(1);
word-break: break-word;

}
134 changes: 78 additions & 56 deletions atomic-docs/scss/3-atoms/_a_headings.scss
Original file line number Diff line number Diff line change
@@ -1,100 +1,122 @@
/* scss/3-atoms/_a_headings.scss */

h1,h2,h3,h4,h5,h6,
h1,
h2,
h3,
h4,
h5,
h6,
.a_heading {
letter-spacing: -.05rem;
font-weight: 400;
letter-spacing: -.05rem;
font-weight: 400;
}

h6 {
letter-spacing: initial;
letter-spacing: initial;
}



.a_heading--ellipsis {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}




.h0-style {
@include heading($h0-shevy-small);

@media screen and (min-width: $desktop) {
@include heading($h0-shevy);
}

letter-spacing: -.07em;
}

.h1-style,
.h1-styled > * {
.h1-styled>* {
@include heading($h1-shevy);
}

.h2-style,
.h2-styled > * {
.h2-styled>* {
@include heading($h2-shevy);
}

.h3-style,
.h3-styled > * {
@include heading($h3-shevy);
.h3-styled>* {
@include heading($h3-shevy);
}

.h4-style,
.h4-styled > * {
@include heading($h4-shevy);
.h4-styled>* {
@include heading($h4-shevy);
}

.h5-style,
.h5-styled > * {
@include heading($h5-shevy);
.h5-styled>* {
@include heading($h5-shevy);
}

.h6-style,
.h6-styled > * {
@extend h6;
.h6-styled>* {
@extend h6;
}


@media screen and (min-width: $medium) {
.h1-style\@medium {
@include heading($h1-shevy);
}
.h2-style\@medium {
@include heading($h2-shevy);
}
.h3-style\@medium {
@include heading($h3-shevy);
}
.h4-style\@medium {
@include heading($h4-shevy);
}
.h5-style\@medium {
@include heading($h5-shevy);
}
.h6-style\@medium {
font-size: $h6 * 1rem;
}


.h1-styled\@medium > * {
@include heading($h1-shevy);
}
.h2-styled\@medium > * {
@include heading($h2-shevy);
}
.h3-styled\@medium > * {
@include heading($h3-shevy);
}
.h4-styled\@medium > * {
@include heading($h4-shevy);
}
.h5-styled\@medium > * {
@include heading($h5-shevy);
}
.h6-styled\@medium > * {
font-size: $h6 * 1rem;
}
.h1-style\@medium {
@include heading($h1-shevy);
}

.h2-style\@medium {
@include heading($h2-shevy);
}

.h3-style\@medium {
@include heading($h3-shevy);
}

}
.h4-style\@medium {
@include heading($h4-shevy);
}

.h5-style\@medium {
@include heading($h5-shevy);
}

.h6-style\@medium {
font-size: $h6 * 1rem;
}


.h1-styled\@medium>* {
@include heading($h1-shevy);
}

.h2-styled\@medium>* {
@include heading($h2-shevy);
}

.h3-styled\@medium>* {
@include heading($h3-shevy);
}

.h4-styled\@medium>* {
@include heading($h4-shevy);
}

.h5-styled\@medium>* {
@include heading($h5-shevy);
}

.h6-styled\@medium>* {
font-size: $h6 * 1rem;
}



}
2 changes: 2 additions & 0 deletions atomic-docs/scss/3-atoms/_a_image.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.a_image {
position: relative; // allow for positioning of the .u_edit-in-txp component
min-height: max-content;

&--1x1 {
aspect-ratio: 1/1;
}
Expand Down Expand Up @@ -31,6 +32,7 @@
height: 100%;
width: 100%;
}

&--has-caption:not(.a_image--hide-caption) img {
height: auto;
}
Expand Down
1 change: 1 addition & 0 deletions atomic-docs/scss/4-molecules/_4-molecules.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import "_m_menu";
@import "_m_hamburger";
@import "_m_thumb";
@import "_m_video";
11 changes: 0 additions & 11 deletions atomic-docs/scss/4-molecules/_m_hamburger.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,6 @@
}
}
}
//border: 1px solid red;
&__menu {
// position: absolute;
// z-index: -1;
//left: 0;
//width: max-content;
//top: 0;
//right: 0;
//height: max-content;
//background: var(--background-colour);
//margin-top: var(--base-unit);
//right: 0;
}
}
22 changes: 6 additions & 16 deletions atomic-docs/scss/4-molecules/_m_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
.buttons & {
padding: 0 var(--base-unit--ss);
height: min-content;
//border: 2px solid var(--black);
background: var(--black);
color: var(--white);
&--active,
&:hover,
.detail-page & {
background: var(--black);
color: var(--white);
&:hover {
background: var(--white);
color: var(--black);
}
}

Expand Down Expand Up @@ -59,7 +59,6 @@

ul {
display: none;
//top: 0;
width: max-content;
position: absolute;
@include menubg();
Expand All @@ -74,7 +73,7 @@
z-index:2;
width: max-content;
&__current {
font-weight: 500;
font-weight: 400;
cursor: pointer;
&:after{
content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAyMyAxMyIg
Expand All @@ -83,16 +82,13 @@
4wNzU5OTk5IDAuOTU0OTA1WiIgZmlsbD0iIzI3MjcyNyIvPgo8L3N2Zz4K");
display: inline-block;
transform: scale(.62);
// margin-left: var(--base-unit--s);
}
}

&__holder {
position: relative;
> ul {
display: none;
// transform-origin: top;
// transform: scaleY(0);
position: absolute;
z-index: -1;
width: max-content;
Expand All @@ -103,11 +99,6 @@
padding-left: var(--base-unit);
left: calc(var(--base-unit) * -1);
@include menubg();
// padding-top: my-bs(2);
// :hover > & {
// border: 1px solid red;
// transform: scaleY(1);
// }

.m_menu__child--active {
display: none;
Expand All @@ -116,7 +107,6 @@
}
&:hover ul {
display: block;
// background: var(--background-colour);
}


Expand Down
3 changes: 0 additions & 3 deletions atomic-docs/scss/4-molecules/_m_thumb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

.m_thumb {
position: relative;
> a {
//height: 100%;
}
&__image {
aspect-ratio: var(--thumb-aspect-ratio);
}
Expand Down
6 changes: 6 additions & 0 deletions atomic-docs/scss/4-molecules/_m_video.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* scss/6-molecules/_m_video.scss */

.m_video {
position: relative;
max-width: 100%;
}
Loading

0 comments on commit d07bd28

Please sign in to comment.