Last active
December 18, 2018 09:40
-
-
Save philipgledhill/70d018a3db7cea3eb0f27778ef6db061 to your computer and use it in GitHub Desktop.
Fonts loaded and some basic inline usage examples for Mai Law theme.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Google Fonts loaded in Mai Law Pro theme | |
Roboto+Slab:700 | |
Poppins:400,600,700 | |
Source+Sans+Pro:300,300i,400,700 | |
/** Font families used... */ | |
font-family: 'Roboto Slab', serif; | |
font-family: 'Poppins', sans-serif; | |
font-family: 'Source Sans Pro', sans-serif; | |
/** Font weights available ... */ | |
Roboto: 700 | |
Poppins: 400,600,700 | |
Source Sans Pro: 300,300i,400,700 (For 300i use font-style: italic;) | |
style="font-family: 'Roboto Slab', serif; font-weight: 700;" (Are other weights available? No just 700) | |
style="font-family: 'Poppins', sans-serif; font-weight: 400;" (Are other weights available? Yes 400,600,700) | |
style="font-family: 'Source Sans Pro', sans-serif; font-weight: 300;" (Are other weights available? Yes 300,300i,400,700) (For 300i use font-style: italic;) | |
/** -------------- How I can use fonts in the Sections and Text Tabs ---------------- */ | |
<h1 style="font-family: 'Source Sans Pro', sans-serif; font-weight: 300;"> </h1> | |
<h1 style="font-family: 'Source Sans Pro', sans-serif; font-style: italic; font-weight: 300;"> </h1> | |
/** ------------- Font families used in My Law Pro stylesheet ------------- */ | |
body { | |
font-family: 'Source Sans Pro', sans-serif; | |
font-weight: 300; | |
} | |
h1, | |
.banner-title, | |
.heading, | |
.widget-title, | |
.widgettitle { | |
font-family: 'Roboto Slab', serif; | |
font-weight: 700; | |
letter-spacing: 1px; | |
} | |
h2, h3, h4, h5, h6 { | |
font-family: 'Poppins', sans-serif; | |
font-weight: 400; | |
} | |
/** -------------- What gets loaded in Mai Law theme functions.php --------------- */ | |
// Enqueue CSS files. | |
add_action( 'wp_enqueue_scripts', 'maitheme_enqueue_fonts' ); | |
function maitheme_enqueue_fonts() { | |
wp_enqueue_style( 'maitheme-google-fonts', '//fonts.googleapis.com/css?family=Roboto+Slab:700|Poppins:400,600,700|Source+Sans+Pro:300,300i,400,700', array(), CHILD_THEME_VERSION ); | |
} | |
/** ------------ From Mai Theme Engine stylesheet ------------- */ | |
body { | |
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment