diff --git a/.gitignore b/.gitignore index 652af52..7ae3952 100644 --- a/.gitignore +++ b/.gitignore @@ -14,5 +14,5 @@ vendor src/* !src/themes src/themes/* -!src/themes/fipamo-default -!src/themes/fipamo-default/* \ No newline at end of file +!src/themes/theme-fipamo-default +!src/themes/theme-fipamo-default/fipamo-default/assets \ No newline at end of file diff --git a/engine/ThemeEngine.php b/engine/ThemeEngine.php index c4c57c0..092a25d 100644 --- a/engine/ThemeEngine.php +++ b/engine/ThemeEngine.php @@ -131,7 +131,7 @@ class ThemeEngine break; default: set_error_handler(function ($errno, $errstr, $errfile, $errline) { - // throw new \ErrorException($errstr, $errno, 0, $errfile, $errline); + throw new \ErrorException($errstr, $errno, 0, $errfile, $errline); $error = $errstr; }); $template = 'error.twig'; @@ -142,7 +142,7 @@ class ThemeEngine 'dynamicRender' => $this->settings['dynamicRender'], 'background' => $this->themeAssetPath . '/assets/images/global/default-bg.jpg', 'info' => $pageInfo, - 'content' => "Uh Oh, so there's a problem.", + 'content' => "This page is not defined", 'menu' => $menu, 'media' => $images, 'files' => $files, diff --git a/package.json b/package.json index 6e33c3b..c0526a9 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "sass": "^1.49.0" }, "scripts": { - "watch": "sass --watch $npm_package_config_theme_path/styles:$npm_package_config_theme_dir/assets/css & npx parcel watch $npm_package_config_theme_path/com/ThemeStart.js --dist-dir $npm_package_config_theme_dir/assets/scripts --public-url /assets/scripts ", - "build": "npx parcel build $npm_package_config_theme_path/styles/base.sass --dist-dir $npm_package_config_theme_dir/assets/css --public-url /assets/css & npx parcel build $npm_package_config_theme_path/com/ThemeStart.js --dist-dir $npm_package_config_theme_dir/assets/scripts --public-url /assets/scripts", + "watch": "npx parcel watch $npm_package_config_theme_path/com/ThemeStart.js --dist-dir $npm_package_config_theme_dir/assets/scripts --public-url /assets/scripts ", + "build": "npx parcel build $npm_package_config_theme_path/com/ThemeStart.js --dist-dir $npm_package_config_theme_dir/assets/scripts --public-url /assets/scripts", "dev": "php -S localhost:$npm_package_config_port" }, "license": "UNLICENSED", diff --git a/src/themes/theme-fipamo-default/com/Base.js b/src/themes/theme-fipamo-default/com/Base.js index 2d037f8..63c5c6f 100644 --- a/src/themes/theme-fipamo-default/com/Base.js +++ b/src/themes/theme-fipamo-default/com/Base.js @@ -4,15 +4,16 @@ export default class Base { //-------------------------- constructor() { this.currentSlide = 0; - this.slides = document.querySelectorAll("#media .slide"); + this.slides = document.querySelectorAll('[role="slide"]'); + //alert("FRESH"); this.start(); } start() { if (this.slides.length > 1) { this.slideInterval = setInterval(() => { - this.slides[this.currentSlide].className = "slide hide"; + this.slides[this.currentSlide].className = "hide"; this.currentSlide = (this.currentSlide + 1) % this.slides.length; - this.slides[this.currentSlide].className = "slide show"; + this.slides[this.currentSlide].className = "show"; }, 3000); } } diff --git a/src/themes/theme-fipamo-default/com/ThemeStart.js b/src/themes/theme-fipamo-default/com/ThemeStart.js new file mode 100644 index 0000000..6f275a3 --- /dev/null +++ b/src/themes/theme-fipamo-default/com/ThemeStart.js @@ -0,0 +1,9 @@ +import Base from "./Base.js"; + +document.addEventListener( + "DOMContentLoaded", + function () { + var base = new Base(); + }, + false +); diff --git a/src/themes/theme-fipamo-default/fipamo-default/archive.twig b/src/themes/theme-fipamo-default/fipamo-default/archive.twig index 0a0d056..7b97a40 100644 --- a/src/themes/theme-fipamo-default/fipamo-default/archive.twig +++ b/src/themes/theme-fipamo-default/fipamo-default/archive.twig @@ -5,23 +5,16 @@ {% endblock %} {% block mainContent %} -
-
- {{ title }} -
-
-
+

{{ title }}

+ +
{% for item in archives %} -
- - {{ item.year }} - +
+

{{ item.year }}

{% for data in item.year_data %} -
- - {{ data.full_month }} - +
+

{{ data.full_month }}

{% for page in data.pages %} {% if dynamicRender is defined %} {% if dynamicRender == 'true' %} @@ -39,7 +32,6 @@ {% endfor %}
{% endfor %} -
{% endblock %} \ No newline at end of file diff --git a/src/themes/theme-fipamo-default/fipamo-default/assets/css/color.css b/src/themes/theme-fipamo-default/fipamo-default/assets/css/color.css new file mode 100644 index 0000000..8719c4f --- /dev/null +++ b/src/themes/theme-fipamo-default/fipamo-default/assets/css/color.css @@ -0,0 +1,9 @@ +/* BASE COLORS */ +:root { + --primary: #1d3040; + --secondary: #fc6399; + --tertiary: #f5ab35; + --highlight: #63fcc6ff; + --white: #ebe5d4; + --black: #32302f; +} diff --git a/src/themes/theme-fipamo-default/fipamo-default/assets/css/frame.css b/src/themes/theme-fipamo-default/fipamo-default/assets/css/frame.css new file mode 100644 index 0000000..a4e5743 --- /dev/null +++ b/src/themes/theme-fipamo-default/fipamo-default/assets/css/frame.css @@ -0,0 +1,202 @@ +html { + margin: 0; + padding: 0; + width: 100%; + height: 100%; + overflow: hidden; + font: 400 1.2em/1.4em var(--base-type); +} + +html body { + background: var(--white); + margin: 0; + padding: 0; + perspective: 1px; + transform-style: preserve-3d; + height: 100%; + width: 100%; + overflow-y: scroll; + overflow-x: hidden; +} + +/* GLOBALS */ + +a { + color: var(--primary); + text-decoration: none; + border-bottom: 1px solid var(--secondary); + transition: all 0.2s linear; +} + +a:hover { + border-bottom: 1px solid var(--highlight); +} + +sup { + background: var(--black); + color: var(--white); + padding: 3px; + border-radius: 3px; +} + +pre, +code { + background: var(--black); + color: var(--highlight); + border-radius: 3px; + padding: 3px; +} + +/* HEADER */ + +header { + background: var(--primary); + height: 90%; + width: 100%; + border-top: var(--white) 3px solid; +} + +/* HEADER -> Slideshow */ + +header > div[role="slide-show"] { + width: 100%; + height: 90%; + position: absolute; +} + +header > div[role="slide-show"] > div[role="slide"] { + transition: all 0.7s linear; + width: 100%; + height: 100%; + position: absolute; +} + +.hide { + opacity: 0; +} + +.show { + opacity: 1; +} + +header > div[role="slide-show"] > div[role="slide"] > video { + width: 100%; + height: 100%; + object-fit: cover; +} + +/* HEADER -> Navigation */ + +nav { + width: 97%; + margin: 10px auto; + display: grid; + grid-template-columns: 50% 50%; + z-index: 1000; + position: relative; + color: var(--primary); +} + +nav img { + width: 50px; + border-bottom: none; +} + +nav div[role="nav-right"] { + margin-left: auto; + margin-right: 0; +} + +nav a[role="home-link"] { + border-bottom: none; +} + +nav a[role="menu-link"] { + background: var(--secondary); + margin-bottom: 14px; + padding: 3px; + border-radius: 2px; + display: inline-block; + font-size: 0.8em; + border-bottom: none; +} + +/* MAIN CONTENT */ +main { + z-index: 2; + background: var(--white); + line-height: 30px; + font-weight: lighter; + width: 100%; + color: var(--black); +} + +main > article { + position: relative; + background: var(--white); + vertical-align: top; + color: var(--black); + padding: 0 15%; +} + +main > article > div[role="archives"] { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + column-gap: 10px; + margin-bottom: 20px; +} + +main article div[role="archives"] h1, +main article div[role="archives"] h2, +main article div[role="archives"] h3 { + color: var(--primary); +} + +main > section { + background: var(--primary); + display: grid; + grid-template-columns: 50% 50%; + padding: 0 15%; + max-width: 1000px; + color: var(--secondary); +} + +main > section > div { + padding-bottom: 20px; +} + +main > section[role="page-meta"] > div a { + color: var(--white); +} + +/* FOOTER */ +footer { + background: var(--highlight); + padding: 30px 15%; + color: var(--primary); +} + +/* RESPONSIVE */ + +@media only screen and (max-width: 640px) { + main > article { + padding: 0 10%; + } + + main > section { + padding: 0 10%; + } + + footer { + background: var(--highlight); + padding: 30px 10%; + } +} + +@media only screen and (max-width: 480px) { + main > section { + display: inline-grid; + grid-template-columns: 50%; + width: 100%; + } +} diff --git a/src/themes/theme-fipamo-default/fipamo-default/assets/css/start.css b/src/themes/theme-fipamo-default/fipamo-default/assets/css/start.css new file mode 100644 index 0000000..500b0fe --- /dev/null +++ b/src/themes/theme-fipamo-default/fipamo-default/assets/css/start.css @@ -0,0 +1,3 @@ +@import url("color.css"); +@import url("typography.css"); +@import url("frame.css"); diff --git a/src/themes/theme-fipamo-default/fipamo-default/assets/css/typography.css b/src/themes/theme-fipamo-default/fipamo-default/assets/css/typography.css new file mode 100644 index 0000000..cd88d74 --- /dev/null +++ b/src/themes/theme-fipamo-default/fipamo-default/assets/css/typography.css @@ -0,0 +1,29 @@ +:root { + --base-type: helvetica, arial, sans-serif; + --mono-type: "Lucida Console", monaco, monospace; +} + +h1, +h2, +h3 { + color: var(--white); +} + +h1 { + font-size: 2em; + font-weight: 700; +} + +h2 { + font-size: 1.8em; + font-weight: 600; +} + +h3 { + font-size: 1.5em; + font-weight: 500; +} + +main > article > h1 { + color: var(--primary); +} diff --git a/src/themes/theme-fipamo-default/fipamo-default/assets/images/global/default-avi.png b/src/themes/theme-fipamo-default/fipamo-default/assets/images/global/default-avi.png new file mode 100644 index 0000000..99ee4bb Binary files /dev/null and b/src/themes/theme-fipamo-default/fipamo-default/assets/images/global/default-avi.png differ diff --git a/src/themes/theme-fipamo-default/fipamo-default/assets/images/global/default-bg.jpg b/src/themes/theme-fipamo-default/fipamo-default/assets/images/global/default-bg.jpg new file mode 100644 index 0000000..ff29737 Binary files /dev/null and b/src/themes/theme-fipamo-default/fipamo-default/assets/images/global/default-bg.jpg differ diff --git a/src/themes/theme-fipamo-default/fipamo-default/assets/images/global/sprite.svg b/src/themes/theme-fipamo-default/fipamo-default/assets/images/global/sprite.svg new file mode 100644 index 0000000..565e7ab --- /dev/null +++ b/src/themes/theme-fipamo-default/fipamo-default/assets/images/global/sprite.svg @@ -0,0 +1,823 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + instagram-with-circle + + instagram + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/themes/theme-fipamo-default/fipamo-default/assets/images/global/the-logo.svg b/src/themes/theme-fipamo-default/fipamo-default/assets/images/global/the-logo.svg new file mode 100644 index 0000000..824cdc4 --- /dev/null +++ b/src/themes/theme-fipamo-default/fipamo-default/assets/images/global/the-logo.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/themes/theme-fipamo-default/fipamo-default/assets/scripts/ThemeStart.js b/src/themes/theme-fipamo-default/fipamo-default/assets/scripts/ThemeStart.js new file mode 100644 index 0000000..9138bdc --- /dev/null +++ b/src/themes/theme-fipamo-default/fipamo-default/assets/scripts/ThemeStart.js @@ -0,0 +1,2 @@ +(()=>{class e{constructor(){this.currentSlide=0,this.slides=document.querySelectorAll('[role="slide"]'),this.start()}start(){this.slides.length>1&&(this.slideInterval=setInterval((()=>{this.slides[this.currentSlide].className="hide",this.currentSlide=(this.currentSlide+1)%this.slides.length,this.slides[this.currentSlide].className="show"}),3e3))}}document.addEventListener("DOMContentLoaded",(function(){new e}),!1)})(); +//# sourceMappingURL=ThemeStart.js.map diff --git a/src/themes/theme-fipamo-default/fipamo-default/assets/scripts/ThemeStart.js.map b/src/themes/theme-fipamo-default/fipamo-default/assets/scripts/ThemeStart.js.map new file mode 100644 index 0000000..e0b10fb --- /dev/null +++ b/src/themes/theme-fipamo-default/fipamo-default/assets/scripts/ThemeStart.js.map @@ -0,0 +1 @@ +{"mappings":"4BAKIA,KAAKC,aAAe,EACpBD,KAAKE,OAASC,SAASC,iBAAiB,kBAExCJ,KAAKK,QAEPA,QACML,KAAKE,OAAOI,OAAS,IACvBN,KAAKO,cAAgBC,aAAW,KAC9BR,KAAKE,OAAOF,KAAKC,cAAcQ,UAAY,OAC3CT,KAAKC,cAAgBD,KAAKC,aAAe,GAAKD,KAAKE,OAAOI,OAC1DN,KAAKE,OAAOF,KAAKC,cAAcQ,UAAY,SAC1C,OCdTN,SAASO,iBACP,oBACA,WACa,IAAIC,KAEjB","sources":["src/themes/theme-fipamo-default/com/Base.js","src/themes/theme-fipamo-default/com/ThemeStart.js"],"sourcesContent":["export default class Base {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {\n this.currentSlide = 0;\n this.slides = document.querySelectorAll('[role=\"slide\"]');\n //alert(\"FRESH\");\n this.start();\n }\n start() {\n if (this.slides.length > 1) {\n this.slideInterval = setInterval(() => {\n this.slides[this.currentSlide].className = \"hide\";\n this.currentSlide = (this.currentSlide + 1) % this.slides.length;\n this.slides[this.currentSlide].className = \"show\";\n }, 3000);\n }\n }\n //--------------------------\n // methods\n //--------------------------\n\n //--------------------------\n // event handlers\n //--------------------------\n}\n","import Base from \"./Base.js\";\n\ndocument.addEventListener(\n \"DOMContentLoaded\",\n function () {\n var base = new Base();\n },\n false\n);\n"],"names":["this","currentSlide","slides","document","querySelectorAll","start","length","slideInterval","setInterval","className","addEventListener","$b8d4b81eabebe07b$export$2e2bcd8739ae039"],"version":3,"file":"ThemeStart.js.map"} \ No newline at end of file diff --git a/src/themes/theme-fipamo-default/fipamo-default/error.twig b/src/themes/theme-fipamo-default/fipamo-default/error.twig new file mode 100644 index 0000000..c92c83d --- /dev/null +++ b/src/themes/theme-fipamo-default/fipamo-default/error.twig @@ -0,0 +1,18 @@ +{% extends "frame.twig" %} + +{% block title %} + {{ title }} +{% endblock %} + + {% block mainContent %} +
+
+ {{title}} +
+
+
+
+

{{content | raw}}

+
+
+ {% endblock %} \ No newline at end of file diff --git a/src/themes/theme-fipamo-default/fipamo-default/frame.twig b/src/themes/theme-fipamo-default/fipamo-default/frame.twig index 45bcf68..2f3e981 100644 --- a/src/themes/theme-fipamo-default/fipamo-default/frame.twig +++ b/src/themes/theme-fipamo-default/fipamo-default/frame.twig @@ -1,112 +1,109 @@ {% if debug is defined %} - {% set assetPath = '/src/themes/theme-'~theme~'/'~theme~'/assets/' %} + {% set assetPath = '/src/themes/theme-'~theme~'/'~theme~'/assets/' %} {% else %} - {% set assetPath = '/assets/' %} + {% set assetPath = '/assets/' %} {% endif %} - - - {% block title %} - {{ title }} - {% endblock %} - - - - - - - - - - - - -
-
- {% if media|length > 1 %} + + + {% block title %} + {{ title }} + {% endblock %} + + + + + + + + + + + + +
+
+ {% if media|length > 1 %} {% for item in media %} - {% if item.type == "mp4"%} -
- +
+ {% else %} +
+ {% endif %} {% endfor %} - {% else %} + {% else %} {% if media[0] != '' %} - {% if media[0].type == "mp4"%} -
- +
+ {% else %} +
+ {% endif %} + {% else %} + {% endif %} + {% endif %} +
+
-
- {% apply spaceless %} - {% block mainContent %}{% endblock %} - {% endapply %} - -
+
+ {% endapply %} + +
+
+ {% apply spaceless %} + {% block mainContent %}{% endblock %} + {% endapply %} +
- - - + + + \ No newline at end of file diff --git a/src/themes/theme-fipamo-default/fipamo-default/index.twig b/src/themes/theme-fipamo-default/fipamo-default/index.twig index 11cba2f..ec2156f 100644 --- a/src/themes/theme-fipamo-default/fipamo-default/index.twig +++ b/src/themes/theme-fipamo-default/fipamo-default/index.twig @@ -1,51 +1,57 @@ {% extends "frame.twig" %} {% block title %} - {{ title }} + {{ title }} {% endblock %} - {% block mainContent %} -
-
-

{{title}}

-

{{ content | raw }}

- -
-
-
-
-
- RECENT
- {% for item in recent %} - {% if dynamicRender is defined %} - {% if dynamicRender == 'true' %} - {{item.title}}
- {% else %} - {{item.title}}
- {% endif %} - - {% else %} - {{item.title}}
- {% endif %} - {% endfor %} - -
- - -
-
- {% endblock %} \ No newline at end of file +{% block mainContent %} +
+

{{ title }}

+

{{ content | raw }}

+
+
+
+

RECENT

+ {% for item in recent %} + {% if dynamicRender is defined %} + {% if dynamicRender == 'true' %} + + {{ item.title }} +
+ {% else %} + + {{ item.title }} +
+ {% endif %} + + {% else %} + + {{ item.title }} +
+ {% endif %} + {% endfor %} + +
+
+

FEATURED

+ {% for item in featured %} + {% if dynamicRender is defined %} + {% if dynamicRender == 'true' %} + + {{ item.title }} +
+ {% else %} + + {{ item.title }} +
+ {% endif %} + + {% else %} + + {{ item.title }} +
+ {% endif %} + {% endfor %} +
+
+{% endblock %} \ No newline at end of file diff --git a/src/themes/theme-fipamo-default/fipamo-default/page.twig b/src/themes/theme-fipamo-default/fipamo-default/page.twig index fecc238..30e6fa9 100644 --- a/src/themes/theme-fipamo-default/fipamo-default/page.twig +++ b/src/themes/theme-fipamo-default/fipamo-default/page.twig @@ -5,58 +5,53 @@ {% endblock %} {% block mainContent %} -
-
- {{ title }} -
-
-
-

{{ content | raw }}

-
-
-
- Files
- {% for doc in files %} - {% if doc.type != "mp3" %} - {% set path = doc.file|split('/') %} - {{ path[6] }} +

{{ title }}

+

{{ content | raw }}

+
+
+
+

Files

+ {% for doc in files %} + {% if doc.type != "mp3" %} + {% set path = doc.file|split('/') %} + {{ path[6] }} - {% endif %} - {% endfor %} -
-
- Sounds
- {% for doc in files %} - {% if doc.type == "mp3" %} - - {% endif %} - {% endfor %} -
+ {% endif %} + {% endfor %} + +
+

Sounds

+ {% for doc in files %} + {% if doc.type == "mp3" %} + + {% endif %} + {% endfor %} +
+
+

Info

+ {{ meta['who'] }} + dropped this + {{ meta['when'] }}
-
-
- {{ meta['who'] }} - dropped this - {{ meta['when'] }}
- tags: - - {% for tag in meta['tags'] %} - {% if dynamicRender is defined %} - {% if dynamicRender == 'true' %} - {{ tag.label }} - {% else %} - {{ tag.label }} - {% endif %} + +
+

Tags

+ {% for tag in meta['tags'] %} + {% if dynamicRender is defined %} + {% if dynamicRender == 'true' %} + {{ tag.label }} {% else %} {{ tag.label }} {% endif %} - {% endfor %} - -
+ {% else %} + {{ tag.label }} + {% endif %} + {% endfor %} - +
+ {% endblock %} \ No newline at end of file diff --git a/src/themes/theme-fipamo-default/fipamo-default/tags.twig b/src/themes/theme-fipamo-default/fipamo-default/tags.twig index baa6694..57a52c1 100644 --- a/src/themes/theme-fipamo-default/fipamo-default/tags.twig +++ b/src/themes/theme-fipamo-default/fipamo-default/tags.twig @@ -1,30 +1,23 @@ {% extends "frame.twig" %} {% block title %} - {{ title }} + {{ title }} {% endblock %} - {% block mainContent %} -
-
- {{title}} -
-
-
-
- {% for tag in tag_list %} - {% if dynamicRender is defined %} - {% if dynamicRender == 'true' %} - {{tag.title}}
- {% else %} - {{tag.title}}
- {% endif %} - - {% else %} - {{tag.title}}
- {% endif %} - {% endfor %} - -
-
- {% endblock %} \ No newline at end of file +{% block mainContent %} +
+

{{ title }}

+ {% for tag in tag_list %} + {% if dynamicRender is defined %} + {% if dynamicRender == 'true' %} + {{ tag.title }}
+ {% else %} + {{ tag.title }}
+ {% endif %} + + {% else %} + {{ tag.title }}
+ {% endif %} + {% endfor %} +
+{% endblock %} \ No newline at end of file diff --git a/src/themes/theme-fipamo-default/styles/_colors.sass b/src/themes/theme-fipamo-default/styles/_colors.sass deleted file mode 100644 index 3301072..0000000 --- a/src/themes/theme-fipamo-default/styles/_colors.sass +++ /dev/null @@ -1,6 +0,0 @@ -$primary: #151d26 -$secondary : #FC6399 -$tertiary : #e8c33e -$highlight : #7ED07E -$white : #ebe5d4 -$black : #32302f diff --git a/src/themes/theme-fipamo-default/styles/_forms.sass b/src/themes/theme-fipamo-default/styles/_forms.sass deleted file mode 100644 index 61b8083..0000000 --- a/src/themes/theme-fipamo-default/styles/_forms.sass +++ /dev/null @@ -1,65 +0,0 @@ -form - display: inline-block - a - color: $primary - p - background: $tertiary - color: $primary - padding: 5px - display: block - border-radius: 5px - text-align: left - -input[type=email], input[type=password], input[type=text] - border: 0 - border-radius: 5px - padding: 5px - margin: 10px 5px 0 0 - font: 18px $baseType - display: inline-block - background: $primary - color: $tertiary - -textarea - border: 0 - border-radius: 3px - color: $white - font: 15px $baseType - background: $primary - -button, input[type=submit] - background: $highlight - color: $primary - font: 20px $baseType - border-radius: 5px - position: relative - cursor: pointer - border: 0 - padding: 10px 0 5px 0 - transition: all 0.3s linear - -select - font: 14px $baseType - border: 1px solid $secondary - -webkit-appearance: none - -moz-appearance: none - appearance: none - color: $primary - -::-webkit-input-placeholder - font: 25px $baseType - color: $white - -:-moz-placeholder - /* Firefox 18- */ - font: 25px $baseType - color: $white - -::-moz-placeholder - /* Firefox 19+ */ - font: 15px $baseType - color: $white - -:-ms-input-placeholder - font: 25px $baseType - color: $white diff --git a/src/themes/theme-fipamo-default/styles/_mixins.sass b/src/themes/theme-fipamo-default/styles/_mixins.sass deleted file mode 100644 index 1fa1f68..0000000 --- a/src/themes/theme-fipamo-default/styles/_mixins.sass +++ /dev/null @@ -1,9 +0,0 @@ -@mixin text-drop-shadow($rgb_value, $opacity, $offsetX, $offsetY, $blur) - text-shadow: $offsetX $offsetY $blur rgba($rgb_value, $opacity) - -@mixin background-opacity($rgb_value, $opacity) - background: rgba($rgb_value, $opacity) - -@mixin custom-header($weight, $size, $line_height, $color) - font: $weight $size/$line_height $bodyTypeSans - color: $color diff --git a/src/themes/theme-fipamo-default/styles/_normalize.sass b/src/themes/theme-fipamo-default/styles/_normalize.sass deleted file mode 100644 index 7fd62eb..0000000 --- a/src/themes/theme-fipamo-default/styles/_normalize.sass +++ /dev/null @@ -1,197 +0,0 @@ -html - line-height: 1.15 - -ms-text-size-adjust: 100% - -webkit-text-size-adjust: 100% - -body - margin: 0 - -article, -aside, -footer, -header, -nav, -section - display: block - -h1 - font-size: 2em - margin: 0.67em 0 - line-height: 1em - -figcaption, -figure, -main - display: block - -figure - margin: 1em 40px - -hr - box-sizing: content-box - height: 0 - overflow: visible - -pre - font-family: monospace, monospace - font-size: 1em -a - background-color: transparent - -webkit-text-decoration-skip: objects - -a:active, -a:hover - outline-width: 0 - -abbr[title] - border-bottom: none - text-decoration: underline - text-decoration: underline dotted - -b, -strong - font-weight: inherit - font-weight: bolder - -//code, -kbd, -samp - font-family: monospace, monospace - font-size: 1em - -dfn - font-style: italic - -mark - background-color: #ff0 - color: #000 - -small - font-size: 80% - -sub, -sup - font-size: 60% - line-height: 0 - position: relative - vertical-align: baseline - -sub - bottom: -0.25em - -sup - top: -0.55em - background: $primary - color: $primary - border-radius: 2px - padding: 0 2px 0 2px - margin: 0 2px 0 0 - -audio, -video - display: inline-block - -audio - &:not([controls]) - display: none - height: 0 - -img - border-style: none - -svg - &:not(:root) - overflow: hidden - -button, -input, -optgroup, -select, -textarea - font-family: sans-serif - font-size: 100% - line-height: 1.15 - margin: 0 - -button, -input - overflow: visible - -button, -select - text-transform: none - -button, html [type="button"], -[type="reset"], -[type="submit"] - -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 - border: 1px solid #c0c0c0 - margin: 0 2px - padding: 0.35em 0.625em 0.75em - -legend - box-sizing: border-box - color: inherit - display: table - max-width: 100% - padding: 0 - white-space: normal - -progress - display: inline-block - 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-cancel-button, -[type="search"]::-webkit-search-decoration - -webkit-appearance: none - -::-webkit-file-upload-button - -webkit-appearance: button - font: inherit - -details, -menu - display: block - -summary - display: list-item - -canvas - display: inline-block - -template - display: none - -[hidden] - display: none diff --git a/src/themes/theme-fipamo-default/styles/_structure.sass b/src/themes/theme-fipamo-default/styles/_structure.sass deleted file mode 100644 index 75c4c1e..0000000 --- a/src/themes/theme-fipamo-default/styles/_structure.sass +++ /dev/null @@ -1,250 +0,0 @@ -html - margin: 0 - padding: 0 - width: 100% - height: 100% - overflow: hidden - font: 400 1.2em/1.4em $baseType - - body - background: $white - margin: 0 - padding: 0 - perspective: 1px - transform-style: preserve-3d - height: 100% - width: 100% - overflow-y: scroll - overflow-x: hidden - - a - color: $primary - text-decoration: none - border-bottom: 1px solid $highlight - //@include object-transitions(.2s) - &:hover - border-bottom: 1px solid $secondary - - code - background: $black - color: $highlight - border-radius: 3px - padding: 3px - - pre - background: $black - color: $highlight - border-radius: 3px - padding: 3px - code - color: $secondary - background: none - - svg.icons - width: 25px - fill: $white - - header - background: $primary - height: 90% - width: 100% - border-top: $white 3px solid - #media - width: 100% - height: 90% - position: absolute - .slide - transition: all 0.7s linear - width: 100% - height: 100% - position: absolute - .hide - opacity: 0 - .show - opacity: 1 - video - width: 100% - height: 100% - object-fit: cover - nav - width: 97% - margin: 10px auto - z-index: 1000 - position: relative - color: $primary - .left,.right - width: 50% - display: inline-block - vertical-align: top - .left - a.logo-link - border-bottom: none - margin: 0 0 20px 0 - display: block - #logo - width: 50px - border-bottom: none - .right - text-align: right - a.menu-link - background: $secondary - margin-bottom: 4px - padding: 3px - border-radius: 2px - display: inline-block - font-size: 0.8em - border-bottom: none - &:hover - background: $secondary - - .container - z-index: 2 - background: $white - line-height: 30px - font-weight: lighter - width: 100% - //padding 40px - color: $black - article - position: relative - width: 80% - height: 80% - max-width: 840px - //min-height 500px - background: $white - vertical-align: top - color: $black - margin: 0 auto - //.index, .page - //margin 30px - .index, .page - padding: 0 0 15px 0 - img - display: block - width: 100% - h1, h2 - color: $primary - p - font: 300 1.25em/1.6em $baseType - //meta datea for page - .page_files - .page_doc - a - background: $black - border-radius: 3px - color: $white - padding: 3px - margin: 0 5px 0 0 - .meta - font: 500 0.8em/1.3em $baseType - padding: 5px 0 0 0 - border-top: 1px solid $primary - background: $white - a - font-size: 0.8em - font-weight: 400 - //archive styling - .archive-item - padding: 15px 0 20px 0 - span.year - font-size: 1.5em - font-weight: 500 - padding: 5px - display: block - color: $primary - .archive-month - display: inline-block - vertical-align: top - width: 30% - padding: 5px - span.month - color: $secondary - font-size: 1.5em - font-weight: 300 - padding: 5px - display: block - section - padding: 0 0 20px 0 - background: $primary - a - color: $white - .index-lists, .page-title - max-width: 840px - width: 80% - margin: 0 auto - padding: 20px 0 0 0 - - span - font-size: 2em - color: $secondary - font-weight: 400 - width: 80% - margin: 0 auto - padding: 20px 0 0 0 - .recent, .featured - display: inline-block - width: 50% - vertical-align: top - label - background: $black - color: $white - font-size: 1.5em - line-height: 1.3 - - footer - background: $white - padding: 10px - color: $primary - font-size: 0.8em - font-weight: 600 - height: 100px - .inner - margin: 20px auto - width: 80% - max-width: 840px - a - color: $secondary - - // RESPONSIVE - - @media only screen and (max-width: 640px) - header - nav - width: 98% - span - font-size: 2.5em - .container - article - .index, .page - .archive-item - .archive-month - width: 45% - - @media only screen and (max-width: 480px) - header - nav - width: 96% - .container - article - .index, .page - margin: 0 - p - font: 300 1em/1.6em $baseType - section - .index-lists - .recent, .featured - width: 100% !important - - @media only screen and (max-width: 375px) - header - nav - width: 95% - .container - article - .index, .page - margin: 0 - p - font: 300 0.9em/1.7em $baseType - .archive-item - .archive-month - width: 95% diff --git a/src/themes/theme-fipamo-default/styles/_typography.sass b/src/themes/theme-fipamo-default/styles/_typography.sass deleted file mode 100644 index 1c2e8b6..0000000 --- a/src/themes/theme-fipamo-default/styles/_typography.sass +++ /dev/null @@ -1,17 +0,0 @@ -$baseType: Helvetica, Arial, sans-serif -$monoType: "Lucida Console", Monaco, monospace - -h1, h2, h3 - color: $white - -h1 - font-size: 2em - font-weight: 400 - -h2 - font-size: 1.75em - font-weight: 400 - -h3 - font-size: 1.5em - font-weight: 300 diff --git a/src/themes/theme-fipamo-default/styles/base.sass b/src/themes/theme-fipamo-default/styles/base.sass deleted file mode 100644 index 476384d..0000000 --- a/src/themes/theme-fipamo-default/styles/base.sass +++ /dev/null @@ -1,10 +0,0 @@ -@use "sass:color" - -//type - -@import "_colors" -@import "_mixins" -@import "_typography" -@import "_normalize" -@import "_forms" -@import "_structure"