PTMagic/Monitor/wwwroot/assets/scss/_form-advanced.scss

685 lines
14 KiB
SCSS

/* =============
Form Advanced
============= */
.error {
color: $danger;
font-size: 12px;
font-weight: 500;
}
/* Form validation */
.parsley-error {
border-color: $danger !important;
}
.parsley-errors-list {
display: none;
margin: 0;
padding: 0;
}
.parsley-errors-list.filled {
display: block;
}
.parsley-errors-list > li {
font-size: 12px;
list-style: none;
color: $danger;
}
/* Datepicker */
.datepicker {
padding: 8px;
th {
font-size: 14px !important;
}
}
.datepicker>div {
display: inherit;
}
.daterangepicker .input-mini {
color: $white;
border: 1px solid lighten($dark,15%);
}
.datepicker table tr td.today, .datepicker table tr td.today:hover,
.datepicker table tr td.today.disabled, .datepicker table tr td.today.disabled:hover,
.datepicker table tr td.selected, .datepicker table tr td.selected:hover,
.datepicker table tr td.selected.disabled, .datepicker table tr td.selected.disabled:hover,
.datepicker table tr td span.active, .datepicker table tr td span.active:hover,
.datepicker table tr td span.active.disabled, .datepicker table tr td span.active.disabled:hover {
background-image: none;
background-color: $custom;
color: $white;
}
.datepicker table tr td span.active:hover, .datepicker table tr td span.active:hover:hover,
.datepicker table tr td span.active.disabled:hover, .datepicker table tr td span.active.disabled:hover:hover,
.datepicker table tr td span.active:active, .datepicker table tr td span.active:hover:active,
.datepicker table tr td span.active.disabled:active, .datepicker table tr td span.active.disabled:hover:active,
.datepicker table tr td span.active.active, .datepicker table tr td span.active:hover.active,
.datepicker table tr td span.active.disabled.active, .datepicker table tr td span.active.disabled:hover.active,
.datepicker table tr td span.active.disabled, .datepicker table tr td span.active:hover.disabled,
.datepicker table tr td span.active.disabled.disabled, .datepicker table tr td span.active.disabled:hover.disabled,
.datepicker table tr td span.active[disabled], .datepicker table tr td span.active:hover[disabled],
.datepicker table tr td span.active.disabled[disabled], .datepicker table tr td span.active.disabled:hover[disabled] {
background-color: $custom;
}
.datepicker table tr td.active, .datepicker table tr td.active:hover, .datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
background-color: $custom !important;
background-image: none;
box-shadow: none;
text-shadow: none;
}
.datepicker thead tr:first-child th:hover, .datepicker tfoot tr th:hover{
background-color: $light-alt;
}
.datepicker-inline {
border: 2px solid lighten($dark,5%);
}
.daterangepicker td.active, .daterangepicker td.active:hover {
background-color: $primary;
border-color: $primary;
}
.daterangepicker .input-mini.active {
border: 1px solid lighten($dark,18%);
}
.daterangepicker .ranges li {
border-radius: 2px;
color: $muted;
font-weight: 600;
font-size: 12px;
background-color: lighten($dark,10%);
border-color:lighten($dark,10%);
}
.daterangepicker select.hourselect, .daterangepicker select.minuteselect,
.daterangepicker select.secondselect, .daterangepicker select.ampmselect{
border: 1px solid lighten($dark,10%);
padding: 2px;
width: 60px;
}
.daterangepicker .ranges li.active, .daterangepicker .ranges li:hover {
background-color: $primary;
border: 1px solid $primary;
color: $white;
}
.daterangepicker td.available:hover, .daterangepicker th.available:hover,
.datepicker table tr td.day.focused, .datepicker table tr td.day:hover,
.datepicker .datepicker-switch:hover, .datepicker .next:hover, .datepicker .prev:hover, .datepicker tfoot tr th:hover{
background-color: lighten($dark,10%);
}
.daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date {
background-color: transparent;
}
.daterangepicker .calendar-table {
border: none;
background-color: transparent;
}
.search-input {
margin-bottom: 10px;
}
.ms-selectable {
box-shadow: none;
outline: none !important;
}
.ms-container {
.ms-list.ms-focus {
box-shadow: none;
}
.ms-selectable {
li.ms-hover {
background-color: $primary;
}
}
.ms-selection {
li.ms-hover {
background-color: $primary;
}
}
}
/* ==============
Summernote
===================*/
.note-btn-group {
.dropdown-menu {
> li {
> a {
display: block;
padding: 5px 20px;
clear: both;
font-weight: normal;
line-height: 1.42857143;
color: $white;
white-space: nowrap;
&:hover {
background-color: lighten($dark, 2%);
}
}
}
}
}
.note-image-popover, .note-air-popover, .note-link-popover {
display: none;
.dropdown-toggle::after {
margin-left: 0;
}
}
.note-icon-caret {
display: none;
}
.note-editor {
position: relative;
.btn-default {
background-color: transparent;
border-color: transparent;
color: $white;
}
.btn-group-sm > .btn, .btn-sm {
padding: 8px 12px;
}
.note-toolbar {
background-color: lighten($dark, 7%);
border-bottom: 1px solid lighten($dark, 7%);
margin: 0;
}
.note-statusbar {
background-color: lighten($dark, 7%) !important;
.note-resizebar {
border-top: none;
}
}
}
.note-editor.note-frame {
border: 1px solid lighten($dark, 7%);
}
.note-popover {
.popover {
.popover-content {
padding: 5px 0 10px 5px;
}
}
.btn-default {
background-color: transparent;
border-color: transparent;
}
.btn-group-sm > .btn, .btn-sm {
padding: 8px 12px;
}
}
.note-toolbar {
padding: 5px 0 10px 5px;
}
.note-editor.note-frame .note-editing-area .note-editable {
padding: 10px;
overflow: auto;
color: $muted;
background-color: lighten($dark, 5%);
}
// Code editor
.code-edit-wrap {
padding: 0 !important;
}
.cm-s-ambiance {
.CodeMirror-linenumber {
color: #bcbcbc;
}
.CodeMirror-gutters {
background-color: $inverse !important;
box-shadow: none;
}
}
.cm-s-ambiance.CodeMirror {
background-color: $inverse !important;
box-shadow: none;
}
/* Timepicker */
.bootstrap-timepicker-widget {
table {
td {
a {
&:hover {
background-color: transparent;
border-color: transparent;
border-radius: 4px;
color: $primary;
text-decoration: none;
}
}
}
}
}
.editor-horizontal {
.popover-content {
padding: 9px 30px;
}
}
/* Bootstrap select */
.bootstrap-select.show>.dropdown-menu>.dropdown-menu {
display: block;
}
.bootstrap-select > .dropdown-menu > .dropdown-menu li.hidden{
display:none;
}
.bootstrap-select > .dropdown-menu > .dropdown-menu li a{
display: block;
width: 100%;
padding: 3px 1.5rem;
clear: both;
font-weight: 400;
color: $muted;
text-align: inherit;
white-space: nowrap;
background: 0 0;
border: 0;
&:hover {
color: $white;
}
}
.bootstrap-select .check-mark::after {
content: "\f299";
font-family: "Material Design Iconic Font";
}
.bootstrap-select button {
overflow: hidden;
text-overflow: ellipsis;
}
.bootstrap-select.btn-group.show-tick .dropdown-menu li.selected a span.check-mark {
margin-top: 0;
}
// Bootstrap filestyle
.bootstrap-filestyle {
.form-control {
max-height: 39px;
}
}
/* ===========
Form Uploads
=============*/
.dropzone {
min-height: 230px;
border: 2px dashed lighten($dark,10%);
border-radius: 6px;
background-color: lighten($dark,2%);
.dz-message {
font-size: 30px;
}
}
/* X-Editable */
.editable-click, a.editable-click, a.editable-click:hover{
border: none;
}
/* AUTOCOMPLETE */
.autocomplete-suggestions {
border: 1px solid lighten($dark,10%);
background-color: lighten($dark,5%);
cursor: default;
overflow: auto;
-webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
-moz-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
}
.autocomplete-suggestion {
padding: 2px 5px;
white-space: nowrap;
overflow: hidden;
}
.autocomplete-no-suggestion {
padding: 2px 5px;
}
.autocomplete-selected {
background: rgba($muted,0.15);
cursor: pointer;
}
.autocomplete-group {
padding: 2px 5px;
}
.autocomplete-group strong {
font-weight: bold;
font-size: 16px;
color: $white;
display: block;
}
/* Image crop */
.img-container,
.img-preview {
background-color: #f7f7f7;
overflow: hidden;
width: 100%;
text-align: center;
}
.img-container {
min-height: 200px;
max-height: 466px;
margin-bottom: 20px;
}
@media (min-width: 768px) {
.img-container {
min-height: 466px;
}
}
.img-container > img {
max-width: 100%;
}
.docs-preview {
margin-right: -15px;
margin-bottom: 10px;
}
.img-preview {
float: left;
margin-right: 10px;
margin-bottom: 10px;
}
.img-preview > img {
max-width: 100%;
}
#showDataURL {
img {
width: 100%;
}
}
/* bootstrap tag input */
.bootstrap-tagsinput {
box-shadow: none;
padding: 3px 7px;
border: 1px solid lighten($dark,10%);
background-color: lighten($dark,5%);
color: $white;
width: 100%;
.label-info {
background-color: $custom !important;
display: inline-block;
padding: 6px 10px;
border-radius: 3px;
font-size: 14px;
margin: 2px;
font-weight: normal;
}
input {
color: $white;
}
}
/* Multiple select*/
.ms-container {
background: transparent url('../images/multiple-arrow.png') no-repeat 50% 50%;
.ms-selectable, .ms-selection {
background-color: lighten($dark,3%);
}
.ms-list {
box-shadow: none;
border: 1px solid lighten($dark,10%);
}
.ms-list.ms-focus {
box-shadow: none;
border: 1px solid lighten($dark,12%);
}
.ms-selectable {
li.ms-elem-selectable {
border: none;
padding: 5px 10px;
color: $muted;
}
}
.ms-selection {
li.ms-elem-selection {
border: none;
padding: 5px 10px;
color: $muted;
}
}
}
.search-input {
margin-bottom: 10px;
}
.ms-selectable {
box-shadow: none;
outline: none !important;
}
.ms-container {
.ms-list.ms-focus {
box-shadow: none;
}
.ms-selectable {
li.ms-hover {
background-color: $custom;
color: $white;
}
}
.ms-selection {
li.ms-hover {
background-color: $custom;
color: $white;
}
}
}
/* Select 2 */
.select2-container {
width: 100% !important;
.select2-selection--single {
border: 1px solid lighten($dark,10%) !important;
height: 38px !important;
background-color: lighten($dark,5%);
.select2-selection__rendered {
line-height: 36px !important;
padding-left: 12px !important;
color: $muted;
}
.select2-selection__arrow {
height: 34px;
width: 34px;
right: 3px;
b{
border-color: #999 transparent transparent transparent;
border-width: 6px 6px 0 6px;
}
}
}
}
.select2-container--open {
.select2-selection--single {
.select2-selection__arrow {
b{
border-color: transparent transparent #999 transparent !important;
border-width: 0 6px 6px 6px !important;
}
}
}
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
background-color: $custom;
}
.select2-results__option {
padding: 6px 12px;
}
.select2-dropdown {
border: 1px solid lighten($dark,10%) !important;
background-color: lighten($dark,5%);
padding-top: 5px;
box-shadow: 0 2px 2px rgba(0, 0, 0, .15);
}
.select2-search {
input{
border: 1px solid lighten($dark,10%) !important;
background-color: lighten($dark,5%);
color: $white;
}
}
.select2-container--default .select2-results__option[aria-selected=true] {
background-color: lighten($dark,8%);
}
.select2-container .select2-selection--multiple {
border: 1px solid lighten($dark,10%) !important;
height: 38px !important;
background-color: lighten($dark,5%);
.select2-selection__rendered {
padding: 2px 10px;
}
.select2-search__field {
margin-top: 7px;
border: 0 !important;
}
.select2-selection__choice {
background-color: $custom;
border: 1px solid $custom;
border-radius: 1px;
padding: 0 7px;
}
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
color: $white;
}
/* Bootstrap-select */
.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
width: 100% !important;
}
.bootstrap-select {
.dropdown-toggle {
&:focus {
outline: none !important;
}
}
.glyphicon {
padding-right: 6px;
}
}
/* Bootstrap filestyle */
.icon-span-filestyle {
padding-right: 5px;
}
/* Bootstrap-touchSpin */
.bootstrap-touchspin {
.input-group-btn-vertical {
.btn {
padding: 9px 12px;
}
i {
top: 4px;
left: 8px;
}
}
}
/* == Bootstrap Switch == */
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
background: $primary;
}
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info {
background: $info;
}
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success {
background: $success;
}
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning {
background: $warning;
}
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger {
background: $danger;
}
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default {
background: #eeeeee;
}
.bootstrap-switch.bootstrap-switch-focused {
border-color: $muted;
box-shadow: none;
}
/* == X editable == */
.editable-checklist label {
display: block !important;
}
//Bootstrap Timepicker
.bootstrap-timepicker-widget.dropdown-menu:after,.colorpicker:after,.daterangepicker:after {
border-bottom: 6px solid lighten($dark,6%);
}
.bootstrap-timepicker-widget.timepicker-orient-bottom:before {
border-top: 7px solid lighten($dark,6%);
}
.bootstrap-timepicker-widget.timepicker-orient-bottom:after,.datepicker-dropdown.datepicker-orient-top:after {
border-top: 6px solid lighten($dark,6%);
}
.daterangepicker:before {
border-bottom: 7px solid lighten($dark,10%);
}