Skip to content

Commit

Permalink
refactor(documentation-website): sort css properties in alphabetical …
Browse files Browse the repository at this point in the history
…order (#534)

Was it needed? No. Did I do it for fun? Yes.
  • Loading branch information
marikadeveloper committed Apr 29, 2024
1 parent f23a3c8 commit b829f6c
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion documentation-website/src/components/code.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.hljs {
background: var(--background-offset);
padding: 0.5em;
overflow-x: scroll;
padding: 0.5em;

> code {
display: block;
Expand Down
6 changes: 3 additions & 3 deletions documentation-website/src/components/contributor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

img {
border-radius: 50%;
border: 1px solid var(--highlight-color);
justify-self: center;
max-width: 200px;
place-self: center center;
justify-self: center;
border: 1px solid var(--highlight-color);
}

h2 {
Expand All @@ -17,7 +17,7 @@

@media only screen and (width >= 600px) {
.contributor {
padding: 2em 3em;
grid-template-columns: 1fr 2fr;
padding: 2em 3em;
}
}
26 changes: 13 additions & 13 deletions documentation-website/src/components/cookie-consent.scss
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
.cookie-consent {
background-color: var(--background-color);
color: var(--text-color);
padding: 1.25em;
border-radius: 5px;
bottom: 20px;
box-shadow: 0 0 5px var(--shadow);
color: var(--text-color);
display: flex;
flex-direction: column;
position: fixed;
bottom: 20px;
z-index: 100;
left: 10px;
max-width: 410px;
box-shadow: 0 0 5px var(--shadow);
padding: 1.25em;
position: fixed;
z-index: 100;

.cookie-consent-description {
text-align: left;
width: 100%;
display: block;
margin-bottom: 0.75em;
text-align: left;
width: 100%;
}

.cookie-title {
font-size: 1.2em;
margin: 0;
text-align: left;
font-size: 1.2em;
}

ul,
Expand All @@ -40,9 +40,9 @@
}

li.service input {
width: 1em;
height: 1em;
border: 1px solid var(--highlight-color);
height: 1em;
width: 1em;
}

li.service input:checked {
Expand All @@ -51,17 +51,17 @@

.cookie-consent-buttons {
display: flex;
gap: 0.5em;
justify-content: flex-start;
width: 100%;
gap: 0.5em;
}

.cookie-consent-accept-button,
.cookie-consent-decline-button,
.cookie-consent-custom-button {
padding: 20px;
border-radius: 10px;
cursor: pointer;
padding: 20px;
}

.cookie-consent-accept-button {
Expand Down
6 changes: 3 additions & 3 deletions documentation-website/src/components/external-link.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.external-link {
color: var(--text-color);
display: flex;
gap: 5px;
color: var(--text-color);

.external-link-icon {
width: 1em;
height: 1em;
color: var(--text-color);
height: 1em;
width: 1em;
}
}
10 changes: 5 additions & 5 deletions documentation-website/src/components/faq-item.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
.faq-item {
width: 100%;
list-style-type: none;
border-bottom: 1px solid var(--text-color);
list-style-type: none;
width: 100%;

&:focus {
box-shadow: 0 0 2em var(--shadow);
}

.accordion-section {
align-items: center;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
}

.up-arrow,
.down-arrow {
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
height: 0;
width: 0;
}

.up-arrow {
Expand Down
2 changes: 1 addition & 1 deletion documentation-website/src/components/youtube.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.youtube iframe {
border-width: 0;
display: block;
width: 100%;
border-width: 0;
}
14 changes: 7 additions & 7 deletions documentation-website/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
}

html {
height: 100vh;
background: var(--background-color);
color: var(--text-color);
height: 100vh;
}

body {
Expand All @@ -50,8 +50,8 @@ h3,
h4,
h5,
p {
padding-top: 0.5em;
padding-bottom: 0.5em;
padding-top: 0.5em;
}

h1,
Expand Down Expand Up @@ -149,9 +149,9 @@ nav {
}

article {
min-height: calc(100vh - 6em - 2rem - 2em - 6px);
max-width: 1024px;
margin: 0 auto;
max-width: 1024px;
min-height: calc(100vh - 6em - 2rem - 2em - 6px);
}

.dark-mode #loader span {
Expand All @@ -160,8 +160,8 @@ article {

.dark-mode-icon {
// unused
padding: 0;
color: var(--text-color);
padding: 0;
width: 70%;
}

Expand Down Expand Up @@ -206,10 +206,10 @@ article {
}

.title-card {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2em 3em;
}

Expand Down Expand Up @@ -243,8 +243,8 @@ article {
}

.faq-ul-list {
width: 100%;
padding: 0;
width: 100%;
}
}

Expand Down

0 comments on commit b829f6c

Please sign in to comment.