mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-23 19:39:10 -04:00
Add Material Design for Public and Admin
This commit is contained in:
446
resources/theme/material-kit/assets/scss/material-kit/plugins/_plugin-datetime-picker.scss
vendored
Normal file
446
resources/theme/material-kit/assets/scss/material-kit/plugins/_plugin-datetime-picker.scss
vendored
Normal file
@@ -0,0 +1,446 @@
|
||||
/*!
|
||||
* Datetimepicker for Bootstrap 3
|
||||
* ! version : 4.17.37
|
||||
* https://github.com/Eonasdan/bootstrap-datetimepicker/
|
||||
*/
|
||||
$bs-datetimepicker-timepicker-font-size: 1.2em !default;
|
||||
$bs-datetimepicker-active-bg: $brand-primary !default;
|
||||
$bs-datetimepicker-active-color: $white-color !default;
|
||||
$bs-datetimepicker-border-radius: $border-radius-base;
|
||||
$bs-datetimepicker-btn-hover-bg: #eee !default;
|
||||
$bs-datetimepicker-disabled-color: $gray-lighter !default;
|
||||
$bs-datetimepicker-alternate-color: $gray-light !default;
|
||||
$bs-datetimepicker-secondary-border-color: #ccc !default;
|
||||
$bs-datetimepicker-secondary-border-color-rgba: rgba(0, 0, 0, 0.2) !default;
|
||||
$bs-datetimepicker-primary-border-color: white !default;
|
||||
$bs-datetimepicker-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25) !default;
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
clip: rect(0,0,0,0);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
|
||||
.bootstrap-datetimepicker-widget {
|
||||
list-style: none;
|
||||
|
||||
|
||||
a{
|
||||
&:hover{
|
||||
box-shadow: none !important;
|
||||
}
|
||||
.btn{
|
||||
&:hover{
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.dropdown-menu {
|
||||
padding: 4px;
|
||||
width: 19em;
|
||||
|
||||
&.timepicker-sbs {
|
||||
@media (min-width: 768px) {
|
||||
width: 38em;
|
||||
}
|
||||
|
||||
@media (min-width: 991px) {
|
||||
width: 38em;
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
width: 38em;
|
||||
}
|
||||
}
|
||||
|
||||
&.bottom {
|
||||
|
||||
&:before,
|
||||
&:after{
|
||||
right: auto;
|
||||
left: 12px
|
||||
}
|
||||
}
|
||||
|
||||
&.top {
|
||||
margin-top: auto;
|
||||
margin-bottom: 27px;
|
||||
|
||||
&.open{
|
||||
margin-top: auto;
|
||||
margin-bottom: 27px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
&.pull-right {
|
||||
&:before {
|
||||
left: auto;
|
||||
right: 6px;
|
||||
}
|
||||
|
||||
&:after {
|
||||
left: auto;
|
||||
right: 7px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.list-unstyled {
|
||||
margin: 0;
|
||||
|
||||
|
||||
}
|
||||
|
||||
a[data-action] {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border-width: 0;
|
||||
background-color: transparent;
|
||||
color: $brand-primary;
|
||||
box-shadow: none;
|
||||
|
||||
&:hover{
|
||||
background-color: transparent;
|
||||
|
||||
span{
|
||||
background-color: $bs-datetimepicker-btn-hover-bg;
|
||||
color: $brand-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a[data-action]:active {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.timepicker-hour, .timepicker-minute, .timepicker-second {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
font-weight: $font-weight-light;
|
||||
font-size: $font-size-h4;
|
||||
margin: 0;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
button[data-action] {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
margin-right: 3px;
|
||||
padding: 0;
|
||||
|
||||
}
|
||||
|
||||
.btn[data-action="incrementHours"]::after {
|
||||
@extend .sr-only;
|
||||
content: "Increment Hours";
|
||||
}
|
||||
|
||||
.btn[data-action="incrementMinutes"]::after {
|
||||
@extend .sr-only;
|
||||
content: "Increment Minutes";
|
||||
}
|
||||
|
||||
.btn[data-action="decrementHours"]::after {
|
||||
@extend .sr-only;
|
||||
content: "Decrement Hours";
|
||||
}
|
||||
|
||||
.btn[data-action="decrementMinutes"]::after {
|
||||
@extend .sr-only;
|
||||
content: "Decrement Minutes";
|
||||
}
|
||||
|
||||
.btn[data-action="showHours"]::after {
|
||||
@extend .sr-only;
|
||||
content: "Show Hours";
|
||||
}
|
||||
|
||||
.btn[data-action="showMinutes"]::after {
|
||||
@extend .sr-only;
|
||||
content: "Show Minutes";
|
||||
}
|
||||
|
||||
.btn[data-action="togglePeriod"]::after {
|
||||
@extend .sr-only;
|
||||
content: "Toggle AM/PM";
|
||||
}
|
||||
|
||||
.btn[data-action="clear"]::after {
|
||||
@extend .sr-only;
|
||||
content: "Clear the picker";
|
||||
}
|
||||
|
||||
.btn[data-action="today"]::after {
|
||||
@extend .sr-only;
|
||||
content: "Set the date to today";
|
||||
}
|
||||
|
||||
.picker-switch {
|
||||
text-align: center;
|
||||
border-radius: $bs-datetimepicker-border-radius;
|
||||
font-size: 0.875rem;
|
||||
|
||||
&::after {
|
||||
@extend .sr-only;
|
||||
content: "Toggle Date and Time Screens";
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: auto;
|
||||
width: auto;
|
||||
line-height: inherit;
|
||||
|
||||
span {
|
||||
line-height: 2.5;
|
||||
height: 2.5em;
|
||||
width: 100%;
|
||||
border-radius: $bs-datetimepicker-border-radius;
|
||||
margin: 2px 0px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
|
||||
&.table-condensed{
|
||||
tr > td{
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
& td > div,
|
||||
& th > div {
|
||||
@extend .animation-transition-fast;
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
|
||||
|
||||
& th {
|
||||
@extend .animation-transition-fast;
|
||||
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
width: 20px;
|
||||
font-weight: $font-weight-bold;
|
||||
|
||||
&.picker-switch {
|
||||
width: 145px;
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&.disabled:hover {
|
||||
background: none;
|
||||
color: $bs-datetimepicker-disabled-color;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&.prev span,
|
||||
&.next span{
|
||||
border-radius: $bs-datetimepicker-border-radius;
|
||||
height: 27px;
|
||||
width: 27px;
|
||||
line-height: 28px;
|
||||
font-size: 12px;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
|
||||
&.prev::after {
|
||||
@extend .sr-only;
|
||||
content: "Previous Month";
|
||||
}
|
||||
|
||||
&.next::after {
|
||||
@extend .sr-only;
|
||||
content: "Next Month";
|
||||
}
|
||||
|
||||
&.dow{
|
||||
text-align: center;
|
||||
border-bottom: 1px solid $gray-lighter;
|
||||
font-size: $font-size-small;
|
||||
text-transform: uppercase;
|
||||
color: $gray-dark;
|
||||
font-weight: $font-weight-default;
|
||||
padding-bottom: 5px;
|
||||
padding-top: $padding-default-vertical;
|
||||
}
|
||||
}
|
||||
|
||||
& thead tr:first-child th{
|
||||
cursor: pointer;
|
||||
|
||||
&:hover span,
|
||||
&.picker-switch:hover{
|
||||
background: $bs-datetimepicker-btn-hover-bg;
|
||||
}
|
||||
}
|
||||
|
||||
& td{
|
||||
|
||||
> div {
|
||||
border-radius: $bs-datetimepicker-border-radius;
|
||||
|
||||
height: 54px;
|
||||
line-height: 54px;
|
||||
width: 54px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&.cw > div {
|
||||
font-size: .8em;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
color: $bs-datetimepicker-alternate-color;
|
||||
}
|
||||
|
||||
&.day > div {
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
width: 30px;
|
||||
text-align: center;
|
||||
padding: 0px;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
z-index: -1;
|
||||
color: $black-color;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
&.minute > div,
|
||||
&.hour > div{
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
&.day:hover > div,
|
||||
&.hour:hover > div,
|
||||
&.minute:hover > div,
|
||||
&.second:hover > div {
|
||||
background: $bs-datetimepicker-btn-hover-bg;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&.old > div,
|
||||
&.new > div{
|
||||
color: $bs-datetimepicker-alternate-color;
|
||||
}
|
||||
|
||||
&.today > div{
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
border: 0 0 7px 7px solid transparent;
|
||||
border-bottom-color: $bs-datetimepicker-active-bg;
|
||||
border-top-color: $bs-datetimepicker-secondary-border-color-rgba;
|
||||
position: absolute;
|
||||
bottom: 4px;
|
||||
right: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
&.active > div,
|
||||
&.active:hover > div {
|
||||
background-color: $bs-datetimepicker-active-bg;
|
||||
color: $bs-datetimepicker-active-color;
|
||||
@include shadow-small-color($brand-primary);
|
||||
}
|
||||
|
||||
&.active.today:before > div{
|
||||
border-bottom-color: $white-color;
|
||||
}
|
||||
|
||||
&.disabled > div,
|
||||
&.disabled:hover > div {
|
||||
background: none;
|
||||
color: $bs-datetimepicker-disabled-color;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
span {
|
||||
@extend .animation-transition-fast;
|
||||
|
||||
display: inline-block;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
margin: 3px 3px;
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
|
||||
&:hover {
|
||||
background: $bs-datetimepicker-btn-hover-bg;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background-color: $bs-datetimepicker-active-bg;
|
||||
color: $bs-datetimepicker-active-color;
|
||||
}
|
||||
|
||||
&.old {
|
||||
color: $bs-datetimepicker-alternate-color;
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&.disabled:hover {
|
||||
background: none;
|
||||
color: $bs-datetimepicker-disabled-color;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.timepicker-picker,
|
||||
.timepicker-hours,
|
||||
.timepicker-minutes{
|
||||
span{
|
||||
border-radius: 50% !important;
|
||||
}
|
||||
}
|
||||
|
||||
&.usetwentyfour {
|
||||
td.hour {
|
||||
height: 27px;
|
||||
line-height: 27px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.input-group.date {
|
||||
& .input-group-addon {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.table-condensed>tbody>tr>td,
|
||||
.table-condensed>tbody>tr>th,
|
||||
.table-condensed>tfoot>tr>td,
|
||||
.table-condensed>tfoot>tr>th,
|
||||
.table-condensed>thead>tr>td,
|
||||
.table-condensed>thead>tr>th{
|
||||
padding: 1px;
|
||||
text-align: center;
|
||||
z-index: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
234
resources/theme/material-kit/assets/scss/material-kit/plugins/_plugin-nouislider.scss
vendored
Normal file
234
resources/theme/material-kit/assets/scss/material-kit/plugins/_plugin-nouislider.scss
vendored
Normal file
@@ -0,0 +1,234 @@
|
||||
|
||||
/* Functional styling;
|
||||
* These styles are required for noUiSlider to function.
|
||||
* You don't need to change these rules to apply your design.
|
||||
*/
|
||||
.noUi-target,
|
||||
.noUi-target * {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-ms-touch-action: none;
|
||||
touch-action: none;
|
||||
-ms-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.noUi-target {
|
||||
position: relative;
|
||||
direction: ltr;
|
||||
}
|
||||
.noUi-base {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
z-index: 1; /* Fix 401 */
|
||||
}
|
||||
.noUi-connect {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
.noUi-origin {
|
||||
position: absolute;
|
||||
height: 0;
|
||||
width: 0;
|
||||
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
height: 2px;
|
||||
background: #c8c8c8;
|
||||
&[style^="left: 0"] .noUi-handle {
|
||||
background-color: #fff;
|
||||
border: 2px solid #c8c8c8;
|
||||
&.noUi-active {
|
||||
border-width: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.noUi-handle {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
.noUi-state-tap .noUi-connect,
|
||||
.noUi-state-tap .noUi-origin {
|
||||
-webkit-transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;
|
||||
transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;
|
||||
}
|
||||
.noUi-state-drag * {
|
||||
cursor: inherit !important;
|
||||
}
|
||||
|
||||
/* Painting and performance;
|
||||
* Browsers can paint handles in their own layer.
|
||||
*/
|
||||
.noUi-base,
|
||||
.noUi-handle {
|
||||
-webkit-transform: translate3d(0,0,0);
|
||||
transform: translate3d(0,0,0);
|
||||
}
|
||||
|
||||
/* Slider size and handle placement;
|
||||
*/
|
||||
.noUi-horizontal {
|
||||
height: 2px;
|
||||
margin: 15px 0;
|
||||
|
||||
.noUi-handle .noUi-tooltip {
|
||||
margin-top: 15px;
|
||||
margin-left: -10px;
|
||||
}
|
||||
|
||||
.noUi-pips {
|
||||
.noUi-value {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
|
||||
&.noUi-value-large:last-of-type {
|
||||
left: 95% !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.noUi-vertical {
|
||||
height: 100%;
|
||||
width: 2px;
|
||||
margin: 0 15px;
|
||||
}
|
||||
.noUi-vertical .noUi-handle {
|
||||
box-sizing: border-box;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
left: -6px;
|
||||
top: -10px;
|
||||
cursor: pointer;
|
||||
border-radius: 100%;
|
||||
transition: all 0.2s ease-out;
|
||||
border: 1px solid $brand-primary;
|
||||
background: $white-color;
|
||||
@include shadow-2dp();
|
||||
}
|
||||
|
||||
/* Styling;
|
||||
*/
|
||||
.noUi-target {
|
||||
background: #c8c8c8;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.noUi-connect {
|
||||
background: #3FB8AF;
|
||||
-webkit-transition: background 450ms;
|
||||
transition: background 450ms;
|
||||
}
|
||||
|
||||
/* Handles and cursors;
|
||||
*/
|
||||
.noUi-draggable {
|
||||
cursor: w-resize;
|
||||
}
|
||||
.noUi-vertical .noUi-draggable {
|
||||
cursor: n-resize;
|
||||
}
|
||||
.noUi-handle {
|
||||
box-sizing: border-box;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
left: -10px;
|
||||
top: -6px;
|
||||
cursor: pointer;
|
||||
border-radius: 100%;
|
||||
transition: all 0.2s ease-out;
|
||||
border: 1px solid;
|
||||
background: $white-color;
|
||||
|
||||
@include shadow-2dp();
|
||||
|
||||
&.noUi-active {
|
||||
transform: scale3d(1.5, 1.5, 1);
|
||||
}
|
||||
}
|
||||
.noUi-vertical .noUi-handle:before,
|
||||
.noUi-vertical .noUi-handle:after {
|
||||
width: 14px;
|
||||
height: 1px;
|
||||
left: 6px;
|
||||
top: 14px;
|
||||
}
|
||||
.noUi-vertical .noUi-handle:after {
|
||||
top: 17px;
|
||||
}
|
||||
|
||||
/* Disabled state;
|
||||
*/
|
||||
|
||||
[disabled] .noUi-connect {
|
||||
background: #B8B8B8;
|
||||
}
|
||||
[disabled].noUi-target,
|
||||
[disabled].noUi-handle,
|
||||
[disabled] .noUi-handle {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.slider {
|
||||
background: #c8c8c8;
|
||||
|
||||
& .noUi-connect{
|
||||
background-color: $brand-primary;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.noUi-handle{
|
||||
border-color: $brand-primary;
|
||||
}
|
||||
|
||||
&.slider-info{
|
||||
& .noUi-connect{
|
||||
background-color: $brand-info;
|
||||
}
|
||||
|
||||
.noUi-handle{
|
||||
border-color: $brand-info;
|
||||
}
|
||||
}
|
||||
&.slider-success{
|
||||
& .noUi-connect{
|
||||
background-color: $brand-success;
|
||||
}
|
||||
|
||||
.noUi-handle{
|
||||
border-color: $brand-success;
|
||||
}
|
||||
}
|
||||
&.slider-warning{
|
||||
& .noUi-connect{
|
||||
background-color: $brand-warning;
|
||||
}
|
||||
|
||||
.noUi-handle{
|
||||
border-color: $brand-warning;
|
||||
}
|
||||
}
|
||||
&.slider-danger{
|
||||
& .noUi-connect{
|
||||
background-color: $brand-danger;
|
||||
}
|
||||
|
||||
.noUi-handle{
|
||||
border-color: $brand-danger;
|
||||
}
|
||||
}
|
||||
|
||||
&.slider-rose{
|
||||
& .noUi-connect{
|
||||
background-color: $brand-rose;
|
||||
}
|
||||
|
||||
.noUi-handle{
|
||||
border-color: $brand-rose;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user