frontispiece / apps / frontispiece-editor / dist / style.css
style.css
Raw
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

/** THEME AND STYLING **/
* {
	user-select: none;
}

body {
	background-color: #000;
	transition: background-color 0.5s;
	color: #FFF;
	font-family: 'Cormorant Garamond';
	background-size: cover;
	min-height: 100%;
	width: 100%;
}

p {
	font-size: 24px;
	line-height: 32px;
}

a {
	color: #4b63eb;
}

img {
	max-width: 100%;
}

/** Buttons are used for all choices (because they don't technically link anywhere...) */
button {
	cursor: pointer;
	background: none;
	border: none;
	color: #4b63eb;
	font-weight: bold;
	font-size: 24px;
	transition: color 0.3s, font-size 0.3s;
}

button:hover {
	color: #fff;
	font-size: 30px;
}

/****************/
/****************/
/** STORY VIEW **/
/****************/
/****************/

#story-view {
	width: 640px;
	margin: 0 auto;
	max-width: 100%;
	padding: 48px;

	padding-top: 240px;
	padding-bottom: 240px;
}

#story {
	position: relative;
}

#story p {
	opacity: 0.5;
	scroll-margin-top: 20px; /* used to determine how much buffer is left for scroll */
}

#story p.active {
	opacity: 1;
}

/** This makes the continue button a full-screen surface that advances the story
    when the player clicks anywhere. Note that the continue button is only created
	if `oneline` is set to true in configuration **/
#continue-button {
	background: none;
	border: none;
	opacity: 0;
	position: fixed;
	left: 0;
	width: 100vw;
	top: 0;
	height: 100vh;
	z-index: 1;
}

#choices {
	display: flex;
	flex-direction: column;
}

.choice {
	padding: 10px;
	margin-bottom: 8px;
}

/******************/
/******************/
/** TITLE SCREEN **/
/******************/
/******************/

#title-screen {
	width: calc(100vw - 200px);
	height: 100vh;
	min-width: 200px;
	max-width: 720px;
	align-self: center;
	margin: 0 auto;
	text-align: center;

	/* center the title screen */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#title {
	font-size: 60px;
	font-weight: bold;
	margin-bottom: 12px;
}

#subtitle {
	font-weight: normal;
	font-style: italic;
}

/** STORY-SPECIFIC CSS **/
.red {
	color: #FF0000;
}