mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
300 lines
6.3 KiB
Plaintext
300 lines
6.3 KiB
Plaintext
//
|
|
// Time Picker
|
|
// --------------------------------------------------
|
|
|
|
//
|
|
// Special Popover
|
|
//
|
|
|
|
.clockpicker-popover {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: none;
|
|
max-width: 276px;
|
|
padding: 1px;
|
|
text-align: left;
|
|
white-space: normal;
|
|
background-color: #fff;
|
|
background-clip: padding-box;
|
|
|
|
&.top {
|
|
margin-top: -10px;
|
|
}
|
|
&.right {
|
|
margin-left: 10px;
|
|
}
|
|
&.bottom {
|
|
margin-top: 10px;
|
|
}
|
|
&.left {
|
|
margin-left: -10px;
|
|
}
|
|
|
|
.popover-title {
|
|
padding: 8px 14px;
|
|
margin: 0;
|
|
font-size: 14px;
|
|
font-weight: normal;
|
|
line-height: 18px;
|
|
background-color: #f7f7f7;
|
|
border-bottom: 1px solid #ebebeb;
|
|
border-radius: 5px 5px 0 0;
|
|
}
|
|
.popover-content {
|
|
padding: 9px 14px;
|
|
}
|
|
/*
|
|
> .arrow,
|
|
> .arrow:after {
|
|
position: absolute;
|
|
display: block;
|
|
width: 0;
|
|
height: 0;
|
|
border-color: transparent;
|
|
border-style: solid;
|
|
// The following are set in WordPress (wp-admin/css/revisions.css) - reset them to initial values
|
|
overflow:visible;
|
|
margin:0;
|
|
padding:0;
|
|
z-index:auto;
|
|
background-color:transparent;
|
|
-webkit-box-shadow:none;
|
|
box-shadow:none;
|
|
bottom:auto;
|
|
left:auto;
|
|
right:auto;
|
|
top:auto;
|
|
-webkit-transform:none;
|
|
-ms-transform:none;
|
|
transform:none;
|
|
}
|
|
> .arrow {
|
|
border-width: 11px;
|
|
}
|
|
> .arrow:after {
|
|
content: "";
|
|
border-width: 10px;
|
|
}
|
|
&.top > .arrow {
|
|
bottom: -11px;
|
|
left: 50%;
|
|
margin-left: -11px;
|
|
border-top-color: #999;
|
|
border-top-color: rgba(0, 0, 0, .25);
|
|
border-bottom-width: 0;
|
|
}
|
|
&.top > .arrow:after {
|
|
bottom: 1px;
|
|
margin-left: -10px;
|
|
content: " ";
|
|
border-top-color: #fff;
|
|
border-bottom-width: 0;
|
|
}
|
|
&.right > .arrow {
|
|
top: 50%;
|
|
left: -11px;
|
|
margin-top: -11px;
|
|
border-right-color: #999;
|
|
border-right-color: rgba(0, 0, 0, .25);
|
|
border-left-width: 0;
|
|
}
|
|
&.right > .arrow:after {
|
|
bottom: -10px;
|
|
left: 1px;
|
|
content: " ";
|
|
border-right-color: #fff;
|
|
border-left-width: 0;
|
|
}
|
|
&.bottom > .arrow {
|
|
top: -11px;
|
|
left: 50%;
|
|
margin-left: -11px;
|
|
border-top-width: 0;
|
|
border-bottom-color: #999;
|
|
border-bottom-color: rgba(0, 0, 0, .25);
|
|
}
|
|
&.bottom > .arrow:after {
|
|
top: 1px;
|
|
margin-left: -10px;
|
|
content: " ";
|
|
border-top-width: 0;
|
|
border-bottom-color: #fff;
|
|
}
|
|
&.left > .arrow {
|
|
top: 50%;
|
|
right: -11px;
|
|
margin-top: -11px;
|
|
border-right-width: 0;
|
|
border-left-color: #999;
|
|
border-left-color: rgba(0, 0, 0, .25);
|
|
}
|
|
&.left > .arrow:after {
|
|
right: 1px;
|
|
bottom: -10px;
|
|
content: " ";
|
|
border-right-width: 0;
|
|
border-left-color: #fff;
|
|
}
|
|
*/
|
|
}
|
|
|
|
//
|
|
// Clock Picker
|
|
//
|
|
|
|
.clockpicker .input-group-addon {
|
|
cursor: pointer;
|
|
}
|
|
.clockpicker-moving {
|
|
cursor: move;
|
|
}
|
|
.clockpicker-align-left.popover > .arrow {
|
|
left: 25px;
|
|
}
|
|
.clockpicker-align-top.popover > .arrow {
|
|
top: 17px;
|
|
}
|
|
.clockpicker-align-right.popover > .arrow {
|
|
left: auto;
|
|
right: 25px;
|
|
}
|
|
.clockpicker-align-bottom.popover > .arrow {
|
|
top: auto;
|
|
bottom: 6px;
|
|
}
|
|
|
|
.clockpicker-popover {
|
|
.popover-title {
|
|
background-color: #fff;
|
|
color: #999;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
line-height: 30px;
|
|
text-align: center;
|
|
span {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
.popover-content {
|
|
background-color: #f8f8f8;
|
|
padding: 12px;
|
|
&:last-child {
|
|
border-bottom-left-radius: 5px;
|
|
border-bottom-right-radius: 5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.clockpicker-plate {
|
|
background-color: #fff;
|
|
border: 1px solid #ccc;
|
|
border-radius: 50%;
|
|
width: 200px;
|
|
height: 200px;
|
|
overflow: visible;
|
|
position: relative;
|
|
// Disable text selection highlighting. Thanks to Hermanya
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.clockpicker-canvas,
|
|
.clockpicker-dial {
|
|
width: 200px;
|
|
height: 200px;
|
|
position: absolute;
|
|
left: -1px;
|
|
top: -1px;
|
|
}
|
|
.clockpicker-minutes {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.clockpicker-tick {
|
|
border-radius: 50%;
|
|
color: #666;
|
|
line-height: 26px;
|
|
text-align: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
position: absolute;
|
|
cursor: pointer;
|
|
&.active,
|
|
&:hover {
|
|
background-color: rgb(192, 229, 247);
|
|
background-color: rgba(0, 149, 221, .25);
|
|
}
|
|
}
|
|
|
|
// .clockpicker-button {
|
|
// background-image: none;
|
|
// background-color: #fff;
|
|
// border-width: 1px 0 0;
|
|
// border-top-left-radius: 0;
|
|
// border-top-right-radius: 0;
|
|
// margin: 0;
|
|
// padding: 10px 0;
|
|
// text-align: center;
|
|
// }
|
|
// .clockpicker-button:hover {
|
|
// background-image: none;
|
|
// background-color: #ebebeb;
|
|
// }
|
|
// .clockpicker-button:focus {
|
|
// outline: none!important;
|
|
// }
|
|
|
|
.clockpicker-dial {
|
|
.transition(~"transform 350ms, opacity 350ms");
|
|
}
|
|
.clockpicker-dial-out {
|
|
opacity: 0;
|
|
}
|
|
.clockpicker-hours.clockpicker-dial-out {
|
|
.transform(scale(1.2, 1.2));
|
|
}
|
|
.clockpicker-minutes.clockpicker-dial-out {
|
|
.transform(scale(.8, .8));
|
|
}
|
|
.clockpicker-canvas {
|
|
.transition(opacity 175ms);
|
|
}
|
|
.clockpicker-canvas-out {
|
|
opacity: 0.25;
|
|
}
|
|
.clockpicker-canvas-bearing,
|
|
.clockpicker-canvas-fg {
|
|
stroke: none;
|
|
fill: rgb(0, 149, 221);
|
|
}
|
|
.clockpicker-canvas-bg {
|
|
stroke: none;
|
|
fill: rgb(192, 229, 247);
|
|
}
|
|
.clockpicker-canvas-bg-trans {
|
|
fill: rgba(0, 149, 221, .25);
|
|
}
|
|
.clockpicker-canvas line {
|
|
stroke: rgb(0, 149, 221);
|
|
stroke-width: 1;
|
|
stroke-linecap: round;
|
|
// shape-rendering: crispEdges;
|
|
}
|
|
.clockpicker-button.am-button {
|
|
margin: 1px;
|
|
padding: 5px;
|
|
border: 1px solid rgba(0, 0, 0, .2);
|
|
border-radius: 4px;
|
|
}
|
|
.clockpicker-button.pm-button {
|
|
margin: 1px 1px 1px 136px;
|
|
padding: 5px;
|
|
border: 1px solid rgba(0, 0, 0, .2);
|
|
border-radius: 4px;
|
|
}
|