* Add copy code button * External package not needed * Improve alignement * Update button style + add feedback on click Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Update dependencies Signed-off-by: hossainemruz <hossainemruz@gmail.com> --------- Signed-off-by: hossainemruz <hossainemruz@gmail.com> Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
217 lines
5.1 KiB
SCSS
217 lines
5.1 KiB
SCSS
.btn-dark {
|
|
background-color: get-light-color('text-color') !important;
|
|
border-color: get-light-color('text-color') !important;
|
|
color: get-light-color('text-over-accent-color') !important;
|
|
@include transition();
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background-color: get-light-color('accent-color') !important;
|
|
border-color: get-light-color('accent-color') !important;
|
|
@include transition();
|
|
}
|
|
}
|
|
|
|
.btn-info {
|
|
background-color: get-light-color('accent-color') !important;
|
|
color: get-light-color('text-over-accent-color') !important;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background-color: get-light-color('hover-over-accent-color') !important;
|
|
}
|
|
}
|
|
|
|
.btn-outline-info {
|
|
color: get-light-color('accent-color') !important;
|
|
border-color: get-light-color('accent-color') !important;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background-color: get-light-color('accent-color') !important;
|
|
color: get-light-color('text-over-accent-color') !important;
|
|
}
|
|
}
|
|
|
|
.btn-link {
|
|
color: get-light-color('accent-color');
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: get-light-color('hover-over-accent-color');
|
|
}
|
|
}
|
|
|
|
.nav-button {
|
|
background-color: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: 0.25rem;
|
|
color: get-light-color('muted-text-color');
|
|
}
|
|
|
|
.navbar-toggler {
|
|
border: none;
|
|
&:focus {
|
|
border: none;
|
|
outline: none !important;
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
.tags {
|
|
text-align: left;
|
|
padding-top: 0.5em;
|
|
li {
|
|
font-size: 0.5em;
|
|
list-style-type: none;
|
|
display: inline-block;
|
|
margin-left: 0.2em;
|
|
margin-right: 0.2em;
|
|
margin-top: 0.6em;
|
|
margin-bottom: 0.6em;
|
|
}
|
|
a {
|
|
text-decoration: none !important;
|
|
}
|
|
}
|
|
|
|
.icon-button {
|
|
background-color: get-light-color('text-color');
|
|
color: get-light-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: get-light-color('accent-color') !important;
|
|
@include transition();
|
|
}
|
|
}
|
|
|
|
.filled-button {
|
|
background-color: get-light-color('accent-color') !important;
|
|
color: get-light-color('text-over-accent-color') !important;
|
|
@include transition();
|
|
|
|
&:hover,
|
|
&:active {
|
|
background-color: get-light-color('hover-over-accent-color') !important;
|
|
@include transition();
|
|
}
|
|
}
|
|
|
|
.copy-code-button {
|
|
float: right;
|
|
margin-top: 0.5em;
|
|
margin-left: -2.6em;
|
|
margin-right: 3em;
|
|
|
|
background-color: get-light-color('text-color') !important;
|
|
color: get-light-color('inverse-text-color') !important;
|
|
padding: 0.25rem 0.5rem;
|
|
line-height: 1.5;
|
|
border-radius: 0.2rem;
|
|
border: none;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background-color: get-light-color('accent-color') !important;
|
|
color: get-light-color('text-over-accent-color') !important;
|
|
@include transition();
|
|
}
|
|
&:focus {
|
|
&::before {
|
|
content: 'Copied!';
|
|
position: absolute;
|
|
padding: 0.3em;
|
|
border-radius: 0.2em;
|
|
margin-left: -5em;
|
|
margin-top: -0.2em;
|
|
background-color: get-light-color('accent-color') !important;
|
|
color: get-light-color('text-over-accent-color') !important;
|
|
@include transition();
|
|
}
|
|
}
|
|
}
|
|
|
|
html[data-theme='dark'] {
|
|
.btn-dark {
|
|
background-color: get-dark-color('accent-color') !important;
|
|
border-color: get-dark-color('accent-color') !important;
|
|
color: get-dark-color('text-over-accent-color') !important;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background-color: get-dark-color('hover-over-accent-color') !important;
|
|
border-color: get-dark-color('hover-over-accent-color') !important;
|
|
}
|
|
}
|
|
|
|
.btn-info {
|
|
background-color: get-dark-color('bg-card') !important;
|
|
color: get-dark-color('text-color') !important;
|
|
border: 1px solid get-dark-color('muted-text-color') !important;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background-color: get-dark-color('hover-over-accent-color') !important;
|
|
}
|
|
}
|
|
|
|
.btn-outline-info {
|
|
color: get-dark-color('accent-color') !important;
|
|
border-color: get-dark-color('accent-color') !important;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background-color: get-dark-color('accent-color') !important;
|
|
color: get-dark-color('text-over-accent-color') !important;
|
|
}
|
|
}
|
|
|
|
.btn-link {
|
|
color: get-dark-color('accent-color');
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: get-dark-color('hover-over-accent-color');
|
|
}
|
|
}
|
|
|
|
.nav-button {
|
|
color: get-dark-color('muted-text-color');
|
|
}
|
|
|
|
.icon-button {
|
|
background-color: get-dark-color('muted-text-color');
|
|
color: get-dark-color('text-over-accent-color') !important;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background-color: get-dark-color('accent-color') !important;
|
|
}
|
|
}
|
|
|
|
.filled-button {
|
|
background-color: get-dark-color('accent-color') !important;
|
|
color: get-dark-color('text-over-accent-color') !important;
|
|
|
|
&:hover,
|
|
&:active {
|
|
background-color: get-dark-color('hover-over-accent-color') !important;
|
|
}
|
|
}
|
|
.copy-code-button {
|
|
background-color: get-dark-color('bg-primary') !important;
|
|
color: get-dark-color('muted-text-color') !important;
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&::before {
|
|
background-color: get-dark-color('accent-color') !important;
|
|
color: get-dark-color('text-over-accent-color') !important;
|
|
}
|
|
}
|
|
}
|