@nitro-ui/object-grid
Version:
Grid component for Nitro UI.
284 lines (236 loc) • 4.74 kB
CSS
@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,700");
@keyframes rotate {
0% {
transform: rotate(0); }
100% {
transform: rotate(360deg); } }
@keyframes shake-horizontal {
0% {
transform: translate(-16px, 0); }
25% {
transform: translate(16px, 0); }
50% {
transform: translate(-16px, 0); }
75% {
transform: translate(16px, 0); }
100% {
transform: translate(0, 0); } }
@keyframes shake-horizontal-small {
0% {
transform: translate(0, 0); }
20% {
transform: translate(-4px, 0); }
40% {
transform: translate(4px, 0); }
60% {
transform: translate(-4px, 0); }
80% {
transform: translate(4px, 0); }
100% {
transform: translate(0, 0); } }
@keyframes slide-down {
0% {
opacity: 0;
transform: translateY(-40px); }
100% {
opacity: 1;
transform: translateY(0); } }
html {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
font-family: "Roboto", Arial, sans-serif;
font-size: 14px;
line-height: 20px;
letter-spacing: .2px;
height: 100%; }
body {
background: #ECEEF3;
color: #576A7F;
position: relative; }
*, *:before, *:after {
box-sizing: border-box; }
article,
aside,
audio,
canvas,
figure,
footer,
header,
main,
nav,
section,
summary,
video {
display: block; }
[hidden] {
display: none; }
[disabled] {
pointer-events: none; }
body, html,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
figure, figcaption, img,
dl, dd, ol, ul,
form, fieldset, legend,
table, th, td, caption,
hr {
margin: 0;
padding: 0; }
h1, h2, h3, h4, h5, h6,
p,
ul, ol, dl,
blockquote {
margin-bottom: 16px; }
ul, ol, dd {
margin-left: 24px; }
li > ul,
li > ol {
margin-bottom: 8px; }
hr {
box-sizing: content-box;
height: 0;
margin: 0; }
table {
border-collapse: collapse;
border-spacing: 0;
width: 100%; }
th,
td {
padding: 16px;
text-align: left;
vertical-align: top; }
th.is--tight,
td.is--tight {
width: 1px;
white-space: nowrap; }
th[valign="middle"],
td[valign="middle"] {
vertical-align: middle; }
th[valign="bottom"],
td[valign="bottom"] {
vertical-align: bottom; }
thead th,
thead td {
padding-bottom: 8px;
padding-top: 8px; }
thead tr:last-child > th,
thead tr:last-child > td {
border-bottom: 1px solid #ECEEF3; }
thead th {
font-size: 12px; }
tbody th,
tbody td {
border-bottom: 1px solid #ECEEF3; }
b,
strong {
font-weight: 500; }
code,
kbd,
pre,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 1em; }
pre {
background: #ECEEF3;
padding: 16px;
white-space: pre-wrap; }
h1 {
font-size: 40px;
line-height: 48px; }
h2 {
font-size: 32px;
line-height: 40px; }
h3 {
font-size: 24px;
line-height: 32px; }
h4 {
font-size: 18px;
line-height: 24px; }
h5 {
font-size: 16px;
line-height: 20px; }
h6 {
font-size: 14px;
line-height: 20px; }
h1, h2, h3, h4, h5, h6 {
color: #344251;
font-weight: 500; }
a {
color: #0162DD;
cursor: pointer;
text-decoration: none; }
a:not(.c-btn).is--disabled {
color: #B8C2CE;
cursor: default;
pointer-events: none; }
a:not(.c-btn).no--underline {
text-decoration: none ; }
a:focus {
outline: none ; }
a:active,
a:hover {
outline: 0; }
small {
font-size: 12px; }
sub,
sup {
font-size: 10px;
line-height: 0;
position: relative;
vertical-align: baseline; }
sup {
top: -0.5em; }
sub {
bottom: -0.25em; }
u, ins {
text-decoration: underline; }
label {
display: block;
margin-bottom: 4px; }
.o-grid {
display: flex;
flex-flow: row wrap;
list-style: none;
margin: 0 -8px;
word-break: break-word; }
.o-grid__item {
flex-basis: 0;
flex-grow: 1;
max-width: 100%;
padding: 0 8px; }
.o-grid--reversed {
flex-direction: row-reverse; }
.o-grid--lg {
margin: 0 -12px; }
.o-grid--lg > .o-grid__item {
padding: 0 12px; }
.o-grid--md {
margin: 0 -8px; }
.o-grid--md > .o-grid__item {
padding: 0 8px; }
.o-grid--sm {
margin: 0 -4px; }
.o-grid--sm > .o-grid__item {
padding: 0 4px; }
.o-grid--none {
margin: 0 0; }
.o-grid--none > .o-grid__item {
padding: 0 0; }
@media only screen and (max-width: 767px) {
.o-grid--lg\@mobile {
margin: 0 -12px; }
.o-grid--lg\@mobile > .o-grid__item {
padding: 0 12px; }
.o-grid--md\@mobile {
margin: 0 -8px; }
.o-grid--md\@mobile > .o-grid__item {
padding: 0 8px; }
.o-grid--sm\@mobile {
margin: 0 -4px; }
.o-grid--sm\@mobile > .o-grid__item {
padding: 0 4px; }
.o-grid--none\@mobile {
margin: 0 0; }
.o-grid--none\@mobile > .o-grid__item {
padding: 0 0; } }
/*# sourceMappingURL=grid.css.map */