Commit 188571dc authored by allan's avatar allan

move accordions css declarations to a new css file

parent 838980e5
/* Accordions */
-webkit-keyframes spinAround {
from {
-webkit-transform: rotate(0);
transform: rotate(0);
}
to {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes spinAround {
from {
-webkit-transform: rotate(0);
transform: rotate(0);
}
to {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
.accordions .accordion {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.accordions .accordion:not(:last-child) {
margin-bottom: 1.5rem;
}
.accordions .accordion strong {
}
/* .accordions .accordion a:not(.button):not(.tag) {
text-decoration: underline;
}
.accordions .accordion.is-small {
font-size: 0.75rem;
}
.accordions .accordion.is-medium {
font-size: 1.25rem;
}
.accordions .accordion.is-large {
font-size: 1.5rem;
}
.accordions .accordion:not(:first-child) .accordion-header {
border-radius: 0;
}
.accordions .accordion:not(:last-child) {
margin-bottom: 0;
}
.accordions .accordion:not(:last-child) .accordion-content {
border-radius: 0;
} */
.accordions .accordion .toggle,
.accordions .accordion [data-action='toggle'] {
cursor: pointer;
}
.accordions .accordion .accordion-header {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
/* background-color: #4a4a4a; */
/* border-radius: 3px 3px 0 0; */
/* color: #fff; */
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
/* line-height: 1.25; */
/* padding: 0.5em 0.75em; */
position: relative;
}
.accordions .accordion .accordion-header .toggle {
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-moz-appearance: none;
-webkit-appearance: none;
/* background-color: rgba(10, 10, 10, 0.6); */
border: none;
/* border-radius: 4px; */
display: inline-block;
-webkit-box-flex: 0;
-ms-flex-positive: 0;
flex-grow: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
margin-left: 0.75em;
height: 20px;
width: 20px;
max-height: 20px;
max-width: 20px;
min-height: 20px;
min-width: 20px;
outline: 0;
position: relative;
vertical-align: top;
/* font-size: 1.6em; */
}
.accordions .accordion .accordion-header .toggle::before {
/* color: #fff; */
content: '\002B';
display: flex;
justify-content: space-around;
align-items: center;
}
.accordions .accordion .accordion-header .toggle::after {
display: none;
}
.accordions .accordion .accordion-header + .accordion-body {
overflow-y: hidden;
max-height: 0;
/* color: #4a4a4a; */
/* border: 1px solid #dbdbdb; */
border-radius: 3px;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-top: none;
-webkit-transition: max-height .5s ease;
transition: max-height .5s ease;
}
.accordions .accordion .accordion-header + .accordion-body .accordion-content {
padding: 1em 1.25em;
}
.accordions
.accordion
.accordion-header
+ .accordion-body
.accordion-content
code,
.accordions
.accordion
.accordion-header
+ .accordion-body
.accordion-content
pre {
background-color: #fff;
}
.accordions
.accordion
.accordion-header
+ .accordion-body
.accordion-content
pre
code {
background-color: transparent;
}
.accordions .accordion.is-active .accordion-header .toggle::before {
content: '\002D';
}
.accordions .accordion.is-active .accordion-body {
max-height: 100em;
/* max-height: intrinsic;
max-height: -moz-fit-content;
max-height: fit-content; */
-webkit-transition: max-height 1s ease;
transition: max-height 1s ease;
}
/* End Accordions */
......@@ -109,6 +109,8 @@ function intergalactic_scripts() {
wp_enqueue_script( 'intergalactic-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
wp_enqueue_style( 'accordions-style', get_template_directory_uri() . '/accordions.css', array(), '0.0.1' );
wp_enqueue_style( 'gdpr-style', get_template_directory_uri() . '/gdpr.css', array(), '0.0.1' );
wp_enqueue_script( 'searcher-script', get_template_directory_uri() . '/js/searcher.js', array( 'jquery' ), '20182205', true );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment