redoc/lib/shared/components/Zippy/zippy.scss

113 lines
1.9 KiB
SCSS
Raw Normal View History

2016-03-08 23:03:05 +03:00
$zippy-success-color: #00aa13;
$zippy-success-bg-color: rgba($zippy-success-color, .08);
2015-11-23 23:57:10 +03:00
2016-03-08 23:03:05 +03:00
$zippy-error-color: #e53935;
$zippy-error-bg-color: rgba($zippy-error-color, .06);
2015-11-23 23:57:10 +03:00
2016-03-08 23:03:05 +03:00
$zippy-info-color: #0033a0;
$zippy-info-bg-color: rgba($zippy-info-color, .08);
2015-11-23 23:57:10 +03:00
2016-03-08 23:03:05 +03:00
$zippy-redirect-color: #263238;
$zippy-redirect-bg-color: rgba($zippy-redirect-color, .08);
2015-11-23 23:57:10 +03:00
2016-07-10 13:15:36 +03:00
:host {
// performance optimization
transform: translate3d(0, 0, 0);
2016-07-10 14:47:34 +03:00
backface-visibility: hidden;
2016-07-10 13:15:36 +03:00
overflow: hidden;
display: block;
}
2015-11-23 23:57:10 +03:00
.zippy-title {
padding: 10px;
2016-03-08 23:03:05 +03:00
border-radius: 2px;
2016-09-02 23:18:31 +03:00
margin-bottom: 4px;
2015-11-29 19:31:12 +03:00
line-height: 1.5em;
2015-11-23 23:57:10 +03:00
background-color: #f2f2f2;
cursor: pointer;
.zippy-success > & {
color: $zippy-success-color;
background-color: $zippy-success-bg-color;
}
.zippy-error > & {
color: $zippy-error-color;
background-color: $zippy-error-bg-color;
}
.zippy-redirect > & {
color: $zippy-redirect-color;
background-color: $zippy-redirect-bg-color;
}
.zippy-info > & {
color: $zippy-info-color;
background-color: $zippy-info-bg-color;
}
}
2016-09-02 23:18:31 +03:00
2016-06-29 18:02:29 +03:00
.zippy-indicator svg {
height: 1.2em;
vertical-align: middle;
transition: all 0.3s ease;
transform: rotateZ(-180deg);
}
.zippy-hidden > .zippy-title svg {
transform: rotateZ(0);
2016-06-29 18:02:29 +03:00
}
.zippy-title polygon {
.zippy-success > & {
fill: $zippy-success-color;
}
.zippy-error > & {
fill: $zippy-error-color;
}
.zippy-redirect > & {
fill: $zippy-redirect-color;
}
.zippy-info > & {
fill: $zippy-info-color;
}
}
2015-11-23 23:57:10 +03:00
span.zippy-indicator {
2016-06-29 18:02:29 +03:00
width: 1em;
2016-03-08 23:03:05 +03:00
font-size: 1.2em;
2016-06-29 18:02:29 +03:00
text-align: center;
display: inline-block;
2015-11-23 23:57:10 +03:00
}
.zippy-content {
padding: 15px 0;
}
.zippy-empty {
2015-11-24 01:08:11 +03:00
.zippy-title {
cursor: default;
}
2015-11-23 23:57:10 +03:00
.zippy-indicator {
2016-06-29 18:02:29 +03:00
svg {
display: none;
}
&:before {
content: "";
font-weight: bold;
}
2015-11-23 23:57:10 +03:00
}
.zippy-content {
display: none;
}
}
2015-11-24 01:08:11 +03:00
2016-06-29 18:02:29 +03:00
.zippy-hidden > .zippy-content {
2016-07-10 14:47:34 +03:00
display: none;
2015-11-24 01:08:11 +03:00
}