2021-12-03 21:55:29 +09:00
|
|
|
.divider-line {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
flex: 1;
|
|
|
|
border-bottom: 1px solid var(--local-divider-color);
|
|
|
|
opacity: var(--local-divider-opacity);
|
|
|
|
}
|
2021-07-28 22:15:52 +09:00
|
|
|
|
2021-12-03 21:55:29 +09:00
|
|
|
.divider {
|
2021-07-28 22:15:52 +09:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
2021-12-03 21:55:29 +09:00
|
|
|
&--center::before,
|
|
|
|
&--right::before {
|
|
|
|
@extend .divider-line;
|
2021-07-28 22:15:52 +09:00
|
|
|
}
|
2021-12-03 21:55:29 +09:00
|
|
|
&--center::after,
|
|
|
|
&--left::after {
|
|
|
|
@extend .divider-line;
|
2021-07-28 22:15:52 +09:00
|
|
|
}
|
|
|
|
|
2021-12-03 21:55:29 +09:00
|
|
|
&__text {
|
|
|
|
padding: 2px var(--sp-extra-tight);
|
|
|
|
border-radius: calc(var(--bo-radius) / 2);
|
2021-07-28 22:15:52 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.divider--surface {
|
2021-12-03 21:55:29 +09:00
|
|
|
--local-divider-color: var(--bg-divider);
|
|
|
|
--local-divider-opacity: 1;
|
|
|
|
|
2021-07-28 22:15:52 +09:00
|
|
|
.divider__text {
|
|
|
|
color: var(--tc-surface-low);
|
2021-12-03 21:55:29 +09:00
|
|
|
border: 1px solid var(--bg-divider);
|
2021-07-28 22:15:52 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.divider--primary {
|
|
|
|
--local-divider-color: var(--bg-primary);
|
2021-12-03 21:55:29 +09:00
|
|
|
--local-divider-opacity: .8;
|
|
|
|
.divider__text {
|
|
|
|
color: var(--tc-primary-high);
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.divider--positive {
|
|
|
|
--local-divider-color: var(--bg-positive);
|
|
|
|
--local-divider-opacity: .8;
|
2021-07-28 22:15:52 +09:00
|
|
|
.divider__text {
|
2021-12-03 21:55:29 +09:00
|
|
|
color: var(--bg-surface);
|
|
|
|
background-color: var(--bg-positive);
|
2021-07-28 22:15:52 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.divider--danger {
|
|
|
|
--local-divider-color: var(--bg-danger);
|
2021-12-03 21:55:29 +09:00
|
|
|
--local-divider-opacity: .8;
|
2021-07-28 22:15:52 +09:00
|
|
|
.divider__text {
|
2021-12-03 21:55:29 +09:00
|
|
|
color: var(--bg-surface);
|
|
|
|
background-color: var(--bg-danger);
|
2021-07-28 22:15:52 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.divider--caution {
|
|
|
|
--local-divider-color: var(--bg-caution);
|
2021-12-03 21:55:29 +09:00
|
|
|
--local-divider-opacity: .8;
|
2021-07-28 22:15:52 +09:00
|
|
|
.divider__text {
|
2021-12-03 21:55:29 +09:00
|
|
|
color: var(--bg-surface);
|
|
|
|
background-color: var(--bg-caution);
|
2021-07-28 22:15:52 +09:00
|
|
|
}
|
2021-12-03 21:55:29 +09:00
|
|
|
}
|