forked from stephband/scribe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule.css
executable file
·76 lines (63 loc) · 1.96 KB
/
module.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
@import './fonts/jazz.css';
@import './classes/accidental.css';
@import './classes/stave.css';
@import './classes/bar.css';
@import './classes/clef.css';
@import './classes/timesig.css';
@import './classes/chord.css';
@import './classes/head.css';
@import './classes/ledge.css';
@import './classes/rest.css';
@import './classes/stem.css';
@import './classes/beam.css';
@import './classes/tail.css';
@import './classes/tie.css';
@import './classes/lyric.css';
@import './classes/svg.css';
*, ::before, ::after {
box-sizing: border-box;
background-repeat: no-repeat;
}
.scribe {
/* Metrics */
--bar-line-size: 0.05rem;
/* Compress column-gap below 800px viewport to fit more information
on mobile (0.08vw becomes 0.04em at 800px viewport assuming no zoom). */
--bar-column-gap: min(0.08vw, 0.02em);
--bar-padding-left: 0.3em;
--bar-padding-right: 0.15em;
/* Accidentals are aligned right and have the intervening column-gap, and
the --head-margin-left, negated so this is the actual accidental-head gap. */
--acci-margin-left: 0;
--acci-margin-right: 0.125em;
--head-margin-left: 0.125em;
/*--head-margin-right: 0.05em;*/
--stem-thickness: 0.03em;
--safari-bar-mask-color: white;
padding-left: var(--bar-line-size, 1px);
display: block;
display: flex;
flex-wrap: wrap;
flex-direction: row;
column-gap: 0;
}
.scribe.safari,
.safari .scribe {
/* Bar lines, ::before and ::after on .bar, are placed outside of the bar
so that the overlap overcomes bar to bar rounding errors in Safari,
causing 1px white gap. But this means we need to pad the container by
the same amount. */
padding-right: var(--bar-line-size, 1px);
}
.scribe > .bar {
flex: 1 1;
/* Make bar lines overlap */
margin-left: calc(-1 * var(--bar-line-size, 1px));
}
svg {
fill: currentcolor;
/*background-color: rgba(200, 180, 30, 0.5);*/
}
svg > path {
fill: inherit;
}