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
|
@ -1,45 +1,44 @@
|
|||
.btn-dark {
|
||||
background-color: #3c4858 !important;
|
||||
border-color: #3c4858 !important;
|
||||
color: #e5e9f2 !important;
|
||||
transition: all 0.3s ease-out !important;
|
||||
background-color: $text-color !important;
|
||||
border-color: $text-color !important;
|
||||
color: $text-over-accent-color !important;
|
||||
@include transition();
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: #248aaa !important;
|
||||
border-color: #248aaa !important;
|
||||
transition: all 0.3s ease-out !important;
|
||||
background-color: $accent-color !important;
|
||||
border-color: $accent-color !important;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
|
||||
.btn-info {
|
||||
background-color: #248aaa !important;
|
||||
color: #e5e9f2 !important;
|
||||
background-color: $accent-color !important;
|
||||
color: $text-over-accent-color !important;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: #2098d1 !important;
|
||||
color: #e5e9f2 !important;
|
||||
background-color: $hover-over-accent-color !important;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-outline-info {
|
||||
color: #2098d1 !important;
|
||||
border-color: #2098d1 !important;
|
||||
color: $accent-color !important;
|
||||
border-color: $accent-color !important;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: #2098d1 !important;
|
||||
color: #e5e9f2 !important;
|
||||
background-color: $accent-color !important;
|
||||
color: $text-over-accent-color !important;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-link {
|
||||
color: #248aaa;
|
||||
color: $accent-color;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: #207089;
|
||||
color: $hover-over-accent-color;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -47,7 +46,7 @@
|
|||
background-color: transparent;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 0.25rem;
|
||||
color: #8392a5;
|
||||
color: $muted-text-color;
|
||||
}
|
||||
|
||||
.tags {
|
||||
|
@ -57,18 +56,18 @@
|
|||
font-size: 0.5em;
|
||||
list-style-type: none;
|
||||
display: inline-block;
|
||||
background: #248aaa;
|
||||
background: $accent-color;
|
||||
margin-left: 0.1em;
|
||||
margin-right: 0.1em;
|
||||
}
|
||||
a {
|
||||
color: #f9fafc;
|
||||
color: $text-over-accent-color;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
background-color: #3c4858;
|
||||
color: #e5e9f2 !important;
|
||||
background-color: $text-color;
|
||||
color: $text-over-accent-color !important;
|
||||
padding: 0.25rem 0.5rem;
|
||||
line-height: 1.5;
|
||||
border-radius: 0.2rem;
|
||||
|
@ -76,19 +75,19 @@
|
|||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: #248aaa !important;
|
||||
transition: all 0.3s ease-out !important;
|
||||
background-color: $accent-color !important;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
|
||||
.filled-button {
|
||||
color: #f9fafc !important;
|
||||
background-color: #248aaa !important;
|
||||
transition: all 0.3s ease-out;
|
||||
background-color: $accent-color !important;
|
||||
color: $text-over-accent-color !important;
|
||||
@include transition();
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
background-color: #0cafe1 !important;
|
||||
transition: all 0.3 ease-out;
|
||||
background-color: $hover-over-accent-color !important;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
.card {
|
||||
box-shadow: none;
|
||||
transition: all 0.3s ease-out;
|
||||
@include transition();
|
||||
overflow: hidden;
|
||||
background: $bg-card;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
|
||||
border: 1px solid #fff;
|
||||
transition: all 0.3s ease-out;
|
||||
box-shadow: $box-shadow;
|
||||
border: 1px solid $bg-primary;
|
||||
@include transition();
|
||||
}
|
||||
|
||||
.card-head {
|
||||
|
@ -21,7 +22,7 @@
|
|||
}
|
||||
|
||||
.card-img-top {
|
||||
transition: all 0.3s ease-out !important;
|
||||
@include transition();
|
||||
}
|
||||
|
||||
.card-img-sm {
|
||||
|
@ -35,7 +36,7 @@
|
|||
}
|
||||
|
||||
.card-footer {
|
||||
background: #fff;
|
||||
background: $bg-card !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -55,7 +56,7 @@
|
|||
&:focus {
|
||||
.card-img-top {
|
||||
transform: scale(1.2);
|
||||
transition: all 0.3s ease-out;
|
||||
@include transition();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -79,7 +80,7 @@
|
|||
|
||||
span {
|
||||
font-size: 10pt;
|
||||
color: #6c757d !important;
|
||||
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;
|
||||
}
|
|
@ -1,15 +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: #131313;
|
||||
transition: all 0.3s ease-out;
|
||||
&.active {
|
||||
display: inline;
|
||||
color: #2098d1;
|
||||
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;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
margin-left: 3px;
|
||||
color: #2098d1;
|
||||
transition: all 0.3s ease-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
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