@nitro-ui/utility-width
Version:
Utility Width component for Nitro UI.
742 lines (674 loc) • 16.6 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; }
.u-width-1 {
max-width: 100%;
width: 100%;
flex: 0 0 100%; }
.u-width-1\/2, .u-width-2\/4, .u-width-3\/6, .u-width-4\/8, .u-width-5\/10, .u-width-6\/12 {
max-width: 50%;
width: 50%;
flex: 0 0 50%; }
.u-width-1\/3, .u-width-2\/6, .u-width-4\/12 {
max-width: 33.333%;
width: 33.333%;
flex: 0 0 33.333%; }
.u-width-2\/3, .u-width-4\/6, .u-width-8\/12 {
max-width: 66.666%;
width: 66.666%;
flex: 0 0 66.666%; }
.u-width-1\/4, .u-width-2\/8, .u-width-3\/12 {
max-width: 25%;
width: 25%;
flex: 0 0 25%; }
.u-width-3\/4, .u-width-6\/8, .u-width-9\/12 {
max-width: 75%;
width: 75%;
flex: 0 0 75%; }
.u-width-1\/5, .u-width-2\/10 {
max-width: 20%;
width: 20%;
flex: 0 0 20%; }
.u-width-2\/5, .u-width-4\/10 {
max-width: 40%;
width: 40%;
flex: 0 0 40%; }
.u-width-3\/5, .u-width-6\/10 {
max-width: 60%;
width: 60%;
flex: 0 0 60%; }
.u-width-4\/5, .u-width-8\/10 {
max-width: 80%;
width: 80%;
flex: 0 0 80%; }
.u-width-1\/6, .u-width-2\/12 {
max-width: 16.666%;
width: 16.666%;
flex: 0 0 16.666%; }
.u-width-5\/6, .u-width-10\/12 {
max-width: 83.333%;
width: 83.333%;
flex: 0 0 83.333%; }
.u-width-1\/8 {
max-width: 12.5%;
width: 12.5%;
flex: 0 0 12.5%; }
.u-width-3\/8 {
max-width: 37.5%;
width: 37.5%;
flex: 0 0 37.5%; }
.u-width-5\/8 {
max-width: 62.5%;
width: 62.5%;
flex: 0 0 62.5%; }
.u-width-7\/8 {
max-width: 87.5%;
width: 87.5%;
flex: 0 0 87.5%; }
.u-width-1\/10 {
max-width: 10%;
width: 10%;
flex: 0 0 10%; }
.u-width-3\/10 {
max-width: 30%;
width: 30%;
flex: 0 0 30%; }
.u-width-7\/10 {
max-width: 70%;
width: 70%;
flex: 0 0 70%; }
.u-width-9\/10 {
max-width: 90%;
width: 90%;
flex: 0 0 90%; }
.u-width-1\/12 {
max-width: 8.333%;
width: 8.333%;
flex: 0 0 8.333%; }
.u-width-5\/12 {
max-width: 41.666%;
width: 41.666%;
flex: 0 0 41.666%; }
.u-width-7\/12 {
max-width: 58.333%;
width: 58.333%;
flex: 0 0 58.333%; }
.u-width-11\/12 {
max-width: 91.666%;
width: 91.666%;
flex: 0 0 91.666%; }
@media only screen and (min-width: 1081px) {
.u-width-1\@desktop {
max-width: 100%;
width: 100%;
flex: 0 0 100%; }
.u-width-1\/2\@desktop, .u-width-2\/4\@desktop, .u-width-3\/6\@desktop, .u-width-4\/8\@desktop, .u-width-5\/10\@desktop, .u-width-6\/12\@desktop {
max-width: 50%;
width: 50%;
flex: 0 0 50%; }
.u-width-1\/3\@desktop, .u-width-2\/6\@desktop, .u-width-4\/12\@desktop {
max-width: 33.333%;
width: 33.333%;
flex: 0 0 33.333%; }
.u-width-2\/3\@desktop, .u-width-4\/6\@desktop, .u-width-8\/12\@desktop {
max-width: 66.666%;
width: 66.666%;
flex: 0 0 66.666%; }
.u-width-1\/4\@desktop, .u-width-2\/8\@desktop, .u-width-3\/12\@desktop {
max-width: 25%;
width: 25%;
flex: 0 0 25%; }
.u-width-3\/4\@desktop, .u-width-6\/8\@desktop, .u-width-9\/12\@desktop {
max-width: 75%;
width: 75%;
flex: 0 0 75%; }
.u-width-1\/5\@desktop, .u-width-2\/10\@desktop {
max-width: 20%;
width: 20%;
flex: 0 0 20%; }
.u-width-2\/5\@desktop, .u-width-4\/10\@desktop {
max-width: 40%;
width: 40%;
flex: 0 0 40%; }
.u-width-3\/5\@desktop, .u-width-6\/10\@desktop {
max-width: 60%;
width: 60%;
flex: 0 0 60%; }
.u-width-4\/5\@desktop, .u-width-8\/10\@desktop {
max-width: 80%;
width: 80%;
flex: 0 0 80%; }
.u-width-1\/6\@desktop, .u-width-2\/12\@desktop {
max-width: 16.666%;
width: 16.666%;
flex: 0 0 16.666%; }
.u-width-5\/6\@desktop, .u-width-10\/12\@desktop {
max-width: 83.333%;
width: 83.333%;
flex: 0 0 83.333%; }
.u-width-1\/8\@desktop {
max-width: 12.5%;
width: 12.5%;
flex: 0 0 12.5%; }
.u-width-3\/8\@desktop {
max-width: 37.5%;
width: 37.5%;
flex: 0 0 37.5%; }
.u-width-5\/8\@desktop {
max-width: 62.5%;
width: 62.5%;
flex: 0 0 62.5%; }
.u-width-7\/8\@desktop {
max-width: 87.5%;
width: 87.5%;
flex: 0 0 87.5%; }
.u-width-1\/10\@desktop {
max-width: 10%;
width: 10%;
flex: 0 0 10%; }
.u-width-3\/10\@desktop {
max-width: 30%;
width: 30%;
flex: 0 0 30%; }
.u-width-7\/10\@desktop {
max-width: 70%;
width: 70%;
flex: 0 0 70%; }
.u-width-9\/10\@desktop {
max-width: 90%;
width: 90%;
flex: 0 0 90%; }
.u-width-1\/12\@desktop {
max-width: 8.333%;
width: 8.333%;
flex: 0 0 8.333%; }
.u-width-5\/12\@desktop {
max-width: 41.666%;
width: 41.666%;
flex: 0 0 41.666%; }
.u-width-7\/12\@desktop {
max-width: 58.333%;
width: 58.333%;
flex: 0 0 58.333%; }
.u-width-11\/12\@desktop {
max-width: 91.666%;
width: 91.666%;
flex: 0 0 91.666%; } }
@media only screen and (max-width: 1080px) {
.u-width-1\@portable {
max-width: 100%;
width: 100%;
flex: 0 0 100%; }
.u-width-1\/2\@portable, .u-width-2\/4\@portable, .u-width-3\/6\@portable, .u-width-4\/8\@portable, .u-width-5\/10\@portable, .u-width-6\/12\@portable {
max-width: 50%;
width: 50%;
flex: 0 0 50%; }
.u-width-1\/3\@portable, .u-width-2\/6\@portable, .u-width-4\/12\@portable {
max-width: 33.333%;
width: 33.333%;
flex: 0 0 33.333%; }
.u-width-2\/3\@portable, .u-width-4\/6\@portable, .u-width-8\/12\@portable {
max-width: 66.666%;
width: 66.666%;
flex: 0 0 66.666%; }
.u-width-1\/4\@portable, .u-width-2\/8\@portable, .u-width-3\/12\@portable {
max-width: 25%;
width: 25%;
flex: 0 0 25%; }
.u-width-3\/4\@portable, .u-width-6\/8\@portable, .u-width-9\/12\@portable {
max-width: 75%;
width: 75%;
flex: 0 0 75%; }
.u-width-1\/5\@portable, .u-width-2\/10\@portable {
max-width: 20%;
width: 20%;
flex: 0 0 20%; }
.u-width-2\/5\@portable, .u-width-4\/10\@portable {
max-width: 40%;
width: 40%;
flex: 0 0 40%; }
.u-width-3\/5\@portable, .u-width-6\/10\@portable {
max-width: 60%;
width: 60%;
flex: 0 0 60%; }
.u-width-4\/5\@portable, .u-width-8\/10\@portable {
max-width: 80%;
width: 80%;
flex: 0 0 80%; }
.u-width-1\/6\@portable, .u-width-2\/12\@portable {
max-width: 16.666%;
width: 16.666%;
flex: 0 0 16.666%; }
.u-width-5\/6\@portable, .u-width-10\/12\@portable {
max-width: 83.333%;
width: 83.333%;
flex: 0 0 83.333%; }
.u-width-1\/8\@portable {
max-width: 12.5%;
width: 12.5%;
flex: 0 0 12.5%; }
.u-width-3\/8\@portable {
max-width: 37.5%;
width: 37.5%;
flex: 0 0 37.5%; }
.u-width-5\/8\@portable {
max-width: 62.5%;
width: 62.5%;
flex: 0 0 62.5%; }
.u-width-7\/8\@portable {
max-width: 87.5%;
width: 87.5%;
flex: 0 0 87.5%; }
.u-width-1\/10\@portable {
max-width: 10%;
width: 10%;
flex: 0 0 10%; }
.u-width-3\/10\@portable {
max-width: 30%;
width: 30%;
flex: 0 0 30%; }
.u-width-7\/10\@portable {
max-width: 70%;
width: 70%;
flex: 0 0 70%; }
.u-width-9\/10\@portable {
max-width: 90%;
width: 90%;
flex: 0 0 90%; }
.u-width-1\/12\@portable {
max-width: 8.333%;
width: 8.333%;
flex: 0 0 8.333%; }
.u-width-5\/12\@portable {
max-width: 41.666%;
width: 41.666%;
flex: 0 0 41.666%; }
.u-width-7\/12\@portable {
max-width: 58.333%;
width: 58.333%;
flex: 0 0 58.333%; }
.u-width-11\/12\@portable {
max-width: 91.666%;
width: 91.666%;
flex: 0 0 91.666%; } }
@media only screen and (max-width: 1080px) {
.u-width-1\@mobile-tablet {
max-width: 100%;
width: 100%;
flex: 0 0 100%; }
.u-width-1\/2\@mobile-tablet, .u-width-2\/4\@mobile-tablet, .u-width-3\/6\@mobile-tablet, .u-width-4\/8\@mobile-tablet, .u-width-5\/10\@mobile-tablet, .u-width-6\/12\@mobile-tablet {
max-width: 50%;
width: 50%;
flex: 0 0 50%; }
.u-width-1\/3\@mobile-tablet, .u-width-2\/6\@mobile-tablet, .u-width-4\/12\@mobile-tablet {
max-width: 33.333%;
width: 33.333%;
flex: 0 0 33.333%; }
.u-width-2\/3\@mobile-tablet, .u-width-4\/6\@mobile-tablet, .u-width-8\/12\@mobile-tablet {
max-width: 66.666%;
width: 66.666%;
flex: 0 0 66.666%; }
.u-width-1\/4\@mobile-tablet, .u-width-2\/8\@mobile-tablet, .u-width-3\/12\@mobile-tablet {
max-width: 25%;
width: 25%;
flex: 0 0 25%; }
.u-width-3\/4\@mobile-tablet, .u-width-6\/8\@mobile-tablet, .u-width-9\/12\@mobile-tablet {
max-width: 75%;
width: 75%;
flex: 0 0 75%; }
.u-width-1\/5\@mobile-tablet, .u-width-2\/10\@mobile-tablet {
max-width: 20%;
width: 20%;
flex: 0 0 20%; }
.u-width-2\/5\@mobile-tablet, .u-width-4\/10\@mobile-tablet {
max-width: 40%;
width: 40%;
flex: 0 0 40%; }
.u-width-3\/5\@mobile-tablet, .u-width-6\/10\@mobile-tablet {
max-width: 60%;
width: 60%;
flex: 0 0 60%; }
.u-width-4\/5\@mobile-tablet, .u-width-8\/10\@mobile-tablet {
max-width: 80%;
width: 80%;
flex: 0 0 80%; }
.u-width-1\/6\@mobile-tablet, .u-width-2\/12\@mobile-tablet {
max-width: 16.666%;
width: 16.666%;
flex: 0 0 16.666%; }
.u-width-5\/6\@mobile-tablet, .u-width-10\/12\@mobile-tablet {
max-width: 83.333%;
width: 83.333%;
flex: 0 0 83.333%; }
.u-width-1\/8\@mobile-tablet {
max-width: 12.5%;
width: 12.5%;
flex: 0 0 12.5%; }
.u-width-3\/8\@mobile-tablet {
max-width: 37.5%;
width: 37.5%;
flex: 0 0 37.5%; }
.u-width-5\/8\@mobile-tablet {
max-width: 62.5%;
width: 62.5%;
flex: 0 0 62.5%; }
.u-width-7\/8\@mobile-tablet {
max-width: 87.5%;
width: 87.5%;
flex: 0 0 87.5%; }
.u-width-1\/10\@mobile-tablet {
max-width: 10%;
width: 10%;
flex: 0 0 10%; }
.u-width-3\/10\@mobile-tablet {
max-width: 30%;
width: 30%;
flex: 0 0 30%; }
.u-width-7\/10\@mobile-tablet {
max-width: 70%;
width: 70%;
flex: 0 0 70%; }
.u-width-9\/10\@mobile-tablet {
max-width: 90%;
width: 90%;
flex: 0 0 90%; }
.u-width-1\/12\@mobile-tablet {
max-width: 8.333%;
width: 8.333%;
flex: 0 0 8.333%; }
.u-width-5\/12\@mobile-tablet {
max-width: 41.666%;
width: 41.666%;
flex: 0 0 41.666%; }
.u-width-7\/12\@mobile-tablet {
max-width: 58.333%;
width: 58.333%;
flex: 0 0 58.333%; }
.u-width-11\/12\@mobile-tablet {
max-width: 91.666%;
width: 91.666%;
flex: 0 0 91.666%; } }
@media only screen and (max-width: 767px) {
.u-width-1\@mobile {
max-width: 100%;
width: 100%;
flex: 0 0 100%; }
.u-width-1\/2\@mobile, .u-width-2\/4\@mobile, .u-width-3\/6\@mobile, .u-width-4\/8\@mobile, .u-width-5\/10\@mobile, .u-width-6\/12\@mobile {
max-width: 50%;
width: 50%;
flex: 0 0 50%; }
.u-width-1\/3\@mobile, .u-width-2\/6\@mobile, .u-width-4\/12\@mobile {
max-width: 33.333%;
width: 33.333%;
flex: 0 0 33.333%; }
.u-width-2\/3\@mobile, .u-width-4\/6\@mobile, .u-width-8\/12\@mobile {
max-width: 66.666%;
width: 66.666%;
flex: 0 0 66.666%; }
.u-width-1\/4\@mobile, .u-width-2\/8\@mobile, .u-width-3\/12\@mobile {
max-width: 25%;
width: 25%;
flex: 0 0 25%; }
.u-width-3\/4\@mobile, .u-width-6\/8\@mobile, .u-width-9\/12\@mobile {
max-width: 75%;
width: 75%;
flex: 0 0 75%; }
.u-width-1\/5\@mobile, .u-width-2\/10\@mobile {
max-width: 20%;
width: 20%;
flex: 0 0 20%; }
.u-width-2\/5\@mobile, .u-width-4\/10\@mobile {
max-width: 40%;
width: 40%;
flex: 0 0 40%; }
.u-width-3\/5\@mobile, .u-width-6\/10\@mobile {
max-width: 60%;
width: 60%;
flex: 0 0 60%; }
.u-width-4\/5\@mobile, .u-width-8\/10\@mobile {
max-width: 80%;
width: 80%;
flex: 0 0 80%; }
.u-width-1\/6\@mobile, .u-width-2\/12\@mobile {
max-width: 16.666%;
width: 16.666%;
flex: 0 0 16.666%; }
.u-width-5\/6\@mobile, .u-width-10\/12\@mobile {
max-width: 83.333%;
width: 83.333%;
flex: 0 0 83.333%; }
.u-width-1\/8\@mobile {
max-width: 12.5%;
width: 12.5%;
flex: 0 0 12.5%; }
.u-width-3\/8\@mobile {
max-width: 37.5%;
width: 37.5%;
flex: 0 0 37.5%; }
.u-width-5\/8\@mobile {
max-width: 62.5%;
width: 62.5%;
flex: 0 0 62.5%; }
.u-width-7\/8\@mobile {
max-width: 87.5%;
width: 87.5%;
flex: 0 0 87.5%; }
.u-width-1\/10\@mobile {
max-width: 10%;
width: 10%;
flex: 0 0 10%; }
.u-width-3\/10\@mobile {
max-width: 30%;
width: 30%;
flex: 0 0 30%; }
.u-width-7\/10\@mobile {
max-width: 70%;
width: 70%;
flex: 0 0 70%; }
.u-width-9\/10\@mobile {
max-width: 90%;
width: 90%;
flex: 0 0 90%; }
.u-width-1\/12\@mobile {
max-width: 8.333%;
width: 8.333%;
flex: 0 0 8.333%; }
.u-width-5\/12\@mobile {
max-width: 41.666%;
width: 41.666%;
flex: 0 0 41.666%; }
.u-width-7\/12\@mobile {
max-width: 58.333%;
width: 58.333%;
flex: 0 0 58.333%; }
.u-width-11\/12\@mobile {
max-width: 91.666%;
width: 91.666%;
flex: 0 0 91.666%; } }
/*# sourceMappingURL=width.css.map */