Install stylelint

This commit is contained in:
Kaustubh Ladiya 2020-02-14 23:24:33 +05:30
parent fc03761011
commit ea517d5669
No known key found for this signature in database
GPG Key ID: A77FFE5465BD4E7D
8 changed files with 2011 additions and 59 deletions

3
.stylelintrc.json Normal file
View File

@ -0,0 +1,3 @@
{
"extends": ["stylelint-config-standard", "stylelint-prettier/recommended"]
}

View File

@ -47,7 +47,7 @@ body {
} }
.footer { .footer {
padding: 8vh 0px; padding: 8vh 0;
text-align: center; text-align: center;
width: 100%; width: 100%;
} }
@ -76,9 +76,11 @@ body {
0% { 0% {
background-position: 0% 50%; background-position: 0% 50%;
} }
50% { 50% {
background-position: 100% 50%; background-position: 100% 50%;
} }
100% { 100% {
background-position: 0% 50%; background-position: 0% 50%;
} }
@ -86,7 +88,7 @@ body {
.profile div { .profile div {
font-weight: bold; font-weight: bold;
margin: 1.5vh 0px; margin: 1.5vh 0;
} }
.hidden { .hidden {
@ -99,6 +101,17 @@ body {
font-size: 18px; font-size: 18px;
} }
.bottom_section span {
font-weight: bold;
margin-right: 20px;
}
.socials span {
display: inline-block !important;
font-weight: normal !important;
margin-right: 2vw !important;
}
#username span { #username span {
font-family: "Asap Condensed", sans-serif; font-family: "Asap Condensed", sans-serif;
font-size: 24px; font-size: 24px;
@ -122,6 +135,20 @@ body {
font-size: 18px; font-size: 18px;
} }
.projects a {
display: flex;
text-decoration: none;
/* 30px is the gutter size in magic grid */
width: calc(49% - 30px);
/* 49% avoids a weird single column on some wide screens */
}
.socials span a {
font-weight: normal !important;
}
#about a, #about a,
#username a { #username a {
color: #fff !important; color: #fff !important;
@ -136,7 +163,11 @@ body {
#about span { #about span {
display: block; display: block;
margin: 1vh 0px; margin: 1vh 0;
}
.bottom_section span i {
font-size: 15px;
} }
#about span i { #about span i {
@ -144,35 +175,28 @@ body {
} }
#work { #work {
margin: 2vh 0px; margin: 2vh 0;
padding: 4vh 0px !important; padding: 4vh 0 !important;
} }
#forks { #forks {
margin: 2vh 0px; margin: 2vh 0;
padding: 4vh 0px !important; padding: 4vh 0 !important;
} }
.projects { .projects {
margin-left: -15px; margin-left: -15px;
/* align section w/ heading above */
}
.projects a { /* align section w/ heading above */
display: flex;
text-decoration: none;
/* 30px is the gutter size in magic grid */
width: calc(49% - 30px);
/* 49% avoids a weird single column on some wide screens */
} }
.projects section { .projects section {
border: 1px solid rgb(0, 0, 0, 0.08); border: 1px solid rgb(0, 0, 0, 0.08);
border-radius: 5px; border-radius: 5px;
box-shadow: 0px 0px 0px rgb(0, 0, 0, 0); box-shadow: 0 0 0 rgb(0, 0, 0, 0);
color: var(--text-color); color: var(--text-color);
display: inline-block; display: inline-block;
margin: 1vh 0px; margin: 1vh 0;
padding: 2.5vh 5%; padding: 2.5vh 5%;
transform: scale(1); transform: scale(1);
transition: 0.4s ease-in-out; transition: 0.4s ease-in-out;
@ -181,7 +205,7 @@ body {
.projects section:hover { .projects section:hover {
border: 1px solid rgb(0, 0, 0, 0); border: 1px solid rgb(0, 0, 0, 0);
box-shadow: 0px 15px 35px rgb(0, 0, 0, 0.06); box-shadow: 0 15px 35px rgb(0, 0, 0, 0.06);
cursor: pointer; cursor: pointer;
transform: scale(1.03); transform: scale(1.03);
} }
@ -189,8 +213,8 @@ body {
.section_title { .section_title {
font-size: 24px; font-size: 24px;
font-weight: bold; font-weight: bold;
margin: 1vh 0px; margin: 1vh 0;
padding: 0px 1px; padding: 0 1px;
word-wrap: break-word; word-wrap: break-word;
} }
@ -198,41 +222,22 @@ body {
font-family: "Asap", sans-serif; font-family: "Asap", sans-serif;
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
margin: 2vh 0px; margin: 2vh 0;
word-wrap: break-word; word-wrap: break-word;
} }
.bottom_section { .bottom_section {
font-size: 14px; font-size: 14px;
margin: 1vh 0px; margin: 1vh 0;
word-wrap: break-word; word-wrap: break-word;
} }
.bottom_section span {
font-weight: bold;
margin-right: 20px;
}
.bottom_section span i {
font-size: 15px;
}
.socials { .socials {
color: #fff; color: #fff;
margin: 3vh 0px !important; margin: 3vh 0 !important;
text-decoration: none; text-decoration: none;
} }
.socials span {
display: inline-block !important;
font-weight: normal !important;
margin-right: 2vw !important;
}
.socials span a {
font-weight: normal !important;
}
::selection { ::selection {
background: var(--text-color); background: var(--text-color);
color: var(--bg-color); color: var(--bg-color);
@ -261,7 +266,7 @@ body {
background-size: 300% 300%; background-size: 300% 300%;
font-family: "Asap Condensed", sans-serif; font-family: "Asap Condensed", sans-serif;
font-size: 128px; font-size: 128px;
margin: 0px auto !important; margin: 0 auto !important;
transition: background 0.5s ease; transition: background 0.5s ease;
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
@ -271,20 +276,23 @@ body {
0% { 0% {
background-position: 0% 50%; background-position: 0% 50%;
} }
50% { 50% {
background-position: 100% 50%; background-position: 100% 50%;
} }
100% { 100% {
background-position: 0% 50%; background-position: 0% 50%;
} }
} }
#work { #work {
margin: 0px; margin: 0;
} }
.projects { .projects {
margin-left: 0; margin-left: 0;
/* remove neg margin to align w/ header */ /* remove neg margin to align w/ header */
} }

View File

@ -14,7 +14,7 @@
), ),
url("{{{background}}}") center center fixed; url("{{{background}}}") center center fixed;
--height: 50vh; --height: 50vh;
--gradient: linear-gradient(90deg, #009bef, #ff0000); --gradient: linear-gradient(90deg, #009bef, #f00);
} }
#display h1 { #display h1 {

