added scss, but wont move forward
This commit is contained in:
403
style.css
403
style.css
@@ -1,25 +1,34 @@
|
||||
html {
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
box-sizing: border-box;
|
||||
color: #c9cacc;
|
||||
background-color: #272727;
|
||||
background-color: #110f16;
|
||||
/* background-color: #272727; */
|
||||
font-size: 16px;
|
||||
font-family: 'Source Code Pro', monospace, Arial, Helvetica, sans-serif;
|
||||
font-weight: 400;
|
||||
line-height: 1.725;
|
||||
/* line-height: 1.725; */
|
||||
text-rendering: geometricPrecision;
|
||||
min-height: 100vh;
|
||||
margin: 0 auto;
|
||||
/* margin: 0 auto; */
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
max-width: 560px;
|
||||
/* max-width: 560px; */
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
@@ -46,7 +55,7 @@ nav a:hover {
|
||||
transition: 150ms ease;
|
||||
}
|
||||
|
||||
header {
|
||||
/* header {
|
||||
color: #c9cacc;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
@@ -54,25 +63,50 @@ header {
|
||||
line-height: 1.75rem;
|
||||
border-top: 1.5px solid #666;
|
||||
border-bottom: 1.5px solid #666;
|
||||
}
|
||||
} */
|
||||
|
||||
header img {
|
||||
/* header img {
|
||||
width: 100px;
|
||||
border: 5px solid #666;
|
||||
border-radius: 165px;
|
||||
} */
|
||||
|
||||
.card {
|
||||
background-color: #151515;
|
||||
margin: 2rem;
|
||||
text-align: center;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 10px 25px 5px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.card-top {
|
||||
margin: auto;
|
||||
height: 80px;
|
||||
background: #29f3c3;
|
||||
border-start-end-radius: 10px;
|
||||
border-start-start-radius: 10px;
|
||||
}
|
||||
|
||||
.card img {
|
||||
margin: 40px auto 10px;
|
||||
width: 100px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
/* font-family: 'Source Sans Pro', sans-serif; */
|
||||
/* font-weight: 700; */
|
||||
line-height: 2rem;
|
||||
/* line-height: 2rem; */
|
||||
/* letter-spacing: 0.05rem; */
|
||||
}
|
||||
|
||||
h1 a {
|
||||
font-size: 3rem;
|
||||
font-size: .8em;
|
||||
color: #c9cacc;
|
||||
text-decoration: none;
|
||||
letter-spacing: -.05em;
|
||||
word-spacing: -.05em;
|
||||
|
||||
}
|
||||
|
||||
h1 a:hover {
|
||||
@@ -80,7 +114,7 @@ h1 a:hover {
|
||||
}
|
||||
|
||||
header h2 {
|
||||
font-weight: 200;
|
||||
/* font-weight: 200; */
|
||||
font-size: 1.2rem;
|
||||
letter-spacing: 0.01rem;
|
||||
}
|
||||
@@ -88,7 +122,7 @@ header h2 {
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
letter-spacing: 0.01rem;
|
||||
/* letter-spacing: 0.01rem; */
|
||||
}
|
||||
|
||||
#aboutMe {
|
||||
@@ -277,11 +311,348 @@ footer {
|
||||
transition: 160ms ease-in;
|
||||
}
|
||||
|
||||
code pen begin
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Baloo+2&display=swap');
|
||||
/* This pen */
|
||||
|
||||
.dark {
|
||||
background: #110f16;
|
||||
}
|
||||
.light {
|
||||
background: #f3f5f7;
|
||||
}
|
||||
a,
|
||||
a:hover {
|
||||
text-decoration: none;
|
||||
transition: color 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
/* Cards */
|
||||
.postcard {
|
||||
flex-wrap: wrap;
|
||||
display: flex;
|
||||
box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);
|
||||
border-radius: 10px;
|
||||
margin: 0 0 2rem 0;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
color: #ffffff;
|
||||
}
|
||||
.postcard.dark {
|
||||
background-color: #18151f;
|
||||
}
|
||||
.postcard.light {
|
||||
background-color: #e1e5ea;
|
||||
}
|
||||
.postcard .t-dark {
|
||||
color: #18151f;
|
||||
}
|
||||
.postcard a {
|
||||
color: inherit;
|
||||
}
|
||||
.postcard h1,
|
||||
.postcard .h1 {
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 500;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.postcard .small {
|
||||
font-size: 80%;
|
||||
}
|
||||
.postcard .postcard__title {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
.postcard .postcard__img {
|
||||
max-height: 180px;
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
position: relative;
|
||||
}
|
||||
.postcard .postcard__img_link {
|
||||
display: contents;
|
||||
}
|
||||
.postcard .postcard__bar {
|
||||
width: 50px;
|
||||
height: 10px;
|
||||
margin: 10px 0;
|
||||
border-radius: 5px;
|
||||
background-color: #424242;
|
||||
transition: width 0.2s ease;
|
||||
}
|
||||
.postcard .postcard__text {
|
||||
padding: 1.5rem;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.postcard .postcard__preview-txt {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
text-align: justify;
|
||||
height: 100%;
|
||||
}
|
||||
.postcard .postcard__tagbox {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
font-size: 14px;
|
||||
margin: 20px 0 0 0;
|
||||
padding: 0;
|
||||
justify-content: center;
|
||||
}
|
||||
.postcard .postcard__tagbox .tag__item {
|
||||
display: inline-block;
|
||||
background: rgba(83, 83, 83, 0.4);
|
||||
border-radius: 3px;
|
||||
padding: 2.5px 10px;
|
||||
margin: 0 5px 5px 0;
|
||||
cursor: default;
|
||||
user-select: none;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
.postcard .postcard__tagbox .tag__item:hover {
|
||||
background: rgba(83, 83, 83, 0.8);
|
||||
}
|
||||
.postcard:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-image: linear-gradient(-70deg, #424242, transparent 50%);
|
||||
opacity: 1;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.postcard:hover .postcard__bar {
|
||||
width: 100px;
|
||||
}
|
||||
@media screen and (min-width: 769px) {
|
||||
.postcard {
|
||||
flex-wrap: inherit;
|
||||
}
|
||||
.postcard .postcard__title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
.postcard .postcard__tagbox {
|
||||
justify-content: start;
|
||||
}
|
||||
.postcard .postcard__img {
|
||||
max-width: 300px;
|
||||
max-height: 100%;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
.postcard .postcard__text {
|
||||
padding: 3rem;
|
||||
width: 100%;
|
||||
}
|
||||
.postcard .media.postcard__text:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
display: block;
|
||||
background: #18151f;
|
||||
top: -20%;
|
||||
height: 130%;
|
||||
width: 55px;
|
||||
}
|
||||
.postcard:hover .postcard__img {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.postcard:nth-child(2n + 1) {
|
||||
flex-direction: row;
|
||||
}
|
||||
.postcard:nth-child(2n + 0) {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
.postcard:nth-child(2n + 1) .postcard__text::before {
|
||||
left: -12px !important;
|
||||
transform: rotate(4deg);
|
||||
}
|
||||
.postcard:nth-child(2n + 0) .postcard__text::before {
|
||||
right: -12px !important;
|
||||
transform: rotate(-4deg);
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1024px) {
|
||||
.postcard__text {
|
||||
padding: 2rem 3.5rem;
|
||||
}
|
||||
.postcard__text:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: -20%;
|
||||
height: 130%;
|
||||
width: 55px;
|
||||
}
|
||||
.postcard.dark .postcard__text:before {
|
||||
background: #18151f;
|
||||
}
|
||||
.postcard.light .postcard__text:before {
|
||||
background: #e1e5ea;
|
||||
}
|
||||
}
|
||||
/* COLORS */
|
||||
.postcard .postcard__tagbox .green.play:hover {
|
||||
background: #79dd09;
|
||||
color: black;
|
||||
}
|
||||
.green .postcard__title:hover {
|
||||
color: #79dd09;
|
||||
}
|
||||
.green .postcard__bar {
|
||||
background-color: #79dd09;
|
||||
}
|
||||
.green::before {
|
||||
background-image: linear-gradient(
|
||||
-30deg,
|
||||
rgba(121, 221, 9, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.green:nth-child(2n)::before {
|
||||
background-image: linear-gradient(
|
||||
30deg,
|
||||
rgba(121, 221, 9, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.postcard .postcard__tagbox .blue.play:hover {
|
||||
background: #0076bd;
|
||||
}
|
||||
.blue .postcard__title:hover {
|
||||
color: #0076bd;
|
||||
}
|
||||
.blue .postcard__bar {
|
||||
background-color: #0076bd;
|
||||
}
|
||||
.blue::before {
|
||||
background-image: linear-gradient(
|
||||
-30deg,
|
||||
rgba(0, 118, 189, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.blue:nth-child(2n)::before {
|
||||
background-image: linear-gradient(
|
||||
30deg,
|
||||
rgba(0, 118, 189, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.postcard .postcard__tagbox .red.play:hover {
|
||||
background: #bd150b;
|
||||
}
|
||||
.red .postcard__title:hover {
|
||||
color: #bd150b;
|
||||
}
|
||||
.red .postcard__bar {
|
||||
background-color: #bd150b;
|
||||
}
|
||||
.red::before {
|
||||
background-image: linear-gradient(
|
||||
-30deg,
|
||||
rgba(189, 21, 11, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.red:nth-child(2n)::before {
|
||||
background-image: linear-gradient(
|
||||
30deg,
|
||||
rgba(189, 21, 11, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.postcard .postcard__tagbox .yellow.play:hover {
|
||||
background: #bdbb49;
|
||||
color: black;
|
||||
}
|
||||
.yellow .postcard__title:hover {
|
||||
color: #bdbb49;
|
||||
}
|
||||
.yellow .postcard__bar {
|
||||
background-color: #bdbb49;
|
||||
}
|
||||
.yellow::before {
|
||||
background-image: linear-gradient(
|
||||
-30deg,
|
||||
rgba(189, 187, 73, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.yellow:nth-child(2n)::before {
|
||||
background-image: linear-gradient(
|
||||
30deg,
|
||||
rgba(189, 187, 73, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
@media screen and (min-width: 769px) {
|
||||
.green::before {
|
||||
background-image: linear-gradient(
|
||||
-80deg,
|
||||
rgba(121, 221, 9, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.green:nth-child(2n)::before {
|
||||
background-image: linear-gradient(
|
||||
80deg,
|
||||
rgba(121, 221, 9, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.blue::before {
|
||||
background-image: linear-gradient(
|
||||
-80deg,
|
||||
rgba(0, 118, 189, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.blue:nth-child(2n)::before {
|
||||
background-image: linear-gradient(
|
||||
80deg,
|
||||
rgba(0, 118, 189, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.red::before {
|
||||
background-image: linear-gradient(
|
||||
-80deg,
|
||||
rgba(189, 21, 11, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.red:nth-child(2n)::before {
|
||||
background-image: linear-gradient(
|
||||
80deg,
|
||||
rgba(189, 21, 11, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.yellow::before {
|
||||
background-image: linear-gradient(
|
||||
-80deg,
|
||||
rgba(189, 187, 73, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
.yellow:nth-child(2n)::before {
|
||||
background-image: linear-gradient(
|
||||
80deg,
|
||||
rgba(189, 187, 73, 0.1),
|
||||
transparent 50%
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/* code pen finish */
|
||||
|
||||
/* color: #1b1b1b; */
|
||||
/* color: #2a9d8f */
|
||||
@media (min-width: 576px) {
|
||||
/* @media (min-width: 768px) {
|
||||
#wrapper {
|
||||
width: 560px;
|
||||
max-width: 992px;
|
||||
}
|
||||
|
||||
nav {
|
||||
@@ -375,4 +746,6 @@ footer {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user