summaryrefslogtreecommitdiff
path: root/docs/glyphs/glyphs.css
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2018-09-17 20:33:56 +0300
committerRasmus Andersson <rasmus@notion.se>2018-10-11 09:37:53 +0300
commit8fdcaa7e3e693f5307070ca5b136a64d95b9e922 (patch)
tree0bd3c8708004c9574f095d1146cc2319b07162d1 /docs/glyphs/glyphs.css
parentbf78d24ea1bbddca3e19bc5ec1d6f77bfa7462a1 (diff)
downloadinter-8fdcaa7e3e693f5307070ca5b136a64d95b9e922.tar.xz
website: glyphs: don't clip glyphs spilling outside the EM square in single-view mode. Also, adds x-height and cap height guide lines to previews
Diffstat (limited to 'docs/glyphs/glyphs.css')
-rw-r--r--docs/glyphs/glyphs.css24
1 files changed, 20 insertions, 4 deletions
diff --git a/docs/glyphs/glyphs.css b/docs/glyphs/glyphs.css
index 08be80427..aff0e4b67 100644
--- a/docs/glyphs/glyphs.css
+++ b/docs/glyphs/glyphs.css
@@ -27,6 +27,7 @@ body.single #glyphs {
max-width:888px;
margin:0 auto;
padding-left: 0;
+ overflow: visible;
}
.glyph {
height: 346px;
@@ -41,14 +42,26 @@ body.single #glyphs {
position: relative;
text-shadow: none;
}
- .glyph .baseline {
- background: rgba(0,90,230,.6);
+ .glyph .line {
+ background: rgba(0,0,0,.1);
position: absolute;
- left:0; right:0; bottom:64px;
+ left:0; right:0;
height: 1px;
z-index:0;
visibility: hidden;
}
+ .glyph .line.baseline {
+ background: rgba(0,90,230,.6);
+ bottom: 64px;
+ }
+ .glyph .line.x-height {
+ background: rgba(230,60,10,.6);
+ top: 128px;
+ }
+ .glyph .line.cap-height {
+ background: rgba(60,130,20,.6);
+ top: 76px;
+ }
.glyph .names {
position: absolute;
left:20px; right:20px; bottom:6px;
@@ -74,7 +87,7 @@ body.single #glyphs {
background: transparent;
border-left: 1px dashed transparent;
}
- .glyph:hover .baseline {
+ .glyph:hover .line {
visibility: visible;
}
.glyph:hover .advance {
@@ -95,6 +108,9 @@ body.single #glyphs {
z-index:1;
opacity:0.95;
}
+ body.single .glyph svg {
+ overflow: visible;
+ }
.glyph .advancez {
display: block;
background: salmon;