Refactor CSS (#785)
* Refactor CSS Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Refactor about section Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Refactor CSS for experiences section Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Update education section Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Update projects section Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Update publication + accomplishment section Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Update achievements section Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Refactor footer CSS Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Re-use section title adjustment css for top header Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Refactor navbar CSS Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Refactor sidebar CSS Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Use unified navbar for all pages Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Refactor 404 page CSS Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Refactor list page css Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Fix notes page css Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Refactor single page css Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Introduce color variables Signed-off-by: hossainemruz <hossainemruz@gmail.com> --------- Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
77447b7723
commit
6dc9d1d33d
64 changed files with 2532 additions and 3593 deletions
93
assets/styles/components/buttons.scss
Normal file
93
assets/styles/components/buttons.scss
Normal file
|
@ -0,0 +1,93 @@
|
|||
.btn-dark {
|
||||
background-color: $text-color !important;
|
||||
border-color: $text-color !important;
|
||||
color: $text-over-accent-color !important;
|
||||
@include transition();
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: $accent-color !important;
|
||||
border-color: $accent-color !important;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
|
||||
.btn-info {
|
||||
background-color: $accent-color !important;
|
||||
color: $text-over-accent-color !important;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: $hover-over-accent-color !important;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-outline-info {
|
||||
color: $accent-color !important;
|
||||
border-color: $accent-color !important;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: $accent-color !important;
|
||||
color: $text-over-accent-color !important;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-link {
|
||||
color: $accent-color;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $hover-over-accent-color;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-button {
|
||||
background-color: transparent;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 0.25rem;
|
||||
color: $muted-text-color;
|
||||
}
|
||||
|
||||
.tags {
|
||||
text-align: left;
|
||||
|
||||
li {
|
||||
font-size: 0.5em;
|
||||
list-style-type: none;
|
||||
display: inline-block;
|
||||
background: $accent-color;
|
||||
margin-left: 0.1em;
|
||||
margin-right: 0.1em;
|
||||
}
|
||||
a {
|
||||
color: $text-over-accent-color;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
background-color: $text-color;
|
||||
color: $text-over-accent-color !important;
|
||||
padding: 0.25rem 0.5rem;
|
||||
line-height: 1.5;
|
||||
border-radius: 0.2rem;
|
||||
border: none;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: $accent-color !important;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
|
||||
.filled-button {
|
||||
background-color: $accent-color !important;
|
||||
color: $text-over-accent-color !important;
|
||||
@include transition();
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
background-color: $hover-over-accent-color !important;
|
||||
@include transition();
|
||||
}
|
||||
}
|
88
assets/styles/components/cards.scss
Normal file
88
assets/styles/components/cards.scss
Normal file
|
@ -0,0 +1,88 @@
|
|||
.card {
|
||||
box-shadow: none;
|
||||
@include transition();
|
||||
overflow: hidden;
|
||||
background: $bg-card;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
box-shadow: $box-shadow;
|
||||
border: 1px solid $bg-primary;
|
||||
@include transition();
|
||||
}
|
||||
|
||||
.card-head {
|
||||
height: 172px;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.card-body {
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.card-img-top {
|
||||
@include transition();
|
||||
}
|
||||
|
||||
.card-img-sm {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.card-img-xs {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
background: $bg-card !important;
|
||||
}
|
||||
}
|
||||
|
||||
.post-card {
|
||||
width: 24rem;
|
||||
display: inline-flex;
|
||||
|
||||
.post-card-link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.card {
|
||||
margin: 5px;
|
||||
position: relative;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
.card-img-top {
|
||||
transform: scale(1.2);
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
|
||||
.card-body {
|
||||
padding: 1.25rem !important;
|
||||
padding-bottom: 0 !important;
|
||||
|
||||
.post-summary {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
max-height: 144px;
|
||||
/* fallback */
|
||||
-webkit-line-clamp: 5;
|
||||
/* number of lines to show */
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
}
|
||||
.card-footer {
|
||||
margin-top: auto;
|
||||
|
||||
span {
|
||||
font-size: 10pt;
|
||||
color: $muted-text-color !important;
|
||||
padding-top: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
34
assets/styles/components/images.scss
Normal file
34
assets/styles/components/images.scss
Normal file
|
@ -0,0 +1,34 @@
|
|||
img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
|
||||
&.center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
&.left {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
&.right {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
|
||||
figure {
|
||||
border: 1px solid $border-color;
|
||||
height: -moz-fit-content;
|
||||
height: fit-content;
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
align-self: center;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
caption,
|
||||
figcaption {
|
||||
caption-side: bottom;
|
||||
text-align: center;
|
||||
color: $muted-text-color;
|
||||
}
|
52
assets/styles/components/links.scss
Normal file
52
assets/styles/components/links.scss
Normal file
|
@ -0,0 +1,52 @@
|
|||
a {
|
||||
color: $accent-color;
|
||||
@include transition();
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
text-decoration: $hover-over-accent-color underline;
|
||||
color: $hover-over-accent-color;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
|
||||
.list-link {
|
||||
text-decoration: none;
|
||||
color: $text-color;
|
||||
@include transition();
|
||||
&.active {
|
||||
display: inline;
|
||||
color: $accent-color;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
margin-left: 3px;
|
||||
color: $accent-color;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
|
||||
a.header-anchor {
|
||||
text-decoration: none;
|
||||
color: $heading-color;
|
||||
i,
|
||||
svg {
|
||||
font-size: 10pt;
|
||||
color: $text-color;
|
||||
display: none;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
&:hover {
|
||||
i,
|
||||
svg {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
code {
|
||||
color: $inline-code-color;
|
||||
}
|
||||
}
|
||||
|
||||
.anchor {
|
||||
padding-top: 3.5rem;
|
||||
}
|
33
assets/styles/components/misc.scss
Normal file
33
assets/styles/components/misc.scss
Normal file
|
@ -0,0 +1,33 @@
|
|||
.paginator {
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
margin: auto;
|
||||
vertical-align: bottom;
|
||||
|
||||
.page-item {
|
||||
& > a {
|
||||
color: $accent-color;
|
||||
}
|
||||
&.active,
|
||||
&:hover > a {
|
||||
background-color: $accent-color !important;
|
||||
color: $text-over-accent-color !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 5px;
|
||||
& > code {
|
||||
padding: 10px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@include media('<=large') {
|
||||
pre {
|
||||
margin: 0px;
|
||||
& > code {
|
||||
padding: 0px !important;
|
||||
}
|
||||
}
|
||||
}
|
74
assets/styles/components/tables.scss
Normal file
74
assets/styles/components/tables.scss
Normal file
|
@ -0,0 +1,74 @@
|
|||
table {
|
||||
border-radius: 0.1rem;
|
||||
border: 1px solid $border-color;
|
||||
min-width: 10rem;
|
||||
padding: 0.1rem;
|
||||
thead {
|
||||
tr {
|
||||
background: $accent-color;
|
||||
color: $text-over-accent-color;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
height: 40px !important;
|
||||
color: $text-color;
|
||||
&:nth-child(odd) {
|
||||
background-color: $bg-primary;
|
||||
}
|
||||
&:nth-child(even) {
|
||||
background-color: rgba($accent-color, 0.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
th,
|
||||
td {
|
||||
padding-top: 0.2rem;
|
||||
padding-bottom: 0.2rem;
|
||||
padding-left: 0.5rem;
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.gist {
|
||||
table {
|
||||
border-radius: unset;
|
||||
background: unset;
|
||||
border: unset;
|
||||
padding: unset;
|
||||
|
||||
tr {
|
||||
height: unset !important;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: unset;
|
||||
border-left: unset;
|
||||
border-bottom: unset;
|
||||
}
|
||||
td,
|
||||
tc {
|
||||
border-right: 1px solid $border-color;
|
||||
}
|
||||
|
||||
thead {
|
||||
tr {
|
||||
background: unset;
|
||||
color: unset;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
&:nth-child(odd) {
|
||||
background-color: unset;
|
||||
}
|
||||
&:hover {
|
||||
background: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
62
assets/styles/components/texts.scss
Normal file
62
assets/styles/components/texts.scss
Normal file
|
@ -0,0 +1,62 @@
|
|||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {
|
||||
color: $heading-color;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: $heading-color !important;
|
||||
}
|
||||
|
||||
p {
|
||||
color: $text-color;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 4px solid $accent-color;
|
||||
background-color: rgba($accent-color, 0.05);
|
||||
padding: 0.3rem;
|
||||
padding-left: 1rem;
|
||||
|
||||
& > p {
|
||||
color: $text-color;
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.text-muted {
|
||||
color: $muted-text-color !important;
|
||||
}
|
||||
|
||||
.text-heading {
|
||||
font-weight: bold;
|
||||
color: $muted-text-color;
|
||||
}
|
||||
|
||||
.sub-title {
|
||||
color: $muted-text-color;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
::-moz-selection {
|
||||
@include selection-color();
|
||||
}
|
||||
|
||||
::selection {
|
||||
@include selection-color();
|
||||
}
|
||||
|
||||
@include media('<=small') {
|
||||
h1 {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@include media('<=tiny') {
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue