Skip to content

Instantly share code, notes, and snippets.

@Pageboy
Created February 14, 2020 18:11
Show Gist options
  • Save Pageboy/eaeffe029858cd31822469b66339375f to your computer and use it in GitHub Desktop.
Save Pageboy/eaeffe029858cd31822469b66339375f to your computer and use it in GitHub Desktop.
This CSS is for the play as exported from InDesign
body, div, dl, dt, dd, h1, h2, h3, h4, h5, h6, p, pre, code, blockquote {
}
body {
font-family: georgia, serif;
margin: 40px 0;
padding:0 20px;
background-color: #d1d1d1;
}
section.play, section.dramatis {
width:90%;
margin: 12px auto;
max-width: 700px;
padding:0 20px;
background-color: white;
border:1px solid gray;
}
/* This extra style rule here makes sure that the linked location is not hidden inder the fixed header */
h1 a, h2 a {
margin-top: -2.4rem;
padding-bottom: 2.4rem;
display:block;
background: white;
}
img {
width:100%;
font-family: verdana, sans-serif;
text-align: center;
}
div.sceneImage {
}
h1.playtitle {
font-size: 400%;
}
h1.act, h1.dramatishead, h1.playtitle {
font-family: verdana, sans-serif;
text-align: center;
font-size: 2em;
background-color: rgb(77, 106, 133);
color:white;
padding: 12px 0;
}
p.character {
font-size: 1.3em;
margin-bottom: 0;
}
p.charactername {
margin:0 12px 0 40px;
}
h1.dramatishead {
}
h2.scene, h2.firstscene {
font-family: verdana, sans-serif;
font-size: 200%;
color:rgb(77, 106, 133);
border-bottom:6px solid rgb(122, 183, 222);
margin:0;
}
h2.location {
color:rgb(77, 106, 133);
}
p.play_location {
}
p.prose {
margin: 0 12px 14px 30px;
}
p.song {
}
h2.stagedirection {
font-size: 1rem;
text-align: right;
color: rgb(49, 138, 77);
}
p.verseline {
margin: 0 12px 0 30px;
}
span.character_role {
color:#3138bd;
}
span.stage_directions_inline {
}
p.playtitle {
position:fixed;
left:0;
top:0;
/* height:1rem; */
padding: .6rem;
color:white;
font-family: verdana, sans-serif;
font-size:.8em;
z-index: 20;
margin:0;
}
a.menu {
position:fixed;
top:0;
right:0;
color:white;
padding: .6rem;
color:white;
font-family: verdana, sans-serif;
font-size:.8em;
z-index: 20;
margin:0;
}
a.menu:hover {
color:red;
cursor:pointer;
}
.contents {
position: fixed;
top:0;
left:0;
width:100%;
background: black;
font-family: verdana, sans-serif;
font-size:.8em;
height:2.4rem;
}
a {
text-decoration: none;
}
ul {
list-style: none;
font-size: 1em;
margin: 0;
padding-left: 0;
float:right;
overflow: hidden;
background:black;
width:0;
position:relative;
top: 2rem;
}
#navigation:target {
width: 30%;
}
li {
color: #fff;
display: block;
padding: .3rem .5rem;
position: relative;
text-decoration: none;
min-width: 4rem;
}
li a {
color: #fff;
}
li:hover a {
cursor: pointer;
}
ul li ul {
display:block;
width:100%;
padding:0;
left: 0;
font-size: .7em;
/* display: none; */
float:none;
margin:0;
position:static;
}
ul li ul li {
min-width:4rem;
}
ul li:hover > ul, ul li ul:hover {
visibility: visible;
opacity: 1;
display: block;
}
/* now follows the media query that displays everyhing correctly on wider screens */
@media only screen and (min-width: 720px) {
h1.act, h1.dramatishead {
font-size: 200%;
}
ul {
width:auto;
float:right;
overflow:visible;
position:static;
top:inherit;
}
li {
display:inline-block;
height:1.2rem;
padding: .6rem .5rem;
}
a.menu {
display:none;
}
ul li ul {
background: rgb(120, 120, 120);
visibility: hidden;
opacity: 0;
position: absolute;
margin: .8rem 0;
padding:0;
left: 0;
float:right;
}
li:hover {
background: rgb(120, 120, 120);
cursor: pointer;
}
ul li ul li:hover {
background: rgb(96, 99, 89);
}
li:hover a {
color:white;
}
#navigation:target {
width: auto;
}
p.prose, p.verseline {
margin: 0 12px 0 60px;
}
p.prose {
margin-bottom: 12px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment