1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 01:44:25 +04:00

code cleanup

This commit is contained in:
codecalm
2020-11-08 15:35:01 +01:00
parent 64741eed8a
commit f76ac3c29a
21 changed files with 34 additions and 33 deletions

View File

@@ -3,7 +3,7 @@ $code-yellow: #ffe484;
$code-purple: #d9a9ff; $code-purple: #d9a9ff;
$code-red: #ff8383; $code-red: #ff8383;
$code-blue: #93ddfd; $code-blue: #93ddfd;
//$code-white: #ffffff; //$code-white: $white;
$code-gray: #a0aec0; $code-gray: #a0aec0;
pre.highlight, pre.highlight,

View File

@@ -196,7 +196,7 @@ Navbar
.navbar-dark { .navbar-dark {
.nav-item.active { .nav-item.active {
.nav-link { .nav-link {
background-color: rgba(#000, .1); background-color: rgba($black, .1);
} }
} }
} }

View File

@@ -38,7 +38,7 @@
background: $gray-500; background: $gray-500;
@if ($is-dark) { @if ($is-dark) {
background: mix(#ffffff, $dark, 20%); background: mix($white, $dark, 20%);
} @else { } @else {
background: $gray-500; background: $gray-500;
} }

View File

@@ -8,10 +8,10 @@
} }
} }
.alert{ .alert {
a{ a {
display: inline-block; display: inline-block;
height:100%; height: 100%;
.icon { .icon {
height: 100%; height: 100%;

View File

@@ -26,7 +26,7 @@
right: 0; right: 0;
bottom: 0; bottom: 0;
border-radius: $border-radius-full; border-radius: $border-radius-full;
box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px $white;
} }
@at-root a#{&} { @at-root a#{&} {
@@ -73,7 +73,7 @@
.avatar-list-stacked { .avatar-list-stacked {
.avatar { .avatar {
margin-right: -.5rem !important; margin-right: -.5rem !important;
box-shadow: 0 0 0 2px #fff; box-shadow: 0 0 0 2px $white;
@at-root .card-footer & { @at-root .card-footer & {
box-shadow: 0 0 0 2px $card-cap-bg; box-shadow: 0 0 0 2px $card-cap-bg;

View File

@@ -88,7 +88,7 @@
&.range-start, &.range-start,
&.range-end { &.range-end {
.date-item { .date-item {
color: #fff; color: $white;
background: $primary; background: $primary;
border-color: $primary; border-color: $primary;
} }

View File

@@ -347,7 +347,7 @@ Card code
pre { pre {
margin: 0; margin: 0;
color: #ffffff; color: $white;
text-shadow: none; text-shadow: none;
background: transparent; background: transparent;
} }

View File

@@ -88,7 +88,7 @@
} }
.dropright { .dropright {
>.dropdown-menu { > .dropdown-menu {
margin-top: subtract(-$dropdown-padding-y, 1px); margin-top: subtract(-$dropdown-padding-y, 1px);
margin-left: 0; margin-left: 0;
} }
@@ -103,7 +103,7 @@
.dropdown-menu-card { .dropdown-menu-card {
padding: 0; padding: 0;
>.card { > .card {
margin: 0; margin: 0;
border: 0; border: 0;
box-shadow: none; box-shadow: none;

View File

@@ -61,7 +61,7 @@ Form control
*/ */
.form-control { .form-control {
&:-webkit-autofill { &:-webkit-autofill {
box-shadow: 0 0 0 1000px #ffffff inset; box-shadow: 0 0 0 1000px $white inset;
} }
&:disabled, &:disabled,
@@ -143,7 +143,7 @@ Form help
&:hover, &:hover,
&[aria-describedby] { &[aria-describedby] {
color: #ffffff; color: $white;
background: $primary; background: $primary;
} }
} }

View File

@@ -85,7 +85,7 @@
justify-content: center; justify-content: center;
width: 2.5rem; width: 2.5rem;
height: 2.5rem; height: 2.5rem;
color: #ffffff; color: $white;
text-align: center; text-align: center;
background: $text-muted; background: $text-muted;
border-radius: $border-radius-full; border-radius: $border-radius-full;
@@ -198,7 +198,7 @@ Inline list
.list-inline-dots { .list-inline-dots {
.list-inline-item + .list-inline-item:before { .list-inline-item + .list-inline-item:before {
content: ' · '; content: ' · ';
margin-inline-end: $list-inline-padding; margin-inline-end: $list-inline-padding;
} }
} }

View File

@@ -40,7 +40,7 @@ Markdown
} }
} }
>hr { > hr {
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
margin-top: 3em; margin-top: 3em;
margin-bottom: 3em; margin-bottom: 3em;

View File

@@ -32,7 +32,7 @@
color: $text-muted; color: $text-muted;
text-transform: uppercase; text-transform: uppercase;
.page-item.disabled &{ .page-item.disabled & {
color: $pagination-disabled-color; color: $pagination-disabled-color;
} }
} }
@@ -46,7 +46,7 @@
color: $link-color; color: $link-color;
} }
.page-item.disabled &{ .page-item.disabled & {
color: $pagination-disabled-color; color: $pagination-disabled-color;
} }
} }

View File

@@ -9,7 +9,7 @@
font-size: $h6-font-size; font-size: $h6-font-size;
font-weight: $font-weight-bold; font-weight: $font-weight-bold;
line-height: 1.5rem; line-height: 1.5rem;
color: #fff; color: $white;
text-align: center; text-align: center;
text-transform: uppercase; text-transform: uppercase;
background: $primary; background: $primary;

View File

@@ -81,7 +81,7 @@
box-sizing: content-box; box-sizing: content-box;
display: block; display: block;
content: ""; content: "";
border: 2px solid #fff; border: 2px solid $white;
border-radius: $border-radius-full; border-radius: $border-radius-full;
transform: translateX(-50%); transform: translateX(-50%);
} }
@@ -90,7 +90,7 @@
font-weight: $font-weight-bold; font-weight: $font-weight-bold;
&:before { &:before {
background: #fff; background: $white;
} }
& ~ .step-item { & ~ .step-item {
@@ -123,7 +123,7 @@
&.active ~ .step-item { &.active ~ .step-item {
&:before { &:before {
background: #fff; background: $white;
} }
} }
} }

View File

@@ -1,6 +1,7 @@
.toast-header { .toast-header {
user-select: none; user-select: none;
} }
.toast button[data-dismiss="toast"]{
.toast button[data-dismiss="toast"] {
outline: none; outline: none;
} }

View File

@@ -111,7 +111,7 @@ pre {
tab-size: 3; tab-size: 3;
border-radius: $border-radius; border-radius: $border-radius;
white-space: pre-wrap; white-space: pre-wrap;
background: mix($light, #fff, 50%); background: mix($light, #ffffff, 50%);
-webkit-font-smoothing: auto; -webkit-font-smoothing: auto;
code { code {
@@ -131,7 +131,7 @@ img {
Selection Selection
*/ */
::selection { ::selection {
color: #fff; color: $white;
background-color: lighten($primary, 8%); background-color: lighten($primary, 8%);
} }

View File

@@ -19,7 +19,7 @@ Color Input
display: block; display: block;
width: 1.5rem; width: 1.5rem;
height: 1.5rem; height: 1.5rem;
color: #fff; color: $white;
border: 1px solid $border-color-transparent; border: 1px solid $border-color-transparent;
border-radius: 3px; border-radius: 3px;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);

View File

@@ -38,7 +38,7 @@ Image check
display: block; display: block;
width: $form-check-input-width; width: $form-check-input-width;
height: $form-check-input-width; height: $form-check-input-width;
color: #fff; color: $white;
pointer-events: none; pointer-events: none;
content: ""; content: "";
user-select: none; user-select: none;

View File

@@ -1,10 +1,10 @@
.bg-white-overlay { .bg-white-overlay {
color: #fff; color: $white;
background-color: $light-white; background-color: $light-white;
} }
.bg-dark-overlay { .bg-dark-overlay {
color: #fff; color: $white;
background-color: $light-black; background-color: $light-black;
} }

View File

@@ -15,7 +15,7 @@
.apexcharts-tooltip { .apexcharts-tooltip {
line-height: 1; line-height: 1;
color: #fff; color: $white;
background: $dark !important; background: $dark !important;
border: 0 !important; border: 0 !important;
border-radius: 3px !important; border-radius: 3px !important;

View File

@@ -21,7 +21,7 @@
} }
.fc-button { .fc-button {
//@include button-variant(#ffffff, $border-color, $text-muted); //@include button-variant($white, $border-color, $text-muted);
//@include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-border-radius); //@include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-border-radius);
//@include transition($btn-transition); //@include transition($btn-transition);
} }