/
home
/
techb158
/
dev.balacoffee.com
/
resources
/
src
/
assets
/
styles
/
sass
/
globals
/
components
/
/home/techb158/dev.balacoffee.com/resources/src/assets/styles/sass/globals/components
mkdir
upload
Name
Size
Mode
Actions
_accordions.scss
229
0644
edit
dl
rm
_alerts.scss
1324
0644
edit
dl
rm
_avatar.scss
281
0644
edit
dl
rm
_badges.scss
4048
0644
edit
dl
rm
_borders.scss
254
0644
edit
dl
rm
_breadcrumb.scss
1492
0644
edit
dl
rm
_button.scss
5567
0644
edit
dl
rm
_calendar.scss
1336
0644
edit
dl
rm
_card.scss
4232
0644
edit
dl
rm
_carousel.scss
110
0644
edit
dl
rm
_components.scss
769
0644
edit
dl
rm
_customizer.scss
6699
0644
edit
dl
rm
_datatables.scss
172
0644
edit
dl
rm
_daterangepicker.scss
0
0644
edit
dl
rm
_dropdown.scss
2160
0644
edit
dl
rm
_echart.scss
294
0644
edit
dl
rm
_echarts.scss
53
0644
edit
dl
rm
_editor.scss
0
0644
edit
dl
rm
_feather-icon.scss
173
0644
edit
dl
rm
_form.scss
4998
0644
edit
dl
rm
_icon.scss
245
0644
edit
dl
rm
_lists.scss
0
0644
edit
dl
rm
_loader.scss
7258
0644
edit
dl
rm
_modals.scss
137
0644
edit
dl
rm
_nouislider.scss
3677
0644
edit
dl
rm
_pagination.scss
0
0644
edit
dl
rm
_popover.scss
328
0644
edit
dl
rm
_progress.scss
0
0644
edit
dl
rm
_search.scss
836
0644
edit
dl
rm
_select.scss
184
0644
edit
dl
rm
_sidebar.directive.scss
951
0644
edit
dl
rm
_tab.scss
684
0644
edit
dl
rm
_tabs.scss
517
0644
edit
dl
rm
_tag-input.scss
318
0644
edit
dl
rm
_tagging.scss
1015
0644
edit
dl
rm
_toastr.scss
241
0644
edit
dl
rm
_upload.scss
146
0644
edit
dl
rm
_vue-good-table.scss
3297
0644
edit
dl
rm
_vue2-clock-picker.scss
4703
0644
edit
dl
rm
Edit:
/home/techb158/dev.balacoffee.com/resources/src/assets/styles/sass/globals/components/_form.scss
(4998B)
.form-group { position: relative; margin-bottom: 10px; label { font-size: 12px; color: $gray-600; margin-bottom: 4px; } } .form-control { border: initial; outline: initial !important; background: $gray-100; border: 1px solid $gray-400; color: $foreground; &::placeholder { color: $gray-500; } &.rounded, &.form-control-rounded { border-radius: 20px; } } select.form-control { -webkit-appearance: none; } .input-group { [type="text"].form-control { height: 34px; } } .input-group-append { .btn { height: 34px; border: 0; } } .card-input { display: flex; flex-wrap: wrap; legend { margin-right: auto; width: auto; } .ul-widget-list__payment-method { img { height: 24px; width: auto; } } } [ngbdatepicker] { height: 34px; } /* checkbox-custom */ .checkbox { display: block; position: relative; padding-left: 28px; margin-bottom: 12px; cursor: pointer; user-select: none; &:hover input ~ .checkmark { background-color: $gray-500; } input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; &:checked ~ .checkmark { background-color: $primary; } &:checked ~ .checkmark:after { display: block; } &[disabled] ~ * { color: $gray-300; } } .checkmark { position: absolute; top: 0; left: 0; height: 20px; width: 20px; border-radius: 4px; background-color: $gray-300; &:after { content: ""; position: absolute; display: none; left: 0; top: 0; right: 0; width: 4px; bottom: 0; margin: auto; height: 8px; border: solid #{$background}; border-width: 0 2px 2px 0; transform: rotate(45deg); } } } @each $name, $value in $theme-colors { .checkbox-#{$name} { input { &:checked ~ .checkmark { background-color: $value !important; } } } } @each $name, $value in $theme-colors { .checkbox-outline-#{$name} { &:hover input ~ .checkmark { background-color: $gray-200; } input { &:checked ~ .checkmark { background-color: $background !important; } } .checkmark { background: $background; border: 1px solid #{$value}; &:after { border-color: $value; } } } } // RADIO BUTTON .radio { @extend .checkbox; .checkmark { border-radius: 50%; &:after { height: 6px; width: 6px; border-radius: 50%; background: white; } } } @each $name, $value in $theme-colors { .radio-#{$name} { input { &:checked ~ .checkmark { background-color: $value; } } } } @each $name, $value in $theme-colors { .radio-outline-#{$name} { &:hover input ~ .checkmark { background-color: $gray-200; } input { &:checked ~ .checkmark { background-color: $background !important; } } .checkmark { background: $background; border: 1px solid #{$value}; &:after { border: 0; background: $value; } } } } // SWITCH .switch { position: relative; display: inline-block; padding-left: 50px; height: 16px; span:not(.slider) { position: relative; top: -2px; cursor: pointer; } input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; width: 42px; top: 0; left: 0; right: 0; bottom: 0; border-radius: 34px; background-color: $gray-300; -webkit-transition: 0.4s; transition: 0.4s; } .slider:before { position: absolute; content: ""; height: 24px; width: 24px; left: -1px; bottom: -4px; background-color: $background; -webkit-transition: 0.4s; transition: 0.4s; border-radius: 50%; box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12); } input:checked + .slider { background-color: $primary; } input:focus + .slider { box-shadow: 0 0 1px $primary; } input:checked + .slider:before { -webkit-transform: translateX(20px); -ms-transform: translateX(20px); transform: translateX(20px); } } @each $name, $value in $theme-colors { .switch-#{$name} { input:checked + .slider { background-color: $value; } input:focus + .slider { box-shadow: 0 0 1px $value; } } } [dir="rtl"] { .checkbox, .radio { padding-left: 0px; padding-right: 28px; .checkmark { left: auto; right: 0; } } .form-check-label { // margin-right: 1rem !important; } }
Save
cmd:
run