Skip to content

Commit

Permalink
add fonts (#47)
Browse files Browse the repository at this point in the history
* add fonts

* move fallback font definitions to styles.css
  • Loading branch information
kronnox authored Dec 19, 2023
1 parent 93ef2fe commit 378c5fb
Show file tree
Hide file tree
Showing 7 changed files with 141 additions and 5 deletions.
Binary file added cigaradvisor/fonts/alfaslabone.woff2
Binary file not shown.
Binary file added cigaradvisor/fonts/montserrat.woff2
Binary file not shown.
Binary file added cigaradvisor/fonts/opensans.woff2
Binary file not shown.
Binary file removed cigaradvisor/fonts/roboto-bold.woff2
Binary file not shown.
Binary file removed cigaradvisor/fonts/roboto-regular.woff2
Binary file not shown.
21 changes: 21 additions & 0 deletions cigaradvisor/styles/fonts.css
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
/* Add font definitions here. */

@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: swap;
src: url('../fonts/opensans.woff2') format('woff2');
}

@font-face {
font-family: Montserrat;
font-style: normal;
font-display: swap;
src: url('../fonts/montserrat.woff2') format('woff2');
}

@font-face {
font-family: 'Alfa Slab One';
font-style: normal;
font-display: swap;
src: url('../fonts/alfaslabone.woff2') format('woff2');
}
125 changes: 120 additions & 5 deletions cigaradvisor/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,125 @@
* governing permissions and limitations under the License.
*/

@font-face {
font-family: 'Open Sans Fallback';
font-style: normal;
font-weight: 400;
src: local('Arial');
ascent-override: 101.58%;
descent-override: 27.84%;
line-gap-override: 0.00%;
size-adjust: 105.22%;
}

@font-face {
font-family: 'Open Sans Fallback';
font-style: normal;
font-weight: 600;
src: local('Arial Bold');
ascent-override: 109.90%;
descent-override: 30.12%;
line-gap-override: 0.00%;
size-adjust: 97.26%;
}

@font-face {
font-family: 'Open Sans Fallback';
font-style: normal;
font-weight: 700;
src: local('Arial Bold');
ascent-override: 109.90%;
descent-override: 30.12%;
line-gap-override: 0.00%;
size-adjust: 97.26%;
}

@font-face {
font-family: 'Open Sans Fallback';
font-style: normal;
font-weight: 900;
src: local('Arial Bold');
ascent-override: 109.90%;
descent-override: 30.12%;
line-gap-override: 0.00%;
size-adjust: 97.26%;
}

@font-face {
font-family: 'Montserrat Fallback';
font-style: normal;
font-weight: 400;
src: local('Arial');
ascent-override: 87.81%;
descent-override: 22.77%;
line-gap-override: 0.00%;
size-adjust: 110.23%;
}

@font-face {
font-family: 'Montserrat Fallback';
font-style: normal;
font-weight: 600;
src: local('Arial Bold');
ascent-override: 95.01%;
descent-override: 24.63%;
line-gap-override: 0.00%;
size-adjust: 101.89%;
}

@font-face {
font-family: 'Montserrat Fallback';
font-style: normal;
font-weight: 700;
src: local('Arial Bold');
ascent-override: 95.01%;
descent-override: 24.63%;
line-gap-override: 0.00%;
size-adjust: 101.89%;
}

@font-face {
font-family: 'Montserrat Fallback';
font-style: normal;
font-weight: 900;
src: local('Arial Bold');
ascent-override: 95.01%;
descent-override: 24.63%;
line-gap-override: 0.00%;
size-adjust: 101.89%;
}

@font-face {
font-family: 'Alfa Slab One Fallback';
font-style: normal;
font-weight: 400;
src: local('Arial');
ascent-override: 85.41%;
descent-override: 27.45%;
line-gap-override: 0.00%;
size-adjust: 121.30%;
}

@font-face {
font-family: 'Alfa Slab One Fallback';
font-style: normal;
font-weight: 900;
src: local('Arial Bold');
ascent-override: 92.40%;
descent-override: 29.70%;
line-gap-override: 0.00%;
size-adjust: 112.12%;
}


:root {
/* colors */

/* fonts */
--ff-arial: 'Arial', sans-serif;
--ff-opensans: 'Open Sans', 'Open Sans Fallback', sans-serif;
--ff-montserrat: 'Montserrat', 'Montserrat Fallback', sans-serif;
--ff-alfaslabone: 'Alfa Slab One', 'Alfa Slab One Fallback', cursive;

/* body sizes */

Expand All @@ -37,8 +152,8 @@ header {
}

html {
font-size:100%;
line-height:1.5
font-size: 100%;
line-height: 1.5
}

*, ::before, ::after{
Expand All @@ -53,7 +168,7 @@ img {
}

h2 {
font-family: montserrat,sans-serif;
font-family: var(--ff-montserrat);
font-weight: 900;
text-transform: uppercase;
color: #141414;
Expand All @@ -62,7 +177,7 @@ h2 {
}

a{
font-family: montserrat,sans-serif;
font-family: var(--ff-montserrat);
font-weight: 600;
color: #141414;
font-size: 12px;
Expand Down Expand Up @@ -104,7 +219,7 @@ main .section[data-layout="50/50"] > div {
flex-basis: 100%;
flex-direction: column;
}

main .section[data-layout="50/50"] .left-grid > div{
padding: 10px;
}
Expand Down

0 comments on commit 378c5fb

Please sign in to comment.