Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SCSS Plugin
#10
Hi Martin, I decided to try your plugin in conjunction with the plugin GS Custom Settings.
I use it to select the radio button.
Template code looks like.
Code:
<link rel="stylesheet" type="text/css" href="<?php get_scss_css('font.scss', array(
'use_font_text'=>return_setting('site','use_font_text'),
'font_weight'=>return_setting('site','font_weight'),
'use_font_heading'=>return_setting('site','use_font_heading'),
'font_weight_heading'=>return_setting('site','font_weight_heading')
), true); ?>" />
font.scss code looks like.
Code:
body {
    font-family: param(use_font_text), Arial, Helvetica, sans-serif;
    font-weight: param(font_weight);
}
h1, h2, h3, h4, h5 {
    font-family: param(use_font_heading), Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-weight: param(font_weight_heading);
}
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5 {
    font-family: param(use_font_heading), Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-weight: param(font_weight_heading);
}

Code generated file css looks.
Code:
body {
  font-family: 1, Arial, Helvetica, sans-serif;
  font-weight: 1;
}

h1, h2, h3, h4, h5 {
  font-family: 0, Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-weight: 1;
}

.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5 {
  font-family: 0, Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-weight: 1;
}

If I change the code on this
Code:
<link rel="stylesheet" type="text/css" href="<?php get_scss_css('font.scss', array(
'use_font_text'=>get_setting('site','use_font_text'),
'font_weight'=>get_setting('site','font_weight'),
'use_font_heading'=>get_setting('site','use_font_heading'),
'font_weight_heading'=>get_setting('site','font_weight_heading')
), true); ?>" />

, the link to the file looks like this
Code:
<link rel="stylesheet" type="text/css" href="Roboto400Open Sans Condensed700http://uikit.aa/theme/UIKit/font7a6b92474c53ea8d208a871e95603fae.css">
What to do?
Reply


Messages In This Thread
SCSS Plugin - by mvlcek - 2014-04-05, 01:06:25
RE: SCSS Plugin - by Oleg06 - 2014-04-05, 05:10:49
RE: SCSS Plugin - by ryunp - 2014-07-18, 08:17:37
RE: SCSS Plugin - by pavel9 - 2014-11-03, 05:07:22
RE: SCSS Plugin - by tuxy - 2014-12-04, 08:09:36
RE: SCSS Plugin - by mvlcek - 2014-12-05, 05:25:11
RE: SCSS Plugin - by shawn_a - 2014-12-04, 08:23:33
RE: SCSS Plugin - by tuxy - 2014-12-05, 05:57:59
RE: SCSS Plugin - by cvrglj - 2015-07-12, 02:56:44
RE: SCSS Plugin - by Oleg06 - 2016-06-06, 00:36:22
RE: SCSS Plugin - by Knobbles - 2023-11-25, 22:14:41



Users browsing this thread: 2 Guest(s)