rdrew
8 months ago
7 changed files with 73 additions and 8 deletions
@ -1,24 +1,39 @@ |
|||||||
# vre2024 - Drupal 10 Base Theme. |
# vre2024 - Drupal 10 Base Theme. |
||||||
|
|
||||||
## Sassless theme |
## Sassless Theme |
||||||
Native css has progressed to include variables and property nesting so this theme does not reqire preprocessing an make liberal used of css variables |
Native css has progressed to include variables and property nesting so this theme does not reqire preprocessing an make liberal used of css variables |
||||||
|
|
||||||
## Theme configuration varables |
## Theme Configuration Varables |
||||||
Many of the stylist details are set in `site-variables.css` |
Many of the stylist details are set in `site-variables.css` |
||||||
|
|
||||||
## Subtheme creation script |
## Subtheme Creation Script |
||||||
|
|
||||||
php core/scripts/drupal generate-theme --starterkit vre2024 name_of_subtheme |
php core/scripts/drupal generate-theme --starterkit vre2024 name_of_subtheme |
||||||
|
|
||||||
## Proxy server for local theme dev against live site |
## Proxy Server For Local Theme Dev Against Live Site |
||||||
edit variables in `bs.js` and run: |
edit variables in `bs.js` and run: |
||||||
|
|
||||||
node bs.js |
node bs.js |
||||||
|
|
||||||
this runs a proxy server using Browser-sync, serving your local files against the live proxied site. Css file are watched or changes and are automatically reloaded on file save. |
this runs a proxy server using Browser-sync, serving your local files against the live proxied site. Css file are watched or changes and are automatically reloaded on file save. |
||||||
|
|
||||||
## Icon libraries |
## Suckerfish Main Menu |
||||||
|
when placed in the 'primary menu' region, suckerfish.js is enabled for the dropdrowns |
||||||
|
|
||||||
|
## Mobile Header Nav |
||||||
|
On mobile, the header-top regions stack and the primary-menu region becomes a pop-out vertical menu |
||||||
|
|
||||||
|
## Icon Libraries |
||||||
enable/disable fontawesome4,5 or Bootstrap Icons in vre2024.info.yml |
enable/disable fontawesome4,5 or Bootstrap Icons in vre2024.info.yml |
||||||
|
|
||||||
## Logos |
## Logos |
||||||
Both the white and colored UPEI shields are included as svgs |
Both the white and colored UPEI shields are included as svgs |
||||||
|
|
||||||
|
## Landing Page Regions |
||||||
|
top & bottom content regions that only appear on the landing page |
||||||
|
|
||||||
|
## Header Search Form |
||||||
|
Search box region enables a dropdown search box |
||||||
|
|
||||||
|
## Scroll To Top Bottom |
||||||
|
automatic on long pages |
||||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 41 KiB |
@ -0,0 +1,41 @@ |
|||||||
|
{% if page.header_top_left or page.header_top_right %} |
||||||
|
{% include '@vre2024/template-parts/header/header-top.html.twig' %} |
||||||
|
{% endif %} |
||||||
|
{% include '@vre2024/template-parts/header/header.html.twig' %} |
||||||
|
{% if not is_front and page.page_header %} |
||||||
|
{% include '@vre2024/template-parts/header/header-page.html.twig' %} |
||||||
|
{% endif %} |
||||||
|
{% if page.highlighted %} |
||||||
|
{% include '@vre2024/template-parts/highlighted.html.twig' %} |
||||||
|
{% endif %} |
||||||
|
<div class="main-wrapper"> |
||||||
|
<div class="container"> |
||||||
|
<a id="main-content" tabindex="-1"></a> |
||||||
|
<div class="main-container"> |
||||||
|
<main id="main" class="main-content"> |
||||||
|
{% if page.content_home_top %} |
||||||
|
{% include '@vre2024/template-parts/content-parts/content_home_top.html.twig' %} |
||||||
|
{% endif %} |
||||||
|
{% if page.content_top %} |
||||||
|
{% include '@vre2024/template-parts/content-parts/content_top.html.twig' %} |
||||||
|
{% endif %} |
||||||
|
<div class="node-content"> |
||||||
|
{{ page.content }} |
||||||
|
</div> |
||||||
|
{% if page.content_bottom %} |
||||||
|
{% include '@vre2024/template-parts/content-parts/content_bottom.html.twig' %} |
||||||
|
{% endif %} |
||||||
|
{% if page.content_home_bottom %} |
||||||
|
{% include '@vre2024/template-parts/content-parts/content_home_bottom.html.twig' %} |
||||||
|
{% endif %} |
||||||
|
</main> |
||||||
|
{% if page.sidebar_first %} |
||||||
|
{% include '@vre2024/template-parts/sidebar/sidebar_left.html.twig' %} |
||||||
|
{% endif %} |
||||||
|
{% if page.sidebar_second %} |
||||||
|
{% include '@vre2024/template-parts/sidebar/sidebar_right.html.twig' %} |
||||||
|
{% endif %} |
||||||
|
</div><!--/main-container --> |
||||||
|
</div><!--/container --> |
||||||
|
</div><!--/main-wrapper --> |
||||||
|
{% include '@vre2024/template-parts/footer/footer.html.twig' %} |
Loading…
Reference in new issue