flex-template-web/src/marketplaceIndex.css
Vesa Luusua 4d37790c6d Font handling: let's use FOUT with FontFaceObserver
Check if Promise is available
2017-10-11 12:35:31 +03:00

102 lines
1.9 KiB
CSS

@import "sanitize.css";
@import "./marketplace.css";
/* ================ Fonts ================ */
body {
font-family: Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased; /* http://szafranek.net/blog/2009/02/22/font-smoothing-explained/ */
-moz-osx-font-smoothing: grayscale; /* http://szafranek.net/blog/2009/02/22/font-smoothing-explained/ */
text-rendering: optimizeSpeed;
background-color: var(--matterColorBright);
}
::selection {
background: var(--marketplaceColor); /* WebKit/Blink Browsers */
color: var(--matterColorLight);
}
::-moz-selection {
background: var(--marketplaceColor); /* Gecko Browsers */
color: var(--matterColorLight);
}
a {
@apply --marketplaceLinkStyles;
}
h1 { @apply --marketplaceH1FontStyles; }
h2 { @apply --marketplaceH2FontStyles; }
h3 { @apply --marketplaceH3FontStyles; }
h4 { @apply --marketplaceH4FontStyles; }
h5 { @apply --marketplaceH5FontStyles; }
h6 { @apply --marketplaceH6FontStyles; }
input,
textarea,
select,
li {
@apply --marketplaceDefaultFontStyles;
}
p,
pre {
@apply --marketplaceBodyFontStyles;
}
/* ================ Normalisations ================ */
/* TODO */
html {
@apply --marketplaceDefaultFontStyles;
color: var(--matterColor);
padding: 0;
margin: 0;
}
ul {
list-style: none;
padding: 0;
}
label {
@apply --marketplaceH4FontStyles;
font-weight: var(--fontWeightSemiBold);
display: block;
margin-top: 0;
margin-bottom: 0;
@media (--viewportMedium) {
font-weight: var(--fontWeightSemiBold);
margin-top: 0;
margin-bottom: 0;
}
}
button {
font-family: Helvetica, Arial, sans-serif;
}
select {
@apply --marketplaceSelectStyles;
}
input {
@apply --marketplaceInputStyles;
}
textarea {
@apply --marketplaceInputStyles;
min-height: 48px;
padding: 0 0 5px 0;
}
:global(.fontsLoaded) {
& body {
font-family: "sofiapro", Helvetica, Arial, sans-serif;
}
& button {
font-family: "sofiapro", Helvetica, Arial, sans-serif;
}
}