godlike.css
Version:
CSS for layout standardization and usability of web applications
259 lines (258 loc) • 3.79 kB
CSS
@charset "UTF-8";
@-ms-viewport {
width: device-width;
initial-scale: 1;
}
@-moz-viewport {
width: device-width;
initial-scale: 1;
}
@-webkit-viewport {
width: device-width;
initial-scale: 1;
}
*,
:before,
:after {
box-sizing: border-box;
}
html {
height: 100%;
}
body {
position: relative;
min-height: 100%;
overflow: auto;
overflow-x: hidden;
margin: 0;
padding: 0;
word-wrap: break-word;
text-decoration-skip: objects;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-ms-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-overflow-scrolling: touch;
-ms-touch-action: manipulation;
touch-action: manipulation;
}
span {
display: inline-block;
}
a,
input,
button,
textarea,
optgroup,
select,
fieldset,
figure,
legend,
address {
font: inherit;
color: inherit;
line-height: inherit;
text-transform: inherit;
text-shadow: inherit;
border: none;
background: none;
box-shadow: none;
border-radius: 0;
margin: 0;
padding: 0;
}
a,
button,
[type='button'],
[type='submit'] {
transition: color 0.25s, background 0.25s, opacity 0.25s;
}
a > *,
button > *,
[type='button'] > *,
[type='submit'] > * {
pointer-events: none;
}
a {
cursor: pointer;
text-decoration: none;
-webkit-text-decoration-skip: none;
}
button {
overflow: visible;
-webkit-font-smoothing: inherit;
letter-spacing: inherit;
}
p {
margin: 0;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
overflow: hidden;
}
b,
strong {
font-weight: 700;
}
audio,
canvas {
display: inline-block;
}
img,
svg,
embed,
object,
iframe,
video,
audio,
canvas {
border: 0;
vertical-align: middle;
max-width: 100%;
height: auto;
}
img,
embed,
object,
iframe,
video {
display: block;
margin: auto;
}
img {
image-rendering: optimizeQuality;
}
svg {
color: inherit;
}
svg:not(:root) {
overflow: hidden;
}
progress {
vertical-align: baseline;
border: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
text-rendering: optimizeLegibility;
font: inherit;
color: inherit;
margin: 0;
}
ul,
ol {
margin: 0;
padding: 0;
list-style: none;
}
input,
select,
button,
button > * {
display: inline-block;
vertical-align: middle;
}
button,
label,
select,
summary,
[type='button'],
[type='submit'],
[type='reset'],
[type='checkbox'],
[type='radio'],
[type='range'] {
user-select: none;
cursor: pointer;
}
select,
[type='button'],
[type='submit'],
[type='search'],
[type="radio"],
[type='range'],
::-webkit-search-cancel-button,
::-webkit-search-decoration,
::-webkit-outer-spin-button,
::-webkit-inner-spin-button,
::-webkit-slider-thumb {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
::-webkit-contacts-auto-fill-button,
::-webkit-credentials-auto-fill-button {
visibility: hidden;
pointer-events: none;
position: absolute;
right: 0;
}
:-webkit-autofill {
box-shadow: inset 0 0 0 1000px #fff;
}
::marker {
display: none;
}
[type="radio"] {
-webkit-appearance: radio;
}
[type='number'] {
-moz-appearance: textfield;
}
::-ms-clear,
::-ms-reveal {
display: none;
}
input,
textarea {
width: 100%;
}
input {
text-overflow: ellipsis;
}
textarea {
overflow: auto;
resize: none;
}
:active,
:hover,
:focus {
outline: 0;
outline-offset: 0;
}
:disabled {
pointer-events: none;
cursor: not-allowed;
-webkit-text-fill-color: initial;
}
::-moz-focus-outer,
::-moz-focus-inner {
border: 0;
padding: 0;
}
::placeholder {
opacity: 1;
color: inherit;
}
::-moz-placeholder {
opacity: 1;
color: inherit;
}
table {
border-spacing: 0;
border-collapse: collapse;
}
td,
th {
padding: 0;
text-align: center;
}