Skip to content

Commit

Permalink
codestyle: fix Codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
logic-fabric committed Nov 3, 2021
1 parent 170485f commit f10b21c
Show file tree
Hide file tree
Showing 14 changed files with 173 additions and 153 deletions.
2 changes: 1 addition & 1 deletion css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 12 additions & 9 deletions css/scss/base/_responsive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ $iefix: 0.01px;
}

&.has-gutter#{$suffix} > .offset-lg#{$i} {
margin-left: calc(
(100% / #{$nb-cols}) * #{$i} + #{$size} / 2 - #{$iefix}
);
margin-left:
calc(
(100% / #{$nb-cols}) * #{$i} + #{$size} / 2 - #{$iefix}
);
}
}
}
Expand All @@ -85,9 +86,10 @@ $iefix: 0.01px;
}

&.has-gutter#{$suffix} > .offset-md#{$i} {
margin-left: calc(
(100% / #{$nb-cols}) * #{$i} + #{$size} / 2 - #{$iefix}
);
margin-left:
calc(
(100% / #{$nb-cols}) * #{$i} + #{$size} / 2 - #{$iefix}
);
}
}
}
Expand All @@ -110,9 +112,10 @@ $iefix: 0.01px;
}

&.has-gutter#{$suffix} > .offset-sm#{$i} {
margin-left: calc(
(100% / #{$nb-cols}) * #{$i} + #{$size} / 2 - #{$iefix}
);
margin-left:
calc(
(100% / #{$nb-cols}) * #{$i} + #{$size} / 2 - #{$iefix}
);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions css/scss/base/_tags.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ html {
}

*,
*:before,
*:after {
*::before,
*::after {
box-sizing: inherit;
}

Expand All @@ -30,12 +30,12 @@ a {

abbr {
padding: 0 0.125rem;

&[title] {
text-decoration: none;
}
}


fieldset {
padding: 0;
border: none;
Expand Down
2 changes: 1 addition & 1 deletion css/scss/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
&:hover {
background: $secondary-500;
}
}
}
14 changes: 8 additions & 6 deletions css/scss/components/_modals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $open-modal-duration: 800ms;

opacity: 0;
}

to {
top: 0;

Expand All @@ -27,6 +28,8 @@ $open-modal-duration: 800ms;
}

.c-modal {
@include medium-box-shadow;

display: flex;
flex-wrap: wrap;
position: relative;
Expand All @@ -35,7 +38,6 @@ $open-modal-duration: 800ms;
margin: 5rem auto;
padding: 2.5rem 2rem 1rem 2rem;
border-radius: 0.5rem;
@include medium-box-shadow;
overflow: hidden;

color: white;
Expand Down Expand Up @@ -89,6 +91,10 @@ $open-modal-duration: 800ms;
height: auto;
}

&__button-box {
display: flex;
}

&--signin-success {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -174,7 +180,7 @@ $open-modal-duration: 800ms;
}

&.no-mt {
margin: 0rem 0 0.875rem 0;
margin: 0 0 0.875rem 0;
}
}

Expand Down Expand Up @@ -254,10 +260,6 @@ $open-modal-duration: 800ms;
}
}

&__button-box {
display: flex;
}

button {
margin: 1.5rem auto 1rem auto;
}
Expand Down
4 changes: 2 additions & 2 deletions css/scss/layout/_footer.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
footer {
z-index: $z-header-footer;

padding: 5rem 0 3rem 0;

color: $primary-500;
Expand All @@ -14,4 +14,4 @@ footer {

text-align: center;
}
}
}
3 changes: 2 additions & 1 deletion css/scss/layout/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ header {

nav.side-nav {
ul {
@include medium-box-shadow;

display: flex;

padding: 0.25rem 0.5rem;
@include medium-box-shadow;

font-size: $txt-size;
}
Expand Down
6 changes: 4 additions & 2 deletions css/scss/layout/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ main {
}

.l-hero {
@include medium-box-shadow;

position: relative;

height: 40rem;
border-radius: 0.5rem;
@include medium-box-shadow;
overflow: hidden;

background: $neutral-800;
Expand Down Expand Up @@ -83,9 +84,10 @@ main {

@media (max-width: $small-breakpoint - 1) {
.l-hero {
height: auto;
@include no-box-shadow;

height: auto;

background: white;

&__heading,
Expand Down
4 changes: 3 additions & 1 deletion css/scss/pages/_home.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.p-home__content {
@include large-wrapping;

padding: 0 2.5rem;

@media (max-width: $small-breakpoint - 1) {
@include small-wrapping;

padding: 0 1.5rem;
}
}
}
14 changes: 8 additions & 6 deletions css/scss/vendors/_normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/

html {
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
Expand Down Expand Up @@ -62,7 +62,7 @@ hr {
*/

pre {
font-family: monospace, monospace; /* 1 */
font-family: monospace; /* 1 */
font-size: 1em; /* 2 */
}

Expand Down Expand Up @@ -105,7 +105,7 @@ strong {
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-family: monospace; /* 1 */
font-size: 1em; /* 2 */
}

Expand Down Expand Up @@ -174,7 +174,8 @@ textarea {
*/

button,
input { /* 1 */
input {
/* 1 */
overflow: visible;
}

Expand All @@ -184,7 +185,8 @@ input { /* 1 */
*/

button,
select { /* 1 */
select {
/* 1 */
text-transform: none;
}

Expand Down Expand Up @@ -346,4 +348,4 @@ template {

[hidden] {
display: none;
}
}
Loading

0 comments on commit f10b21c

Please sign in to comment.