123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- .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;
- }
- }
- }
|