naive-ui/styles/TimePicker.scss
2019-08-29 19:00:45 +08:00

49 lines
1.3 KiB
SCSS

@import "./mixins/mixins.scss";
@import "./theme/default.scss";
@include b(time-picker-selector) {
background-color: rgba(97, 104, 132, 1);
box-shadow:0px 2px 20px 0px rgba(0,0,0,0.16);
font-size: 12px;
border-radius: 6px;
margin: 4px 0;
width: 180px;
overflow: hidden;
@include fade-in-scale-up-transition(time-picker);
.n-time-picker__selection-wrapper {
position: relative;
height: 244px;
border-bottom: 1px solid rgba(255, 255, 255, .07);
display: flex;
}
.n-time-picker__hour, .n-time-picker__minute, .n-time-picker__second {
width: 60px;
height: 244px;
flex-direction: column;
.n-time-picker__item {
cursor: pointer;
height: 35px;
display: flex;
align-items: center;
justify-content: center;
transition: background-color .2s $default-cubic-bezier, color .2s $default-cubic-bezier;
background: transparent;
&:hover {
background-color: rgba(99,226,183,0.12);
}
&.n-time-picker__item--active {
background-color: rgba(99,226,183,0.12);
color: rgba(99, 226, 183, 1);
}
}
}
.n-time-picker__actions {
// margin will boom! I don't know why
padding: 10px 15px;
display: flex;
justify-content: space-between;
.n-button {
margin: 0;
}
}
}