2018-11-14 17:24:57 +00:00
|
|
|
#PeriodSwitch {
|
2018-11-21 14:46:51 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-04-02 16:56:44 +00:00
|
|
|
justify-content: flex-end;
|
2019-03-27 16:05:27 +00:00
|
|
|
}
|
2018-11-14 17:24:57 +00:00
|
|
|
|
2019-04-02 16:56:44 +00:00
|
|
|
.ui__.toggle {
|
|
|
|
border: 1px solid var(--colour);
|
|
|
|
border-radius: 0.3rem;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.ui__.toggle label {
|
|
|
|
padding: 0.6rem 1.2rem;
|
2018-11-14 17:24:57 +00:00
|
|
|
color: var(--colour);
|
2019-04-02 16:56:44 +00:00
|
|
|
text-transform: uppercase;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.ui__.toggle.small label {
|
|
|
|
font-size: 80%;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0.4rem 0.8rem;
|
|
|
|
}
|
|
|
|
.ui__.toggle label:not(:last-child) {
|
|
|
|
border-right: 1px solid var(--colour);
|
2018-11-14 17:24:57 +00:00
|
|
|
}
|
|
|
|
|
2019-04-02 16:56:44 +00:00
|
|
|
.ui__.toggle input[type='radio'] {
|
2018-11-29 16:22:46 +00:00
|
|
|
position: fixed;
|
|
|
|
left: -100%;
|
2018-11-14 17:24:57 +00:00
|
|
|
}
|
|
|
|
|
2019-04-02 16:56:44 +00:00
|
|
|
.ui__.toggle input[type='radio'] ~ *::before {
|
|
|
|
display: inline-block;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
content: '';
|
|
|
|
margin: 0 0.3em;
|
|
|
|
vertical-align: middle;
|
|
|
|
border-radius: 20px;
|
2018-11-14 17:24:57 +00:00
|
|
|
cursor: pointer;
|
2019-04-02 16:56:44 +00:00
|
|
|
box-shadow: 0 0 0px 1.5px rgb(41, 117, 209);
|
|
|
|
transition: all 0.1s;
|
|
|
|
border: 0.5em solid white;
|
|
|
|
}
|
|
|
|
.ui__.toggle input[type='radio'] ~ * {
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
transition: all 0.2s;
|
|
|
|
}
|
|
|
|
.ui__.toggle input[type='radio']:checked ~ *::before {
|
|
|
|
border: 4px solid white;
|
|
|
|
background: var(--colour);
|
|
|
|
}
|
|
|
|
.ui__.toggle input[type='radio']:focus ~ .radioText {
|
|
|
|
border: 1px dotted gray;
|
|
|
|
}
|
|
|
|
.ui__.toggle input[type='radio']:checked ~ .radioText {
|
|
|
|
font-weight: 500;
|
2018-11-14 17:24:57 +00:00
|
|
|
}
|
2019-03-27 16:05:27 +00:00
|
|
|
|
2019-04-02 16:56:44 +00:00
|
|
|
.ui__.toggle input[type='radio']:checked ~ * {
|
|
|
|
background: var(--colour);
|
|
|
|
box-shadow: 0 0 0 3rem var(--colour);
|
|
|
|
color: white;
|
2018-11-29 16:22:46 +00:00
|
|
|
}
|
2018-11-14 17:24:57 +00:00
|
|
|
|
2019-04-02 16:56:44 +00:00
|
|
|
.ui__.toggle label:hover input[type='radio']:not(:checked) ~ * {
|
|
|
|
background: var(--lighterColour);
|
|
|
|
box-shadow: 0 0 0 1rem var(--lighterColour);
|
2018-11-14 17:24:57 +00:00
|
|
|
}
|