Introduce color variables
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
b34c6860be
commit
6d5d1b9851
35 changed files with 696 additions and 909 deletions
|
@ -49,12 +49,12 @@ body.kind-page {
|
|||
|
||||
.page-item {
|
||||
& > a {
|
||||
color: #248aaa;
|
||||
color: $accent-color;
|
||||
}
|
||||
|
||||
&.active > a {
|
||||
background-color: #248aaa;
|
||||
color: #f9fafc;
|
||||
background-color: $accent-color;
|
||||
color: $text-over-accent-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -84,18 +84,18 @@ body.kind-page {
|
|||
width: 100%;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
}
|
||||
|
||||
&.hide {
|
||||
.content {
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
}
|
||||
.post-card-holder {
|
||||
margin-top: 0.5rem;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ body.kind-page {
|
|||
padding-left: 0.5rem;
|
||||
padding-right: 0.5rem;
|
||||
position: relative;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
.container {
|
||||
|
|
|
@ -1,18 +1,3 @@
|
|||
/* ========= Colors ============
|
||||
Heading: #1C2D41
|
||||
Paragraph: #3C4858
|
||||
Iconography: #8392A5
|
||||
Secondary: #C0CCDA
|
||||
Dirty Snow: #E5E9F2
|
||||
Snow: #F9FAFC
|
||||
|
||||
Magenta: #7551E9
|
||||
Orange: #FF7D51
|
||||
Pink: #ED63D2
|
||||
Green: #2DCA73
|
||||
Yellow: #FFC212
|
||||
*/
|
||||
|
||||
/*
|
||||
Removed smooth scrolling implementation in main.js in favor of
|
||||
simpler css approach.
|
||||
|
@ -35,71 +20,16 @@ html {
|
|||
}
|
||||
|
||||
body {
|
||||
background-color: #f9fafc;
|
||||
background-color: $bg-primary;
|
||||
font-family: 'Mulish';
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {
|
||||
color: #1c2d41;
|
||||
.bg-primary {
|
||||
background-color: $bg-primary !important;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: #1c2d41 !important;
|
||||
}
|
||||
|
||||
p {
|
||||
color: #3c4858;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #248aaa;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #207089;
|
||||
}
|
||||
a.focused {
|
||||
color: #2098d1 !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.bg-white {
|
||||
background-color: #f9fafc !important;
|
||||
}
|
||||
|
||||
.bg-dimmed {
|
||||
background-color: #e5e9f2;
|
||||
}
|
||||
|
||||
.anchor {
|
||||
padding-top: 3.5rem;
|
||||
}
|
||||
|
||||
img.center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
img.left {
|
||||
display: block;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
img.right {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
|
||||
.sub-title {
|
||||
color: #c0ccda;
|
||||
font-size: 10pt;
|
||||
.bg-secondary {
|
||||
background-color: $bg-secondary !important;
|
||||
}
|
||||
|
||||
.flag-icon {
|
||||
|
@ -112,220 +42,36 @@ img.right {
|
|||
display: none !important;
|
||||
}
|
||||
|
||||
/* ====== table ====== */
|
||||
table {
|
||||
border-radius: 0.1rem;
|
||||
background: #e5e9f2;
|
||||
border: 1px solid #c0ccda;
|
||||
padding: 0.1rem;
|
||||
}
|
||||
|
||||
table tr {
|
||||
height: 40px !important;
|
||||
}
|
||||
|
||||
table th,
|
||||
td {
|
||||
padding: 0.5rem;
|
||||
border-left: 1px solid #8392a5;
|
||||
border-bottom: 1px solid #8392a5;
|
||||
}
|
||||
|
||||
table thead tr {
|
||||
background: #248aaa;
|
||||
color: #e5e9f2;
|
||||
}
|
||||
|
||||
tbody tr:nth-child(odd) {
|
||||
background-color: #e5e9f2;
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
background: #c0ccda;
|
||||
}
|
||||
|
||||
/* ====== don't apply css to tables inside gist ====== */
|
||||
.gist table {
|
||||
border-radius: unset;
|
||||
background: unset;
|
||||
border: unset;
|
||||
padding: unset;
|
||||
}
|
||||
|
||||
.gist table tr {
|
||||
height: unset !important;
|
||||
}
|
||||
|
||||
.gist table th,
|
||||
td {
|
||||
padding: unset;
|
||||
border-left: unset;
|
||||
border-bottom: unset;
|
||||
}
|
||||
|
||||
.gist table thead tr {
|
||||
background: unset;
|
||||
color: unset;
|
||||
}
|
||||
|
||||
.gist tbody tr:nth-child(odd) {
|
||||
background-color: unset;
|
||||
}
|
||||
|
||||
.gist tbody tr:hover {
|
||||
background: unset;
|
||||
}
|
||||
|
||||
.gist table td,
|
||||
.gist table tc {
|
||||
border-right: 1px solid #eee;
|
||||
}
|
||||
|
||||
figure {
|
||||
border: 1px solid #c0ccda;
|
||||
height: -moz-fit-content;
|
||||
height: fit-content;
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
align-self: center;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
caption,
|
||||
figcaption {
|
||||
caption-side: bottom;
|
||||
text-align: center;
|
||||
color: #8392a5;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
pre > code {
|
||||
padding: 10px !important;
|
||||
}
|
||||
|
||||
a.header-anchor {
|
||||
text-decoration: none;
|
||||
color: #1c2d41;
|
||||
}
|
||||
|
||||
a.header-anchor i,
|
||||
a.header-anchor svg {
|
||||
font-size: 10pt;
|
||||
color: #3c4858;
|
||||
display: none;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
a.header-anchor:hover i,
|
||||
a.header-anchor:hover svg {
|
||||
display: inline-block;
|
||||
}
|
||||
a.header-anchor code {
|
||||
color: #e83e8c;
|
||||
}
|
||||
|
||||
.content ul > ol,
|
||||
.content ol > ul,
|
||||
.content ul > ul,
|
||||
.content ol > ol,
|
||||
.content li > ol,
|
||||
.content li > ul {
|
||||
-webkit-padding-start: 1rem;
|
||||
padding-inline-start: 1rem;
|
||||
.content {
|
||||
ul > ol,
|
||||
ol > ul,
|
||||
ul > ul,
|
||||
ol > ol,
|
||||
li > ol,
|
||||
li > ul {
|
||||
-webkit-padding-start: 1rem;
|
||||
padding-inline-start: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
kbd {
|
||||
background-color: #248aaa !important;
|
||||
color: #f9fafc;
|
||||
background-color: $accent-color;
|
||||
color: $text-over-accent-color;
|
||||
}
|
||||
|
||||
mark {
|
||||
background-color: #ffc21280;
|
||||
background-color: $highlight-color;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
/* ======= Paginator ========= */
|
||||
.paginator {
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
margin: auto;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.paginator .page-item > a {
|
||||
color: #248aaa;
|
||||
}
|
||||
|
||||
.paginator .page-item.active > a {
|
||||
background-color: #248aaa;
|
||||
color: #f9fafc;
|
||||
}
|
||||
|
||||
/* ============= Media Query Template ======= */
|
||||
@include media('<medium') {
|
||||
}
|
||||
@include media('>=medium','<large') {
|
||||
}
|
||||
@include media('>=large','<very-large') {
|
||||
}
|
||||
@include media('>=very-large','<extra-large') {
|
||||
}
|
||||
@include media('>=extra-large') {
|
||||
}
|
||||
|
||||
/* Large screens such as TV */
|
||||
@media only screen and (min-width: 1824px) {
|
||||
}
|
||||
|
||||
/* Extra large devices (large desktops, 1200px and up) */
|
||||
|
||||
@media (max-width: 1400px) {
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
}
|
||||
|
||||
/* IPad Pro */
|
||||
@media (max-width: 1024px) {
|
||||
.content-section .languageSelector {
|
||||
position: fixed;
|
||||
right: 0.5rem;
|
||||
bottom: 1rem;
|
||||
z-index: 10000000;
|
||||
background-color: #f9fafc;
|
||||
box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
|
||||
}
|
||||
pre {
|
||||
margin: 0px;
|
||||
}
|
||||
code {
|
||||
padding: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Large devices (desktops, 992px and up) */
|
||||
|
||||
@media (max-width: 992px) {
|
||||
}
|
||||
|
||||
/* Medium devices (tablets, 768px and up) */
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
}
|
||||
|
||||
/* Small devices (landscape phones, 576px and up) */
|
||||
|
||||
@media only screen and (max-width: 576px) {
|
||||
.skills-section .container,
|
||||
.projects-section .container,
|
||||
.publications-section .container {
|
||||
padding-left: 0.3rem;
|
||||
padding-right: 0.3rem;
|
||||
@include media('<=small') {
|
||||
.skills-section,
|
||||
.projects-section,
|
||||
.publications-section {
|
||||
.container {
|
||||
padding-left: 0.3rem;
|
||||
padding-right: 0.3rem;
|
||||
}
|
||||
}
|
||||
|
||||
.section-holder {
|
||||
|
@ -341,36 +87,4 @@ mark {
|
|||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0px;
|
||||
}
|
||||
code {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* iPhoneX, iPhone 6,7,8 */
|
||||
@media only screen and (max-width: 375px) {
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Galaxy S5, Moto G4 */
|
||||
@media only screen and (max-width: 360px) {
|
||||
h1 {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* iPhone 5 or before */
|
||||
@media only screen and (max-width: 320px) {
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ body.type-notes {
|
|||
|
||||
.note-title {
|
||||
padding-left: 1rem;
|
||||
color: #248aaa;
|
||||
color: $accent-color;
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
|
@ -56,11 +56,11 @@ body.type-notes {
|
|||
width: 98%;
|
||||
height: 100%;
|
||||
margin-bottom: -26px;
|
||||
border-bottom: 1px solid #248aaa;
|
||||
border-bottom: 1px solid $accent-color;
|
||||
}
|
||||
|
||||
span {
|
||||
background: #e5e9f2;
|
||||
background: $bg-secondary;
|
||||
padding-right: 5px;
|
||||
}
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ body.type-notes {
|
|||
max-width: 100%;
|
||||
order: 2;
|
||||
padding-bottom: 0.5rem;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
|
||||
.content {
|
||||
overflow: hidden;
|
||||
|
@ -97,7 +97,7 @@ body.type-notes {
|
|||
padding-left: 0.5rem;
|
||||
padding-right: 0.5rem;
|
||||
position: relative;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
.note-card {
|
||||
flex: 50%;
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ body.type-notes {
|
|||
|
||||
&.hide {
|
||||
max-width: 60%;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -119,13 +119,13 @@ body.type-notes {
|
|||
.note-card-holder .note-card {
|
||||
max-width: 50%;
|
||||
min-width: 50%;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
}
|
||||
|
||||
.content-section.hide .note-card-holder .note-card {
|
||||
max-width: 100%;
|
||||
min-width: 100%;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -141,16 +141,16 @@ body.type-notes {
|
|||
width: 100%;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
|
||||
.note-card-holder {
|
||||
margin-top: 0.5rem;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
|
||||
.note-card {
|
||||
flex: 100%;
|
||||
max-width: 100%;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -159,13 +159,13 @@ body.type-notes {
|
|||
max-width: 100%;
|
||||
padding-left: 0;
|
||||
width: 100%;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
|
||||
.content {
|
||||
.note-card-holder {
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
body.kind-page {
|
||||
background-color: #e5e9f2;
|
||||
background-color: $bg-secondary;
|
||||
position: relative;
|
||||
|
||||
.wrapper {
|
||||
|
@ -20,11 +20,10 @@ body.kind-page {
|
|||
padding-right: 1rem;
|
||||
|
||||
.content {
|
||||
background: #e5e9f2;
|
||||
padding-top: 1.5rem;
|
||||
|
||||
.read-area {
|
||||
background-color: #f9fafc;
|
||||
background-color: $bg-primary;
|
||||
|
||||
.hero-area {
|
||||
margin-top: 3rem;
|
||||
|
@ -55,12 +54,9 @@ body.kind-page {
|
|||
width: 120px;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
background-color: #f9fafc;
|
||||
background-color: $bg-primary;
|
||||
padding: 5px;
|
||||
}
|
||||
p {
|
||||
color: #8392a5;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
|
@ -84,19 +80,6 @@ body.kind-page {
|
|||
h6 {
|
||||
margin-top: 1.3rem;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 4px solid #248aaa;
|
||||
background-color: #248baa15;
|
||||
padding: 0.3rem;
|
||||
padding-left: 1rem;
|
||||
|
||||
& > p {
|
||||
color: #3c4858;
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.next-prev-navigator {
|
||||
|
@ -120,7 +103,7 @@ body.kind-page {
|
|||
flex: 20%;
|
||||
order: 3;
|
||||
max-width: 20%;
|
||||
transition: all ease-out 0.5s;
|
||||
@include transition();
|
||||
|
||||
.toc-holder {
|
||||
position: sticky;
|
||||
|
@ -128,14 +111,14 @@ body.kind-page {
|
|||
padding-top: 1rem;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
background-color: #f9fafc;
|
||||
background-color: $bg-primary;
|
||||
margin-right: 0.5rem;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
|
||||
.toc {
|
||||
position: relative;
|
||||
padding-top: 0px;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
|
||||
nav {
|
||||
padding-top: 0px;
|
||||
|
@ -143,7 +126,7 @@ body.kind-page {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
transition: all ease-out 0.3s;
|
||||
@include transition();
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
|
@ -155,17 +138,17 @@ body.kind-page {
|
|||
.nav-link {
|
||||
padding: 0;
|
||||
padding-left: 0.5rem;
|
||||
transition: all ease-out 0.3s;
|
||||
color: #1c2d41;
|
||||
@include transition();
|
||||
color: $heading-color;
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&.active {
|
||||
padding-left: 1rem;
|
||||
padding-right: 0.5rem;
|
||||
background-color: #248aaa;
|
||||
color: #f9f9f9;
|
||||
transition: all ease-out 0.3s;
|
||||
background-color: $accent-color;
|
||||
color: $text-over-accent-color;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -193,21 +176,21 @@ body.kind-page {
|
|||
position: fixed;
|
||||
bottom: 0rem;
|
||||
right: 1rem;
|
||||
color: #248aaa;
|
||||
color: $accent-color;
|
||||
font-size: 24pt;
|
||||
z-index: 900000;
|
||||
visibility: hidden;
|
||||
|
||||
&:hover {
|
||||
color: #2098d1;
|
||||
color: $hover-over-accent-color;
|
||||
}
|
||||
&.show {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
i {
|
||||
box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
|
||||
background-color: #f9f9f9;
|
||||
box-shadow: $box-shadow;
|
||||
background-color: $bg-primary;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue