hut-base
Version:
Base styles for HTML UI Toolkit
156 lines (129 loc) • 1.94 kB
CSS
/* Basic layout styles */
*,
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
html {
width: 100%;
height: 100%;
overflow: auto;
}
body {
overflow: hidden;
}
/* Fonts and other typographical settings */
html {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 100%;
line-height: 1.5;
color: #333;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 500;
line-height: 1.2;
margin: 0.8rem 0 0.4rem 0;
}
h1 {
font-size: 2.6rem;
}
h2 {
font-size: 2.15rem;
}
h3 {
font-size: 1.7rem;
}
h4 {
font-size: 1.25rem;
}
h5 {
font-size: 1rem;
}
h6 {
font-size: 0.85rem;
}
p {
margin: 0 0 0.5rem 0;
}
hr {
border: 0;
border-top: 1px solid #CCC;
height: 0;
}
/* Basic list styles */
ul,
ol {
margin: 0;
padding: 0 0 0 1.5em;
}
button {
border: 1px solid #999;
padding: 0.25em 0.75em;
background-color: #FFF;
font: inherit;
color: inherit;
transition: background-color 0.2s;
}
button:hover,
button.hover {
background-color: #EEE;
}
button:active,
button.active {
background-color: #CCC;
}
button:disabled {
background-color: #EEE;
border-color: #BBB;
color: #BBB;
}
input,
label {
display: block;
width: 100%;
}
input {
color: inherit;
font: inherit;
/* line-height must be normal in Firefox, make it the same cross-browser */
line-height: normal;
outline: none;
border: 1px solid #999;
padding: 0.25em 0.5em;
margin: 0 0 0.5rem 0;
transition: 0.2s border-color;
}
input:focus {
border-color: #666;
}
input[type="checkbox"],
input[type="radio"] {
display: inline-block;
width: auto;
padding: 0;
border: none;
}
body {
padding: 0 1rem 0.5rem 1rem;
margin: 0 auto;
max-width: 42rem;
overflow: hidden;
}
.example {
padding: 0.5rem 1rem;
border: 1px solid #CCC;
position: relative;
overflow: hidden;
}