Skip to content

Instantly share code, notes, and snippets.

@peterkarn
Created May 12, 2022 06:52
Show Gist options
  • Save peterkarn/2239a27d584afff489e872c9a9200073 to your computer and use it in GitHub Desktop.
Save peterkarn/2239a27d584afff489e872c9a9200073 to your computer and use it in GitHub Desktop.
/********** fonts **********/
@font-face {
font-family: 'Inter';
src:
url(':f:inter-v8-latin-regular.woff2') format('woff2'),
url(':f:inter-v8-latin-regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Inter';
src:
url(':f:inter-v8-latin-500.woff2') format('woff2'),
url(':f:inter-v8-latin-500.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
font-weight: 500;
}
@font-face {
font-style: normal;
font-weight: normal;
font-family: "Material Icons";
font-display: swap;
src: url(":f:MaterialIcons.woff2") format("woff2"),
url(":f:MaterialIcons.woff") format("woff");
}
/********************/
/* Basic theme colors variables */
:root {
--primary: #F5A72A;
--accent: #DE5226;
--body_bg: #222222;
--success: #71C030;
--danger: #F1462F;
--warning: #F8655B;
--light: #fff;
--dark: #000;
/* Typography */
--font_family: "Inter", "Arial", sans-serif;
--font_size: 14px;
--line_height: 1.4;
--text_color: fade(#000, 85%);
--text_color_muted: fade(#000, 50%);
--input_border_color: fade(#000, 50%);
--radius: 20px;
--shadow: 0px 0px 2px rgba(0, 0, 0, 0.1), 0px 2px 2px rgba(0, 0, 0, 0.2);
--arrow_size: 10px;
--easing: cubic-bezier(0.39, 0, 0.17, 0.99);
--transition: all 0.2s var(--easing);
--icon_color: fade(#000, 70%);
--icon-close: "\e933";
--icon-arrow-left: "\e96b";
--icon-arrow-right: "\e9a2";
--icon-eye-outline: "\e945";
--icon-eye-outline-off: "\e946";
--icon-help-outline: "\e962";
--icon-select-triangle: "\e9a9";
--icon-right: "\e9a2";
}
/********** reset **********/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:focus {
outline: 0;
}
img {
border: none;
}
html,
body,
#all,
#content_container {
height: 100%;
}
ol,
ul {
list-style: none;
}
a {
color: var(--dark);
}
input::-webkit-input-placeholder {
color: transparent;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
.next-btn,
.prev-btn,
.pagination-block {
&.is-hidden {
display: none;
}
}
// Fix bug Android keyboard
.next-btn span,
.prev-btn span,
.submit-btn span {
pointer-events: none;
}
//common styles
body {
position: relative;
background-color: var(--body_bg);
color: var(--light);
font: 14px / 1.3 var(--font_family);
min-height: 568px;
min-width: 300px;
}
.wrapper {
display: flex;
flex-direction: column;
justify-content: flex-start;
position: relative;
min-height: 100%;
&:after {
content: "";
position: absolute;
height: 0;
width: 0;
top: 0;
left: 0;
background-image: url(":r:photo-1"), url(":r:photo-2"), url(":r:photo-3"), url(":r:photo-4"), url(":r:photo-5");
}
}
.center {
width: 100%;
margin: 0 auto;
padding: 0 10px;
}
img {
display: block;
height: auto;
}
input,
select,
option,
button {
font: inherit;
border: 0;
outline: 0;
-webkit-appearance: none;
appearance: none;
&:focus {
outline: none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment