Skip to content

Commit ba0e74e

Browse files
committed
Change: add dist files to main repo with the styles from the lyquix website
1 parent 2ef7fa2 commit ba0e74e

38 files changed

+4091
-119
lines changed

css/lib/abstracts/_mixins.dist.scss

+66
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,69 @@
2121
DO NOT MODIFY THIS FILE!
2222
Instead copy it to css/custom/abstracts/_mixins.scss and make your changes there.
2323
*/
24+
@mixin readmore {
25+
align-items: center;
26+
display: flex;
27+
line-height: 1.667;
28+
gap: 20px;
29+
padding: 10px 0;
30+
font-family: "Inter";
31+
font-weight: 600;
32+
@apply text-color-base no-underline;
33+
&:after {
34+
background-image: url(../images/green-arrow.svg);
35+
background-size: 47px 15px;
36+
background-position: right center;
37+
content: " ";
38+
display: block;
39+
height: 15px;
40+
transition: width 0.5s;
41+
width: 47px;
42+
}
43+
//note: some readmore links were added as a block, and the class applies to the parent, not the link. It mostly has the same styles but not the color and underline
44+
a.wp-block-button__link {
45+
color: #595B60 !important;
46+
}
47+
transition: color 0.5s, gap 0.5s;
48+
&:hover {
49+
@apply gap-x-[39px] text-midnight-black;
50+
text-decoration: none;
51+
a.wp-block-button__link {
52+
color: #35393E !important;
53+
text-decoration: none !important;
54+
}
55+
&:after {
56+
@apply w-[28px];
57+
}
58+
}
59+
}
60+
61+
@mixin common-button {
62+
@apply bg-lyquix-green-accessible text-white;
63+
align-items: center;
64+
display: flex;
65+
line-height: 1.667;
66+
justify-content: space-between;
67+
padding: 10px 15px;
68+
width: 152px;
69+
border-radius: 3px;
70+
transition: background-color 0.5s;
71+
&:after {
72+
background-image: url(../images/white-arrow.svg);
73+
background-size: 47px 15px;
74+
background-position: right center;
75+
content: " ";
76+
display: block;
77+
height: 15px;
78+
transition: width 0.5s;
79+
width: 47px;
80+
}
81+
transition: color 0.5s;
82+
&:hover {
83+
@apply text-white bg-midnight-black;
84+
text-decoration: none;
85+
&:after {
86+
width: 28px;
87+
}
88+
}
89+
}

css/lib/abstracts/_variables.dist.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ $headings: h1 h2 h3 h4 h5 h6;
3535
$grid-columns: 14 14 14 14 14;
3636

3737
// List of grid gaps (in pixels) per screen size
38-
$grid-gaps: 8px 8px 8px 8px 8px;
38+
$grid-gaps: 8px 20px 20px 20px 20px;

css/lib/base/_forms.dist.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
input,
2929
textarea,
3030
select {
31-
@apply mx-input border-input-border bg-input-bg p-input font-input text-input;
31+
@apply mx-input border-input-border bg-input-bg p-input font-input text-input rounded-[4px];
3232
outline: none;
3333
border-width: 1px;
3434
border-style: solid;
@@ -51,7 +51,7 @@ select:disabled {
5151
input[type="submit"],
5252
input[type="button"],
5353
input[type="reset"],
54-
button {
54+
button:not(.cta-btn, .pill) {
5555
@apply mx-input border-input-border bg-button-bg px-button-x py-button-y font-button font-bold text-button;
5656
border: none;
5757

css/lib/base/_reset.dist.scss

+6-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ html:focus-within {
5151
}
5252

5353
body {
54-
min-height: 100vh;
54+
min-height: 100dvh;
5555
}
5656

5757
img {
@@ -86,3 +86,8 @@ hr {
8686
scroll-behavior: auto !important;
8787
}
8888
}
89+
90+
.size-full {
91+
width: 100%;
92+
height: auto;
93+
}

css/lib/base/_typography.dist.scss

+20-5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
@use "../abstracts/variables" as *;
2525
@use "../abstracts/mixins" as *;
2626

27+
@import url("https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap");
28+
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&display=swap");
29+
2730
html {
2831
// Set default font-size to 10px, then use rem units for the rest of the stylesheet
2932
font-size: 10px;
@@ -46,7 +49,7 @@ p {
4649

4750
ul,
4851
ol {
49-
@apply list-inside pl-list;
52+
@apply pl-list;
5053
}
5154

5255
ul {
@@ -69,17 +72,21 @@ samp {
6972
}
7073

7174
a {
72-
@apply text-link;
73-
text-decoration: none;
75+
@apply text-lyquix-green-accessible underline;
7476
outline: none;
7577

7678
&:hover {
7779
@apply text-link-hover;
78-
text-decoration: underline;
80+
text-decoration: none;
7981
}
8082

81-
&:visited {
83+
/*&:visited {
8284
@apply text-link-visited;
85+
}*/
86+
}
87+
nav ul li a:not(.button) {
88+
&:hover {
89+
text-decoration: none;
8390
}
8491
}
8592

@@ -98,3 +105,11 @@ a {
98105
}
99106
}
100107
}
108+
109+
.readmore {
110+
@include readmore;
111+
}
112+
113+
h1, h2, h3, h4, h5, h6, p, li, blockquote {
114+
@apply text-pretty;
115+
}

css/lib/components/_accordion.dist.scss

+61-24
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,64 @@
2626
@use "../abstracts/mixins" as *;
2727

2828
.lqx-block-accordion {
29-
.accordion-header {
30-
display: block;
31-
background: none;
32-
outline: none;
33-
border: none;
34-
padding: 0;
35-
width: 100%;
36-
text-align: left;
37-
}
38-
39-
.accordion-panel {
40-
display: grid;
41-
grid-template-rows: 1fr;
42-
transition: grid-template-rows 0.5s ease-out;
43-
44-
&.closed {
45-
grid-template-rows: 0fr;
46-
}
47-
48-
& > div {
49-
overflow: hidden;
50-
}
51-
}
52-
}
29+
@apply grid grid-cols-12 gap-x-[20px];
30+
31+
.accordion {
32+
@apply col-span-full;
33+
34+
.accordion-item {
35+
@apply py-[25px] border-b-[1px] border-[#FFFFFF];
36+
37+
&:first-of-type {
38+
@apply md:pt-[10px];
39+
}
40+
41+
h3 {
42+
@apply m-0;
43+
44+
.accordion-header {
45+
@apply flex ml-0 font-semibold leading-[30px];
46+
background: none;
47+
outline: none;
48+
border: none;
49+
padding: 0;
50+
width: 100%;
51+
text-align: left;
52+
53+
&:after {
54+
transition: transform 0.3s ease;
55+
@apply w-[24px] h-[24px] bg-center bg-no-repeat bg-[url('../images/icons/green-plus.svg')];
56+
}
57+
58+
&[aria-expanded="true"] {
59+
&:after {
60+
@apply rotate-45;
61+
}
62+
}
63+
}
64+
}
65+
66+
.accordion-panel {
67+
display: grid;
68+
grid-template-rows: 1fr;
69+
transition: grid-template-rows 0.5s ease-out;
70+
71+
&.closed {
72+
grid-template-rows: 0fr;
73+
}
74+
75+
& > div {
76+
overflow: hidden;
77+
78+
p {
79+
@apply my-[10px];
80+
}
81+
82+
img {
83+
@apply object-cover w-full rounded-[5px] mt-[5px];
84+
}
85+
}
86+
}
87+
}
88+
}
89+
}

0 commit comments

Comments
 (0)