new_theme: remove pwa, add $base-font, $form-title-style & $toplinks-style
This commit is contained in:
parent
dca70e36a3
commit
e3563e50f9
15
new_theme.sh
15
new_theme.sh
|
@ -6,8 +6,6 @@ read -p 'folder name : ' folderName
|
|||
read -p 'Theme label : ' themeLabel
|
||||
# Theme Color
|
||||
read -p 'Theme Color (hexa) : ' themeColor
|
||||
# Active PWA
|
||||
read -p 'Active PWA (0/1) : ' pwa
|
||||
|
||||
cd ~/src/publik-base-theme/
|
||||
|
||||
|
@ -15,18 +13,11 @@ cd ~/src/publik-base-theme/
|
|||
themefolderPath=static/$folderName
|
||||
mkdir $themefolderPath
|
||||
|
||||
# store config PWA
|
||||
if [ $pwa == 1 ]
|
||||
then
|
||||
configPWA='"pwa_display": "standalone",'
|
||||
fi
|
||||
|
||||
# create config.json file
|
||||
cat >${themefolderPath}/config.json <<EOF
|
||||
{
|
||||
"label": "${themeLabel}",
|
||||
"variables": {
|
||||
${configPWA}
|
||||
"theme_color": "${themeColor}",
|
||||
"email_header_asset": "emails:logo"
|
||||
},
|
||||
|
@ -45,12 +36,16 @@ EOF
|
|||
touch ${themefolderPath}/_custom.scss
|
||||
|
||||
cat >${themefolderPath}/_vars.scss <<EOF
|
||||
\$base-font: 16;
|
||||
// Core vars
|
||||
\$width: calc(1280em / 16);
|
||||
\$width: 1280em / \$base-font;
|
||||
\$font-size: 100% / ( 16 / \$base-font );
|
||||
\$mobile-limit: 64em;
|
||||
\$very-small-limit: 35em;
|
||||
\$primary-color: ${themeColor};
|
||||
\$toplinks-style:
|
||||
\$widget-unique-checkbox-position: left;
|
||||
\$form-title-style: none;
|
||||
EOF
|
||||
|
||||
cat >${themefolderPath}/style.scss <<EOF
|
||||
|
|
Loading…
Reference in New Issue