chordsong
Version:
ChordSong is a simple text format for the notation of lyrics with guitar chords, and an application that renders them to portable HTML pages.
125 lines (113 loc) • 2.51 kB
CSS
/*
Layout
*/
body {
padding: 0 2em 2em 2em;
}
chordsong {
display: flex;
flex-flow: row wrap;
vertical-align: top;
}
/* We tell all items to be 100% width, via flex-basis */
chordsong > * {
flex: 1 100%;
}
chords {
flex: 1 0 0; padding-top: 20px;
border-top: rgb(192,192,192) solid 1px;
margin-top: 20px;
}
@media all and (min-width: 800px) {
chordsong lyrics { flex: 6 0px; }
chordsong lyrics { order: 1; }
chordsong chords {
order: 2;
padding-left: 20px;
border-left: rgb(192,192,192) solid 1px;
border-top: none;
}
}
/*
Document parts
*/
chordsong .directive {
font-family: Open Sans, -apple-system, Noto, Roboto, Helvetica neue, Helvetica, sans-serif;
}
chordsong .directive label {
font-weight: bold;
text-transform: capitalize;
display: inline;
}
chordsong .directive label:after {
content: ":";
margin-right: 8px;
}
chordsong .directive .content {
display: inline;
}
chordsong .directive label[for="directive-title"] {
display: none;
}
chordsong #directive-title {
font-size: xx-large;
text-align: center;
display: block;
}
chordsong .directive label[for="directive-artist"] {
display: none;
}
chordsong #directive-artist {
font-size: large;
text-align: center;
display: block;
margin-bottom: 20px;
}
chordsong .directive label[for="directive-comment"] {
display: none;
}
chordsong #directive-comment {
color: rgb(94,94,94);
}
chordsong lyrics {
white-space: pre;
font-family: "Noto Mono", "Courier New", monospace ;
margin-top: 30px;
/* column-gap: 3em; */
}
chordsong section.chords-line {
break-inside: avoid
}
chordsong span.comment {
color: rgb(94, 94, 94);
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-style: italic;
font-size: inherit;
}
chordsong span.chord-container {
display: inline-block;
position: relative;
white-space: normal;
color: initial;
page-break-after: avoid
}
chordsong span.chord-container .chord-name {
position: relative;
font: bold 14px Open Sans, -apple-system, Noto, Roboto, Helvetica neue, Helvetica, sans-serif;
}
chordsong span.chord-container .chord-name .diagram {
visibility: hidden;
height: 64px;
position: absolute;
bottom: 0%;
margin-left: 10px;
margin-bottom: -32px;
z-index: 1;
}
chordsong span.chord-container .chord-name:hover .diagram {
visibility: visible;
}
chordsong chords .title {
font-family: Open Sans, -apple-system, Roboto, Helvetica neue, Helvetica, sans-serif;
font-weight: bold;
}