View File

@ -8,5 +8,5 @@
), ),
url("{{{background}}}"); url("{{{background}}}");
--background-background: #fff; --background-background: #fff;
--gradient: linear-gradient(90deg, #009bef, #ff0000); --gradient: linear-gradient(90deg, #009bef, #f00);
} }

1937
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -48,7 +48,11 @@
}, },
"devDependencies": { "devDependencies": {
"eslint": "^6.8.0", "eslint": "^6.8.0",
"prettier": "1.19.1" "prettier": "^1.19.1",
"stylelint": "^13.2.0",
"stylelint-config-prettier": "^8.0.1",
"stylelint-config-standard": "^20.0.0",
"stylelint-prettier": "^1.1.2"
}, },
"snyk": true "snyk": true
} }

View File

@ -32,7 +32,7 @@ header b {
header a { header a {
font-size: 16px; font-size: 16px;
margin: 1.8vh 0px; margin: 1.8vh 0;
margin-left: 4vw; margin-left: 4vw;
color: #000; color: #000;
text-decoration: none; text-decoration: none;
@ -49,11 +49,11 @@ form {
} }
form .button { form .button {
margin: 2vh 0px; margin: 2vh 0;
} }
.input { .input {
margin: 1.5vh 0px !important; margin: 1.5vh 0 !important;
} }
.label { .label {
@ -88,6 +88,11 @@ button:hover {
text-align: right; text-align: right;
} }
.remove i {
font-size: 14px;
margin-right: 3px;
}
#top_image i { #top_image i {
font-size: 20px; font-size: 20px;
position: absolute; position: absolute;
@ -95,7 +100,7 @@ button:hover {
top: 4vh; top: 4vh;
right: 5vw; right: 5vw;
padding: 15px 15px; padding: 15px 15px;
background: #ffffff; background: #fff;
color: rgb(0, 0, 0); color: rgb(0, 0, 0);
border-radius: 50%; border-radius: 50%;
} }
@ -112,9 +117,9 @@ button:hover {
font-size: 17px; font-size: 17px;
line-height: 25px; line-height: 25px;
word-spacing: 1.2px; word-spacing: 1.2px;
margin: 5vh 0px; margin: 5vh 0;
background: transparent; background: transparent;
border: 0px; border: 0;
width: 100%; width: 100%;
font-family: "Questrial", sans-serif; font-family: "Questrial", sans-serif;
resize: none; resize: none;
@ -129,17 +134,12 @@ button:hover {
} }
.remove { .remove {
margin-bottom: 2vh 0px; margin-bottom: 2vh 0;
font-weight: bold; font-weight: bold;
transition: 0.4s ease-in-out; transition: 0.4s ease-in-out;
font-size: 16px; font-size: 16px;
} }
.remove i {
font-size: 14px;
margin-right: 3px;
}
.remove:hover { .remove:hover {
cursor: pointer; cursor: pointer;
color: rgb(255, 70, 70); color: rgb(255, 70, 70);