-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance the readability of the code by changing the name of css classes, add layout.css for global css variables different of colors, see also: #12
- Loading branch information
Showing
7 changed files
with
44 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
.container { | ||
.post { | ||
display: flex; | ||
flex-direction: column; | ||
text-align: justify; | ||
margin: 1.5rem; | ||
|
||
p, | ||
div { | ||
font-size: 1.2rem; | ||
} | ||
font-size: 1.2rem; | ||
|
||
p { | ||
text-indent: 3rem; | ||
} | ||
} | ||
|
||
@media (max-width: 375px) { | ||
p, | ||
div { | ||
font-size: 1.4rem; | ||
} | ||
} | ||
.post__title { | ||
font-size: 2rem; | ||
line-height: 1.3; | ||
font-weight: 800; | ||
letter-spacing: -0.05rem; | ||
} | ||
|
||
.footer { | ||
text-align: center; | ||
font-size: 1.5rem; | ||
margin: 1.5rem 0 0.5rem; | ||
.post__meta { | ||
margin: 0.1rem initial; | ||
text-align: right; | ||
color: #999; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:root { | ||
--maxWidth: 72rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,35 @@ | ||
.headingX1 { | ||
font-size: 2rem; | ||
line-height: 1.3; | ||
font-weight: 800; | ||
letter-spacing: -0.05rem; | ||
} | ||
|
||
@media (max-width: 34rem) { | ||
.headingX1 { | ||
margin-top: 1rem; | ||
} | ||
} | ||
|
||
.headingLg { | ||
font-size: 1.5rem; | ||
line-height: 1.4; | ||
} | ||
|
||
.headingMd { | ||
font-size: 1.2rem; | ||
line-height: 1.5; | ||
} | ||
|
||
.borderCircle { | ||
border-radius: 9999px; | ||
} | ||
|
||
.colorInherit { | ||
color: inherit; | ||
} | ||
|
||
.padding1px { | ||
padding-top: 1px; | ||
} | ||
|
||
.lightText { | ||
color: #999; | ||
} | ||
|
||
.mainContent { | ||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
|
||
padding: 0 1.5rem 2rem 1.5rem; | ||
} | ||
|
||
.shadow { | ||
box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.2); | ||
transition: box-shadow 0.4s; | ||
} | ||
|
||
.shadow:hover { | ||
cursor: pointer; | ||
box-shadow: 4px 4px 2px 1px rgba(0, 0, 0, 0.2); | ||
transition: box-shadow 0.4s; | ||
} | ||
|
||
.adjustText { | ||
.resume__text { | ||
overflow-wrap: break-word; | ||
text-indent: 4rem; | ||
text-align: justify; | ||
font-size: 1.2rem; | ||
} | ||
|
||
.textRight { | ||
text-align: right; | ||
margin: 0.1rem initial; | ||
} | ||
|
||
/* NEW STYLES */ | ||
|
||
.posts {} | ||
|
||
.posts__header { | ||
.posts-list__header { | ||
color: var(--yellow); /* .drac-text-yellow */ | ||
font-size: 2rem; | ||
padding: 1.5rem 0; | ||
} | ||
|
||
.posts__body { | ||
.posts-list__body { | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.posts__body > .item { | ||
.posts-list__body > .item { | ||
margin: 0 0 1.25rem; | ||
font-size: 1.3rem; | ||
} | ||
|
||
.post-date { | ||
color: #999; | ||
} |