Skip to content

Commit

Permalink
load FA5, unload FA4, CSS styles for form inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
neilgee committed Sep 5, 2018
1 parent 015af09 commit c8b17d3
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 17 deletions.
12 changes: 11 additions & 1 deletion classes/class-fl-child-theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,17 @@ static public function enqueue_scripts()

// Remove Icon Styles
// wp_dequeue_style( 'foundation-icons' );
// wp_dequeue_style( 'font-awesome' );

// Fontawesome
// Remove FA 4
wp_dequeue_style( 'font-awesome' );
wp_deregister_style( 'font-awesome' );
wp_deregister_style( 'font-awesome', get_stylesheet_directory_uri() . '/font-awesome-4.7.0/css/font-awesome.min.css' );
// If we need external
//wp_enqueue_style( 'font-awesome-5', get_stylesheet_directory_uri() . '/fonts/fontawesome/css/fontawesome-all.min.css' );
// Load FA 5 Everywhere
wp_enqueue_style( 'font-awesome-5' );


// Take out the default lightbox
// wp_dequeue_script('jquery-magnificpopup');
Expand Down
2 changes: 0 additions & 2 deletions includes-child/gravity.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php



// Option for Hiding Gravity Forms Sub Labels
add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' );
73 changes: 59 additions & 14 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,65 @@ input[type="submit"].small {



input[type=text],
input[type=password],
input[type=email],
input[type=tel],
input[type=date],
input[type=month],
input[type=week],
input[type=time],
input[type=number],
input[type=search],
input[type=url],
textarea {
display: block;
width: 100%;
padding: 6px 12px;
font-size: 14px;
line-height: 1.428571429;
color: #555555;
vertical-align: middle;
background-color: #f3f3f3;
background-image: none;
border: 1px solid #ccc;
-moz-transition: all ease-in-out .15s;
-webkit-transition: all ease-in-out .15s;
transition: all ease-in-out .15s;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=date]:focus,
input[type=month]:focus,
input[type=week]:focus,
input[type=time]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=url]:focus,
textarea:focus {
background-color: #ffffff;
border-color: #cccccc;
outline: 0;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}

/* Gravity Forms */
.gform_wrapper label.gfield_label {
font-weight: 400;
font-size: inherit;
}

/* # Buttons - Black-But example
---------------------------------------------------------------------------------------------------- */
/* lines up the button if parent is equal heights change >>>>> .the-row <<<<<< */
Expand Down Expand Up @@ -1008,20 +1067,6 @@ Business Profile
}



@media only screen and (min-width: 767px) {
.three-column-list {
column-count: 3;
column-gap: 40px;
}

.two-column-list {
column-count: 2;
column-gap: 40px;
}
}


/* Icon Stuff
--------------------------------------------- */

Expand Down

0 comments on commit c8b17d3

Please sign in to comment.