8b86f387 by Jeff Balicki

rem

1 parent fbcd3198
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 <?php
2 /**
3 * Partial template for content in page.php
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10 ?>
11
12 <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
13
14
15
16 <div class="entry-content">
17
18 <?php
19 the_content();
20 understrap_link_pages();
21 ?>
22
23 </div><!-- .entry-content -->
24
25 <footer class="entry-footer">
26
27 <?php understrap_edit_post_link(); ?>
28
29 </footer><!-- .entry-footer -->
30
31 </article><!-- #post-## -->
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
19 "copy-assets": "node src/build/copy-assets.js", 19 "copy-assets": "node src/build/copy-assets.js",
20 "dist": "npm-run-all --parallel css js", 20 "dist": "npm-run-all --parallel css js",
21 "dist-build": "node src/build/dist-build.js", 21 "dist-build": "node src/build/dist-build.js",
22 "dist-clean": "node src/build/dist-clean.js" 22 "dist-clean": "node src/build/dist-clean.js",
23 "postcss-pxtorem": "node src/build/postcss-pxtorem.js"
23 }, 24 },
24 "engines": { 25 "engines": {
25 "node": ">=14" 26 "node": ">=14"
...@@ -41,7 +42,9 @@ ...@@ -41,7 +42,9 @@
41 "url": "https://github.com/understrap/understrap-child/issues" 42 "url": "https://github.com/understrap/understrap-child/issues"
42 }, 43 },
43 "homepage": "https://understrap.com", 44 "homepage": "https://understrap.com",
44 "dependencies": {}, 45 "dependencies": {
46 "gulp-pxtorem": "^3.0.0"
47 },
45 "devDependencies": { 48 "devDependencies": {
46 "@babel/core": "^7.16.0", 49 "@babel/core": "^7.16.0",
47 "@babel/preset-env": "^7.16.4", 50 "@babel/preset-env": "^7.16.4",
...@@ -62,8 +65,9 @@ ...@@ -62,8 +65,9 @@
62 "nodemon": "^2.0.15", 65 "nodemon": "^2.0.15",
63 "npm-run-all": "^4.1.5", 66 "npm-run-all": "^4.1.5",
64 "popper.js": "^1.16.1", 67 "popper.js": "^1.16.1",
65 "postcss": "^8.4.4", 68 "postcss": "^8.4.5",
66 "postcss-cli": "^9.0.2", 69 "postcss-cli": "^9.0.2",
70 "postcss-pxtorem": "^6.0.0",
67 "postcss-understrap-palette-generator": "git+https://github.com/understrap/postcss-understrap-palette-generator.git", 71 "postcss-understrap-palette-generator": "git+https://github.com/understrap/postcss-understrap-palette-generator.git",
68 "rollup": "^2.60.2", 72 "rollup": "^2.60.2",
69 "sass": "^1.44.0", 73 "sass": "^1.44.0",
......
1 <?php 1 <?php
2 /** 2 /**
3 * Template Name: Home Page 3 * Template Name: Certificant Page
4 * 4 *
5 * Template for displaying a page without sidebar even if a sidebar widget is published. 5 * Template for displaying a page without sidebar even if a sidebar widget is published.
6 * 6 *
...@@ -14,12 +14,11 @@ get_header(); ...@@ -14,12 +14,11 @@ get_header();
14 //$container = "full-width"; 14 //$container = "full-width";
15 $container = get_theme_mod( 'understrap_container_type' ); 15 $container = get_theme_mod( 'understrap_container_type' );
16 16
17 if ( is_front_page() ) { 17 get_template_part( 'global-templates/certificant_hero' );
18 get_template_part( 'global-templates/numbers_hero' ); 18
19 }
20 ?> 19 ?>
21 20
22 <div class="wrapper" id="full-width-page-wrapper"> 21 <div class="wrapper certificant" id="full-width-page-wrapper">
23 22
24 <div class="<?php echo esc_attr( $container ); ?>" id="content"> 23 <div class="<?php echo esc_attr( $container ); ?>" id="content">
25 24
......
1 <?php
2 /**
3 * Template Name: Numbers Page
4 *
5 * Template for displaying a page without sidebar even if a sidebar widget is published.
6 *
7 * @package Understrap
8 */
9
10 // Exit if accessed directly.
11 defined( 'ABSPATH' ) || exit;
12
13 get_header();
14 //$container = "full-width";
15 $container = get_theme_mod( 'understrap_container_type' );
16
17 if ( is_front_page() ) {
18 get_template_part( 'global-templates/certificant_hero' );
19 }
20 ?>
21
22 <div class="wrapper certificant" id="full-width-page-wrapper">
23
24 <div class="<?php echo esc_attr( $container ); ?>" id="content">
25
26 <div class="row">
27
28 <div class="col-md-12 content-area" id="primary">
29
30 <main class="site-main" id="main" role="main">
31
32 <?php
33 while ( have_posts() ) {
34 the_post();
35 get_template_part( 'loop-templates/content', 'certificant' );
36
37 // If comments are open or we have at least one comment, load up the comment template.
38 if ( comments_open() || get_comments_number() ) {
39 comments_template();
40 }
41 }
42 ?>
43
44 </main><!-- #main -->
45
46 </div><!-- #primary -->
47
48 </div><!-- .row end -->
49
50 </div><!-- #content -->
51
52 </div><!-- #full-width-page-wrapper -->
53
54 <?php
55 get_footer();
1 var fs = require('fs');
2 var postcss = require('postcss');
3 var pxtorem = require('postcss-pxtorem');
4 var css = fs.readFileSync('./css/child-theme.css', 'utf8');
5 var options = {
6 rootValue: 16,
7 unitPrecision: 5,
8 propList: ['font', 'font-size', 'line-height', 'letter-spacing'],
9 selectorBlackList: [],
10 replace: true,
11 mediaQuery: false,
12 minPixelValue: 0,
13
14 };
15
16 var processedCss = postcss(pxtorem(options)).process(css).css;
17
18 fs.writeFile('./css/main-rem.css', processedCss, function (err) {
19 if (err) {
20 throw err;
21 }
22 console.log('Rem file written.');
23 });
...\ No newline at end of file ...\ No newline at end of file
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
9 9
10 // Any additional imported files // 10 // Any additional imported files //
11 @import "theme/child_theme"; // <------- Add your styles into this file 11 @import "theme/child_theme"; // <------- Add your styles into this file
12 @import "theme/numbers"; 12 @import "theme/certificant";
13 @import "theme/numbers";
13 @import "theme/footer"; // <------- Add your styles into this file 14 @import "theme/footer"; // <------- Add your styles into this file
14 @import "assets/understrap/theme/colors"; // <-------- This creates the necessary bootstrap color classes. 15 @import "assets/understrap/theme/colors"; // <-------- This creates the necessary bootstrap color classes.
15 @import "assets/understrap/theme/blocks"; // <-------- This adds Bootstrap styles to blocks. 16 @import "assets/understrap/theme/blocks"; // <-------- This adds Bootstrap styles to blocks.
......