Skip to content
Snippets Groups Projects
Commit b80e9b16 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

Restyle summaries

parent 86e0586c
No related branches found
No related tags found
No related merge requests found
...@@ -141,9 +141,16 @@ main { ...@@ -141,9 +141,16 @@ main {
margin-left: 20px; margin-left: 20px;
} }
details summary > * {
display: inline;
}
.about summary { .about summary {
min-width: calc((100% - 20px)) !important; cursor: pointer;
min-width: 100%;
margin-bottom: 20px; margin-bottom: 20px;
text-align: left;
border-bottom: solid 1px var(--v-border-base);
} }
blockquote { blockquote {
......
<!-- eslint-disable --> <!-- eslint-disable -->
<template> <template>
<div> <div class = "header">
<span class="dict-label" tabindex="0">{{dict_label}}</span> <span class="dict-label" tabindex="0">{{dict_label}}</span>
<h2 class="article_header" tabindex="0">{{header_text}}</h2> <h2 class="article_header" tabindex="0">{{header_text}}</h2>
<h2 class="secondary_header" v-if="secondary_header_text.length" tabindex="0">{{secondary_header_text}}</h2> <h2 class="secondary_header" v-if="secondary_header_text.length" tabindex="0">{{secondary_header_text}}</h2>
...@@ -160,12 +160,12 @@ article h2.secondary_header { ...@@ -160,12 +160,12 @@ article h2.secondary_header {
font-variant-caps: all-small-caps; font-variant-caps: all-small-caps;
} }
details { .header details {
margin-top: 10px; margin-top: 10px;
position: relative; position: relative;
} }
details > summary { .header summary {
position: relative; position: relative;
max-width: 130px; max-width: 130px;
list-style: none; list-style: none;
...@@ -175,15 +175,14 @@ details > summary { ...@@ -175,15 +175,14 @@ details > summary {
padding-bottom: 6px; padding-bottom: 6px;
padding-right: 10px; padding-right: 10px;
color: var(--v-primary-base); color: var(--v-primary-base);
background-color: #ffffff;
cursor: pointer; cursor: pointer;
} }
details[open] > summary { .header details[open] > summary {
box-shadow: 5px 5px 0px var(--v-primary-base) box-shadow: 2px 2px 0px var(--v-primary-base)
} }
details > summary:after { .header details > summary:after {
content: "⌄"; content: "⌄";
font-weight: bold; font-weight: bold;
position: absolute; position: absolute;
...@@ -192,19 +191,19 @@ details > summary:after { ...@@ -192,19 +191,19 @@ details > summary:after {
margin-right: 3px; margin-right: 3px;
} }
details > summary.bob:before { .header details > summary.bob:before {
content: "Se "; content: "Se ";
} }
details > summary.nob:before { .header details > summary.nob:before {
content: "Sjå "; content: "Sjå ";
} }
details[open] > summary.bob:before, details[open] > summary.nob:before { .header details[open] > summary.bob:before, details[open] > summary.nob:before {
content: "Skjul "; content: "Skjul ";
} }
details[open] > summary:after { .header details[open] > summary:after {
content: "⌃"; content: "⌃";
font-weight: bold; font-weight: bold;
position: absolute; position: absolute;
...@@ -222,7 +221,7 @@ details[open] > summary:after { ...@@ -222,7 +221,7 @@ details[open] > summary:after {
} }
} }
details[open] summary ~ * { .header details[open] summary ~ * {
animation: open 0.3s ease-in-out; animation: open 0.3s ease-in-out;
} }
...@@ -235,7 +234,7 @@ details[open] summary ~ * { ...@@ -235,7 +234,7 @@ details[open] summary ~ * {
padding-top: 10px; padding-top: 10px;
} }
details > summary::-webkit-details-marker { .header details > summary::-webkit-details-marker {
display: none; display: none;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment