@qvant/qui-max
Version:
A Vue 3 Design system for Web.
465 lines (423 loc) • 9.82 kB
CSS
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15;
/* 1 */
-webkit-text-size-adjust: 100%;
/* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
margin: 0.67em 0;
font-size: 2em;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box;
/* 1 */
height: 0;
/* 1 */
overflow: visible;
/* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-size: 1em;
/* 2 */
font-family: monospace, monospace;
/* 1 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
text-decoration: underline;
/* 2 */
text-decoration: underline dotted;
/* 2 */
border-bottom: none;
/* 1 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-size: 1em;
/* 2 */
font-family: monospace, monospace;
/* 1 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
margin: 0;
/* 2 */
font-size: 100%;
/* 1 */
line-height: 1.15;
/* 1 */
font-family: inherit;
/* 1 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input {
/* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select {
/* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type=button],
[type=reset],
[type=submit] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
padding: 0;
border-style: none;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
display: table;
/* 1 */
box-sizing: border-box;
/* 1 */
max-width: 100%;
/* 1 */
padding: 0;
/* 3 */
color: inherit;
/* 2 */
white-space: normal;
/* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type=checkbox],
[type=radio] {
box-sizing: border-box;
/* 1 */
padding: 0;
/* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type=search] {
-webkit-appearance: textfield;
/* 1 */
outline-offset: -2px;
/* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type=search]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button;
/* 1 */
font: inherit;
/* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}
:root {
--color-primary: #de4b7a;
--color-primary-purple: #d048b4;
--color-primary-blue: #4162f0;
--color-primary-blue-light: #74aff8;
--color-primary-blue-aqua: #5ecae7;
--color-primary-darker: #b83e65;
--color-primary-black: #1d1c1a;
--color-secondary-orange: #f95e2d;
--color-secondary-green: #40ba3e;
--color-secondary-yellow: #f2d22b;
--color-accent-secondary-main: #4262f0;
--color-tertiary-white: #fff;
--color-tertiary-gray-ultra-light: #fafafa;
--color-tertiary-gray-lighter: #f4f4f6;
--color-tertiary-gray-light: #f0f0f3;
--color-tertiary-gray: #eaeaea;
--color-tertiary-gray-dark: #e2e2e2;
--color-tertiary-gray-darker: #dadada;
--color-tertiary-gray-ultra-dark: #c4c4c4;
--color-tertiary-gray-ultra-darker: #adacae;
--color-tertiary-gray-ultra-darker-rgb: 173 172 174;
--color-base-regular-rgb: 29 29 27;
--color-rgb-white: 255 255 255;
--color-rgb-blue: 174 174 192;
--color-rgb-gray: 29 28 26;
--color-rgb-primary: 222 75 122;
--gradient-primary: linear-gradient(
101.12deg,
var(--color-primary) 0.76%,
var(--color-primary-purple) 100%
);
--gradient-secondary: linear-gradient(
180deg,
var(--color-primary) -27.44%,
var(--color-primary-blue) 100.54%
);
--box-shadow-primary: -1px -1px 3px rgb(var(--color-rgb-white) / 25%),
1px 1px 3px rgb(var(--color-rgb-blue) / 40%),
4px 4px 8px rgb(var(--color-rgb-blue) / 40%),
-4px -4px 12px var(--color-tertiary-white);
--box-shadow-secondary: -4px -4px 12px var(--color-tertiary-white),
4px 4px 8px rgb(var(--color-rgb-blue) / 40%),
1px 1px 3px rgb(var(--color-rgb-blue) / 40%),
-1px -1px 3px rgb(var(--color-rgb-white) / 25%);
--box-shadow-hover: -1px -1px 4px rgb(var(--color-rgb-white) / 25%),
1px 1px 4px rgb(var(--color-rgb-blue) / 40%),
4px 4px 8px rgb(var(--color-rgb-blue) / 40%),
-4px -4px 8px rgb(var(--color-rgb-white) / 80%);
--box-shadow-pressed: -1px -1px 3px rgb(var(--color-rgb-white) / 25%),
1px 1px 3px rgb(var(--color-rgb-blue) / 40%);
--box-shadow-focus: inset 2px 2px 3px rgb(var(--color-rgb-blue) / 20%),
inset -2px -2px 3px rgb(var(--color-rgb-white) / 70%);
--border-error: 1px solid var(--color-secondary-orange);
--border-radius-base: 4px;
--line-height-base: 22px;
--font-size-base: 14px;
--font-weight-base: 500;
--font-weight-bold: 600;
--letter-spacing-base: 0.03em;
--layout-gutter: 32px;
--line-height-button: 16px;
--transition-spline-base: cubic-bezier(0.645, 0.045, 0.355, 1);
}
.q-fade-enter-active, .q-fade-leave-active {
transition: opacity 0.25s var(--transition-spline-base);
}
.q-fade-enter-from, .q-fade-leave-to {
opacity: 0;
}
.q-fade-up-enter-active, .q-fade-up-leave-active {
transition: opacity 0.25s var(--transition-spline-base), transform 0.25s var(--transition-spline-base);
}
.q-fade-up-enter-from {
opacity: 0;
transform: translateY(-8px);
}
.q-fade-up-leave-to {
opacity: 0;
transform: translateY(-8px);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body,
#app {
height: 100%;
}
body {
margin: 0;
font-family: Urbanist, sans-serif;
font-size: var(--font-size-base);
font-weight: var(--font-weight-base);
line-height: var(--line-height-base);
color: rgb(var(--color-rgb-gray)/64%);
letter-spacing: var(--letter-spacing-base);
background-color: var(--color-tertiary-gray-lighter);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
svg {
vertical-align: middle;
}
button {
cursor: pointer;
}
button:focus {
outline: none;
}
a {
color: var(--color-primary-blue);
text-decoration: none;
}
a:focus {
outline: none;
}
/*
:focus-visible polyfill.
This will hide the focus indicator if the element receives focus via the mouse,
but it will still show up on keyboard focus.
*/
.js-focus-visible :focus:not(.focus-visible) {
outline: none;
}