Commit 2cd62fa0 authored by Dave Lane's avatar Dave Lane

shifted OpenSans font into the theme to serve locally

parent daddd794
/* created using https://google-webfonts-helper.herokuapp.com/ */
/* open-sans-regular - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'),
url('../fonts/open-sans-v17-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/open-sans-v17-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* open-sans-italic - latin */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 400;
src: local('Open Sans Italic'), local('OpenSans-Italic'),
url('../fonts/open-sans-v17-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/open-sans-v17-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* open-sans-700 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('OpenSans-Bold'),
url('../fonts/open-sans-v17-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/open-sans-v17-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* open-sans-700italic - latin */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 700;
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'),
url('../fonts/open-sans-v17-latin-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/open-sans-v17-latin-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
body, div, span, h1, h2, h3, h4, h5, h6, a, label, input, select, button
{
body, div, span, h1, h2, h3, h4, h5, h6, a, label, input, select, button {
font-family: 'Open Sans', sans-serif;
}
.brand {
margin-top: 30px;
margin-bottom: 20px;
display: inline-block;
margin-top: 30px;
margin-bottom: 20px;
display: inline-block;
}
h1
{
h1 {
font-size: 42px;
margin-bottom: 30px;
font-weight: 300 !important;
}
h2
{
h2 {
font-size: 27px;
margin-bottom: 25px;
font-weight: 300 !important;
......@@ -23,48 +20,39 @@ h2
color: #fff;
margin-bottom: 0px;
}
h3
{
h3 {
font-size: 20px;
margin-bottom: 15px;
margin-top: 30px;
font-weight: 300 !important;
}
h4 a
{
h4 a {
color: inherit;
}
h4 a:hover, h4 a:active
{
h4 a:hover, h4 a:active {
color: inherit;
text-decoration: underline;
}
h4
{
h4 {
font-size: 27px;
margin-bottom: 25px;
font-weight: 300 !important;
}
h5
{
h5 {
font-size: 20px;
line-height: 25px;
margin-bottom: 15px;
}
header h2
{
header h2 {
margin-top: 90px;
}
header h2, header p
{
header h2, header p {
color: #FFF;
}
strong
{
strong {
font-weight: 700;
}
#main p
{
#main p {
font-size: 16px;
line-height: 28px;
font-weight: 300;
......@@ -74,18 +62,16 @@ ul {
list-style-type: disc;
}
.panel-heading a:hover, a:focus {
color: #fff;
text-decoration: underline;
color: #fff;
text-decoration: underline;
}
/* Form */
.field
{
.field {
padding: 10px 0;
}
input.text, textarea
{
input.text, textarea {
background-color: #FFFFFF;
border: 1px solid #CCCCCC;
border-radius: 4px 4px 4px 4px;
......@@ -100,20 +86,17 @@ input.text, textarea
max-width: 500px;
width: 100%;
}
input.text
{
input.text {
height: 34px;
}
input[type=submit]
{
input[type=submit] {
margin: 20px 0;
max-width: 300px;
background: #649D23;
color: #FFF;
border: none;
}
.radio, .checkbox {
display: block;
margin-bottom: 10px;
......@@ -123,117 +106,91 @@ input[type=submit]
vertical-align: middle;
}
.mcq a{
color: #005aab;
color: #005aab;
}
.mcq a:hover{
color: #005aab;
color: #005aab;
}
.correct {
color: #6FA92E;
font-weight: 700;
color: #6FA92E;
font-weight: 700;
}
.incorrect {
color: #a94442;
font-weight: 700;
color: #a94442;
font-weight: 700;
}
/* Buttons */
.button
{
.button {
background-color: #6FA92E;
margin-bottom: 10px;
color: #FFF !important;
}
.button a
{
.button a {
font-size: 13px;
color: #FFF;
}
.button, input[type=submit]
{
.button, input[type=submit] {
padding: 7px 20px;
text-transform: uppercase;
border-bottom: 3px solid #5a9319;
display: inline-block;
border-radius: 3px;
}
.button:hover, input[type=submit]:hover
{
.button:hover, input[type=submit]:hover {
opacity: 0.95;
text-decoration: none;
}
.button a:hover,
.button a:focus {
color: #FFF;
color: #FFF;
}
.button:active
{
.button:active {
top: 1px;
}
.warningbutton
{
.warningbutton {
background-color: #ea9841;
margin-bottom: 10px;
}
.warningbutton a
{
.warningbutton a {
font-size: 13px;
color: #FFF;
}
.warningbutton, input[type=submit]
{
.warningbutton, input[type=submit] {
padding: 7px 20px;
text-transform: uppercase;
border-bottom: 3px solid #cc7019;
display: inline-block;
border-radius: 3px;
}
.warningbutton:hover, input[type=submit]:hover
{
.warningbutton:hover, input[type=submit]:hover {
opacity: 0.95;
text-decoration: none;
color: #FFF;
}
.warningbutton:active
{
.warningbutton:active {
top: 1px;
}
@media only screen and (max-width: 992px) {
h2
{
h2 {
font-size: 18px;
}
h1
{
h1 {
font-size: 32px;
}
.brandtext
{
.brandtext {
margin-top: 15px;
}
}
@media (max-width: 768px) {
h3, h4
{
h3, h4 {
font-size: 17px;
}
.pedigogicalicon
{
.pedigogicalicon {
height: 26px;
margin-top: 0px !important;
}
}
......@@ -98,7 +98,7 @@ function oeru_course_scripts_and_styles() {
wp_enqueue_style( 'wordpress-oeru-course-colours', get_template_directory_uri() . '/css/colours.css', array(), '1' );
wp_enqueue_style( 'wordpress-oeru-course-core-alter', get_template_directory_uri() . '/css/oeru_course_core_alter.css', array(), '1' );
wp_enqueue_style( 'wordpress-oeru-course-jquery-ui', get_template_directory_uri() . '/css/jquery-ui.min.css', array(), '1' );
wp_enqueue_style( 'wordpress-oeru-course-open-sans-font', '//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,800,700,600&subset=latin,greek-ext,greek,cyrillic,latin-ext,vietnamese,cyrillic-ext', array(), '1' );
wp_enqueue_style( 'wordpress-oeru-course-open-sans-font', get_template_directory_uri() . '/css/fonts.css', array(), '1' );
wp_enqueue_script( 'wordpress-oeru_course-bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '20131205', true );
if ( get_theme_mod( 'swipe' ) === 'on' ) {
......
......@@ -332,7 +332,8 @@ function oeru_course_scripts_and_styles() {
wp_enqueue_style( 'wordpress-oeru-course-colours', get_template_directory_uri() . '/css/colours.css', array(), '1' );
wp_enqueue_style( 'wordpress-oeru-course-core-alter', get_template_directory_uri() . '/css/oeru_course_core_alter.css', array(), '1' );
wp_enqueue_style( 'wordpress-oeru-course-jquery-ui', get_template_directory_uri() . '/css/jquery-ui.min.css', array(), '1' );
wp_enqueue_style( 'wordpress-oeru-course-open-sans-font', '//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,800,700,600&subset=latin,greek-ext,greek,cyrillic,latin-ext,vietnamese,cyrillic-ext', array(), '1' );
//wp_enqueue_style( 'wordpress-oeru-course-open-sans-font', '//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,800,700,600&subset=latin,greek-ext,greek,cyrillic,latin-ext,vietnamese,cyrillic-ext', array(), '1' );
wp_enqueue_style( 'wordpress-oeru-course-open-sans-font', get_template_directory_uri() . '/css/fonts.css', array(), '1' );
wp_enqueue_script( 'wordpress-oeru_course-bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '20131205', true );
if ( get_theme_mod( 'swipe' ) === 'on' ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment