@groww-tech/base-css
Version:
Base CSS classes used by all Groww Web Projects
86 lines (76 loc) • 1.37 kB
CSS
html {
box-sizing: border-box;
}
#root {
/*
z-index variables
maxValue(10001) -> snackbar(900) -> popup(800) -> video playback(700) ->
sidebar(600) -> Header(500) -> dropdown(400) -> fix bottom btn(300)
*/
--zindex10001: 10001;
--zindex900: 900;
--zindex800: 800;
--zindex700: 700;
--zindex600: 600;
--zindex500: 500;
--zindex400: 400;
--zindex300: 300;
--zindex1: -1;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
div,
i {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
h1,
h2,
h3,
h4,
h5,
h6,
span,
p {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
-khtml-user-select: text;
user-select: text;
}
body {
background: var(--primaryBg) ;
color: var(--text) ;
margin: 0;
box-sizing: border-box;
font-weight: 435;
font-family: GrowwSans,NotoSans, system-ui;
min-width: 320px;
-webkit-font-smoothing: antialiased;
}
a {
color: var(--primaryClr);
text-decoration: none;
}
input[type=number] {
-moz-appearance: textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
pre,
button,
input,
select,
textarea {
font-family: inherit;
}