shooter/less/layout.less

297 lines
4.6 KiB
Plaintext

@import 'grid.less';
@columns: 12;
@column-width: 60;
@gutter-width: 20;
@total-width: 100%;
body {
background: @background;
color: @color;
font-family: @font-body;
font-size: 18px;
line-height: 1.6em;
background-attachment: fixed;
overflow-y: scroll;
overflow-x: hidden;
}
#page {
.row();
}
.mid_panel {
.column(9);
}
.full_panel {
.column(10);
.push(1);
}
#content_wrapper {
margin: 1.1em auto;
padding: 2.8em;
display: none; /* Shown by Javascript */
overflow: auto;
}
@media (min-width: 981px) {
#content_wrapper {
margin: 1.1em 15%;
}
}
@media (min-width: 1281px) {
#content_wrapper {
margin: 1.1em 25%;
}
}
@media screen and (max-width: 720px) {
.mid_panel,
.full_panel {
.column(12);
margin-bottom: 1em;
}
}
/* The title block */
#title {
max-width: 28em;
margin: 2.2em auto 1.1em auto;
padding: 1.7em;
cursor: pointer; /* Until we click to start. */
.label {
overflow: hidden;
margin: auto;
max-width: 18em;
position: relative;
text-align: center;
}
.subtitle {
font-size: smaller;
color: #aaa;
}
h1 {
font-size: 1.6em;
line-height: 1.4em;
font-family: @font-title;
letter-spacing: 0.2em;
font-weight: normal;
padding-bottom: 1.1em;
span.fancy {
font-size: 2.5em;
line-height: 0;
font-family: Tangerine, Palatino, Times, "Times New Roman", serif;
font-style: italic;
margin: 0 -0.2em;
}
}
h2 {
font-size: 1.2em;
font-weight: normal;
margin: 1.1em 0 0 0;
}
h3 {
font-size: 1.0em;
font-weight: normal;
margin: 1.1em 0 0 0;
}
h1,
h2,
h3 {
color: rgba(33,17,0,0.9);
text-shadow: rgba(255,255,255,0.5) 2px 2px 2px,
rgba(0,0,0,0.1) -1px -1px 2px;
}
.warnings {
font-size: small;
font-style: italic;
p {
margin-bottom: 1em;
}
}
.click_message {
display: none;
font-size: 0.9em;
font-style: italic;
text-align: center;
color: #987;
}
.noscript_message {
left: 0;
right: 0;
bottom: 0;
position: absolute;
font-size: 0.9em;
font-style: italic;
text-align: center;
color: #943;
}
}
/* Main content */
#content_wrapper {
background: @text_background;
}
span.drop + p {
text-indent: -0.4em;
}
p {
margin: 0;
-webkit-transition: text-indent 0.25s ease;
transition: text-indent 0.25s ease;
}
hr {
border: none;
background-color: rgba(0,0,0,0.25);
margin: -1px 0 -1px -2.8em;
width: 1.1em;
height: 2px;
}
#content {
p {
text-indent: 1.6em;
}
section {
border-top: 1px dashed #bbb;
}
}
#content h1 + p:first-line,
#content h1 + img + p:first-line {
font-weight: bold;
color: rgba(0,0,0,0.85);
}
#content h1 + p:first-letter,
#content h1 + img + p:first-letter {
position: relative;
padding-top: 0.1em;
display: block;
float: left;
font-weight: normal;
font-size: 3.2em;
line-height: 0.8em;
color: #210;
}
ul {
margin: 0;
padding: 0 0 0 1em;
}
ul.options {
padding: 0;
text-align: center;
margin-top: 0.5em;
margin-bottom: 0.7em;
list-style-type: none;
border-radius: 4px;
li {
padding: 0.5em;
}
li:hover {
cursor: pointer;
}
li:last-child {
border-bottom: none;
}
}
h1 {
font-size: 1.0em;
text-transform: uppercase;
letter-spacing: 2px;
margin: 2.3em 0 1.1em 0;
color: #210;
text-align: center;
}
h1:first-child {
margin-top: 0;
}
a {
color: @links;
text-decoration: none;
border-bottom: 1px solid transparent;
}
a:hover {
border-bottom: 1px dotted #900;
}
img.right {
float: right;
margin: 1.1em 0 1.1em 1.1em;
}
img.left {
float: left;
margin: 1.1em 1.1em 1.1em 0;
}
#legal {
max-width: 33em;
color: #654;
margin: 1em auto 0 auto;
padding-bottom: 2.2em;
display: none; /* Shown by Javascript */
p {
font-size: 0.7em;
line-height: 1.3em;
margin-bottom: 0.5em;
}
p + p {
text-indent: 0;
}
}
#content_library,
#ui_library,
#menu {
display: none;
}
@media screen and (max-width: 640px) {
body {
margin: 0;
font-size: 18.5px;
line-height: 1.5em;
}
/* Title */
#title {
margin-top: -1.5em;
padding: 1.0em 0.5em;
.label {
font-size: 0.65em;
max-width: 25em;
padding: 2.0em;
}
}
/* Main content */
#content_wrapper {
width: auto;
padding: 2.0em;
}
#content {
font-size: 16px;
line-height: 1.5em;
}
}
.center-block {
margin: 0 auto;
}
.footright {
float: right;
}
h3 {
text-align: center;
}
.controls {
.row();
#clip {
.push(4);
.column(2);
text-align: center;
display: none;
img {
max-height: 50px;
}
}
.volume {
.column(2);
}
}