openaire-theme/less/accordion.less

65 lines
1.7 KiB
Plaintext
Raw Normal View History

@accordion-border: @global-border;
@accordion-border-width: @global-border-width;
@accordion-padding-bottom: 20px;
2022-10-31 12:31:15 +01:00
@accordion-title-font-size: @global-large-font-size;
@accordion-title-font-size-s: @global-font-size;
2022-06-17 18:46:35 +02:00
@accordion-title-padding-vertical: 5px;
@accordion-title-padding-horizontal: 0;
@accordion-title-background: transparent;
@accordion-title-color: @global-emphasis-color;
@accordion-title-hover-color: @accordion-title-color;
2022-06-17 18:46:35 +02:00
@accordion-title-font-weight: 600;
@accordion-icon-margin-left: 10px;
@accordion-icon-color: @global-primary-background;
@accordion-content-font-size: @global-font-size;
@accordion-content-font-size-s: @global-small-font-size;
.uk-accordion > * {
padding-bottom: @accordion-padding-bottom;
border-bottom: @accordion-border-width solid @accordion-border;
}
2022-06-17 18:46:35 +02:00
.hook-accordion-title() {
padding: @accordion-title-padding-vertical @accordion-title-padding-horizontal;
background: @accordion-title-background;
overflow: hidden;
font-weight: @accordion-title-font-weight;
&::before {
content: "\e5cf";
2022-06-17 18:46:35 +02:00
font-family: "Material Icons";
font-size: 1.5em;
2022-07-19 10:04:23 +02:00
line-height: inherit;
2022-06-17 18:46:35 +02:00
margin-left: @accordion-icon-margin-left;
margin-top: -0.3em;
2022-06-17 18:46:35 +02:00
float: right;
color: @accordion-icon-color;
2022-06-17 18:46:35 +02:00
}
}
.hook-accordion-content() {
font-size: @accordion-content-font-size;
margin-right: 1.5*@accordion-title-font-size;
}
2022-06-17 18:46:35 +02:00
.hook-accordion-misc() {
@media(max-width: @breakpoint-small-max) {
.uk-accordion-title {
font-size: @accordion-title-font-size-s;
}
.uk-accordion-content {
font-size: @accordion-content-font-size-s;
margin-right: 1.5*@accordion-title-font-size-s;
}
}
2022-06-17 18:46:35 +02:00
.uk-open > .uk-accordion-title::before {
content: "\e5ce"
2022-06-17 18:46:35 +02:00
}
}