mirror of
https://github.com/elementor/hello-theme.git
synced 2025-10-04 15:42:19 +08:00
Create SCSS file
This commit is contained in:
parent
67c0e0ee58
commit
d8da5fa610
4 changed files with 119 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,6 +5,7 @@ build/
|
|||
log/
|
||||
vendor/
|
||||
composer.lock
|
||||
package-lock.json
|
||||
.DS_Store
|
||||
.project
|
||||
Thumbs.db
|
||||
|
|
84
Gruntfile.js
Normal file
84
Gruntfile.js
Normal file
|
@ -0,0 +1,84 @@
|
|||
/**
|
||||
* Elementor Hello Theme Makefile
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
module.exports = function( grunt ) {
|
||||
|
||||
require( 'matchdep' ).filterDev( 'grunt-*' ).forEach( grunt.loadNpmTasks );
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig( {
|
||||
pkg: grunt.file.readJSON( 'package.json' ),
|
||||
|
||||
sass: {
|
||||
dist: {
|
||||
files: [ {
|
||||
expand: true,
|
||||
cwd: 'assets/scss',
|
||||
src: '*.scss',
|
||||
dest: './',
|
||||
ext: '.css'
|
||||
} ]
|
||||
}
|
||||
},
|
||||
|
||||
postcss: {
|
||||
dev: {
|
||||
options: {
|
||||
//map: true,
|
||||
|
||||
processors: [
|
||||
require( 'autoprefixer' )( {
|
||||
browsers: 'last 10 versions'
|
||||
} )
|
||||
]
|
||||
},
|
||||
files: [ {
|
||||
src: [
|
||||
'*.css',
|
||||
'!*.min.css'
|
||||
]
|
||||
} ]
|
||||
},
|
||||
minify: {
|
||||
options: {
|
||||
processors: [
|
||||
require( 'autoprefixer' )( {
|
||||
browsers: 'last 10 versions'
|
||||
} ),
|
||||
require( 'cssnano' )()
|
||||
]
|
||||
},
|
||||
files: [ {
|
||||
//expand: true,
|
||||
src: [
|
||||
'*.css',
|
||||
'!*.min.css'
|
||||
],
|
||||
ext: '.min.css'
|
||||
} ]
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
styles: {
|
||||
files: [
|
||||
'assets/scss/**/*.scss'
|
||||
],
|
||||
tasks: [ 'styles' ]
|
||||
}
|
||||
}
|
||||
|
||||
} );
|
||||
|
||||
grunt.registerTask( 'styles', [
|
||||
'sass',
|
||||
'postcss'
|
||||
] );
|
||||
|
||||
// Default task(s).
|
||||
grunt.registerTask( 'default', [
|
||||
'styles'
|
||||
] );
|
||||
};
|
17
assets/scss/style.scss
Normal file
17
assets/scss/style.scss
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*!
|
||||
Theme Name: Elementor Hello Theme
|
||||
Theme URI: https://elementor.com
|
||||
Description: A sample theme for Elementor.
|
||||
Author: Elementor Team
|
||||
Author URI: https://elementor.com
|
||||
Version: 1.0.0
|
||||
Stable tag: 1.0.0
|
||||
Requires at least: 4.9
|
||||
Tested up to: 5.0
|
||||
License: GNU General Public License v3 or later.
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
Text Domain: elementor-hello-theme
|
||||
*/
|
||||
|
||||
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
|
||||
html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}
|
17
package.json
Normal file
17
package.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "elementor-hello-theme",
|
||||
"slug": "elementor-hello-theme",
|
||||
"homepage": "https://elementor.com/",
|
||||
"description": "A sample theme for Elementor.",
|
||||
"version": "1.0.0",
|
||||
"devDependencies": {
|
||||
"grunt": "~1.0.2",
|
||||
"grunt-contrib-watch": "~1.1.0",
|
||||
"grunt-contrib-sass": "~1.0.0",
|
||||
"grunt-postcss": "~0.9.0",
|
||||
"autoprefixer": "~8.5.2",
|
||||
"cssnano": "~3.10.0",
|
||||
"grunt-sass": "~2.1.0",
|
||||
"matchdep": "~2.0.0"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue