Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Commit

Permalink
Added default blocks config. Updated Prism.
Browse files Browse the repository at this point in the history
  • Loading branch information
i-amdroid committed Jan 1, 2018
1 parent 80fa9df commit 117c10c
Show file tree
Hide file tree
Showing 63 changed files with 3,443 additions and 948 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ Material base theme
Introduction
------------

Base theme inspirited by [Material Design](https://design.google.com/) concept from Goggle.
Base theme inspirited by [Material Design](https://material.io/) concept from Goggle.

Demo
-------------

[mb.4dx.pw](http://mb.4dx.pw/)

Requirements
------------
Expand Down
27 changes: 27 additions & 0 deletions config/optional/block.block.material_base_account_menu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
langcode: en
status: true
dependencies:
config:
- system.menu.account
module:
- block_class
- system
theme:
- material_base
third_party_settings:
block_class:
classes: 'navbar-item navbar-account-menu pull-right'
id: material_base_account_menu
theme: material_base
region: navbar
weight: -4
provider: null
plugin: 'system_menu_block:account'
settings:
id: 'system_menu_block:account'
label: 'User account menu'
provider: system
label_display: '0'
level: 1
depth: 1
visibility: { }
26 changes: 26 additions & 0 deletions config/optional/block.block.material_base_branding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
langcode: en
status: true
dependencies:
module:
- block_class
- system
theme:
- material_base
third_party_settings:
block_class:
classes: 'navbar-item navbar-branding'
id: material_base_branding
theme: material_base
region: navbar
weight: -6
provider: null
plugin: system_branding_block
settings:
id: system_branding_block
label: 'Site branding'
provider: system
label_display: '0'
use_site_logo: true
use_site_name: true
use_site_slogan: true
visibility: { }
19 changes: 19 additions & 0 deletions config/optional/block.block.material_base_breadcrumbs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
langcode: en
status: true
dependencies:
module:
- system
theme:
- material_base
id: material_base_breadcrumbs
theme: material_base
region: breadcrumb
weight: 0
provider: null
plugin: system_breadcrumb_block
settings:
id: system_breadcrumb_block
label: Breadcrumbs
provider: system
label_display: '0'
visibility: { }
19 changes: 19 additions & 0 deletions config/optional/block.block.material_base_content.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
langcode: en
status: true
dependencies:
module:
- system
theme:
- material_base
id: material_base_content
theme: material_base
region: content
weight: 0
provider: null
plugin: system_main_block
settings:
id: system_main_block
label: 'Main page content'
provider: system
label_display: '0'
visibility: { }
27 changes: 27 additions & 0 deletions config/optional/block.block.material_base_footer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
langcode: en
status: true
dependencies:
config:
- system.menu.footer
module:
- block_class
- system
theme:
- material_base
third_party_settings:
block_class:
classes: footer-item
id: material_base_footer
theme: material_base
region: footer_content
weight: -6
provider: null
plugin: 'system_menu_block:footer'
settings:
id: 'system_menu_block:footer'
label: 'Footer menu'
provider: system
label_display: '0'
level: 1
depth: 0
visibility: { }
19 changes: 19 additions & 0 deletions config/optional/block.block.material_base_help.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
langcode: en
status: true
dependencies:
module:
- help
theme:
- material_base
id: material_base_help
theme: material_base
region: content
weight: -7
provider: null
plugin: help_block
settings:
id: help_block
label: Help
provider: help
label_display: '0'
visibility: { }
17 changes: 17 additions & 0 deletions config/optional/block.block.material_base_local_actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
langcode: en
status: true
dependencies:
theme:
- material_base
id: material_base_local_actions
theme: material_base
region: content
weight: -7
provider: null
plugin: local_actions_block
settings:
id: local_actions_block
label: 'Primary admin actions'
provider: core
label_display: '0'
visibility: { }
19 changes: 19 additions & 0 deletions config/optional/block.block.material_base_local_tasks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
langcode: en
status: true
dependencies:
theme:
- material_base
id: material_base_local_tasks
theme: material_base
region: content
weight: -7
provider: null
plugin: local_tasks_block
settings:
id: local_tasks_block
label: Tabs
provider: core
label_display: '0'
primary: true
secondary: true
visibility: { }
27 changes: 27 additions & 0 deletions config/optional/block.block.material_base_main_menu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
langcode: en
status: true
dependencies:
config:
- system.menu.main
module:
- block_class
- system
theme:
- material_base
third_party_settings:
block_class:
classes: 'navbar-item navbar-menu pull-center'
id: material_base_main_menu
theme: material_base
region: navbar
weight: -5
provider: null
plugin: 'system_menu_block:main'
settings:
id: 'system_menu_block:main'
label: 'Main navigation'
provider: system
label_display: '0'
level: 1
depth: 1
visibility: { }
19 changes: 19 additions & 0 deletions config/optional/block.block.material_base_messages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
langcode: en
status: true
dependencies:
module:
- system
theme:
- material_base
id: material_base_messages
theme: material_base
region: highlighted
weight: 0
provider: null
plugin: system_messages_block
settings:
id: system_messages_block
label: 'Status messages'
provider: system
label_display: '0'
visibility: { }
17 changes: 17 additions & 0 deletions config/optional/block.block.material_base_page_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
langcode: en
status: true
dependencies:
theme:
- material_base
id: material_base_page_title
theme: material_base
region: content
weight: -7
provider: null
plugin: page_title_block
settings:
id: page_title_block
label: 'Page title'
provider: core
label_display: '0'
visibility: { }
23 changes: 23 additions & 0 deletions config/optional/block.block.material_base_powered.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
langcode: en
status: true
dependencies:
module:
- block_class
- system
theme:
- material_base
third_party_settings:
block_class:
classes: footer-item
id: material_base_powered
theme: material_base
region: footer_content
weight: -5
provider: null
plugin: system_powered_by_block
settings:
id: system_powered_by_block
label: 'Powered by Drupal'
provider: system
label_display: '0'
visibility: { }
23 changes: 23 additions & 0 deletions config/optional/block.block.material_base_search.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
langcode: en
status: true
dependencies:
module:
- block_class
- search
theme:
- material_base
third_party_settings:
block_class:
classes: 'block-search mt-24'
id: material_base_search
theme: material_base
region: sidebar_first
weight: -6
provider: null
plugin: search_form_block
settings:
id: search_form_block
label: Search
provider: search
label_display: '0'
visibility: { }
23 changes: 23 additions & 0 deletions config/optional/block.block.material_base_tools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
langcode: en
status: true
dependencies:
config:
- system.menu.tools
module:
- system
theme:
- material_base
id: material_base_tools
theme: material_base
region: sidebar_first
weight: -5
provider: null
plugin: 'system_menu_block:tools'
settings:
id: 'system_menu_block:tools'
label: Tools
provider: system
label_display: visible
level: 1
depth: 0
visibility: { }
11 changes: 8 additions & 3 deletions css/code-highlight.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* break points */
@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,700&subset=latin,cyrillic-ext);
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+apacheconf+bash+c+cpp+css-extras+git+java+markdown+php+php-extras+sass+scss+twig+yaml&plugins=line-numbers */
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+apacheconf+c+bash+cpp+csharp+ruby+css-extras+git+java+json+markdown+nginx+php+php-extras+sass+scss+twig+yaml&plugins=line-numbers */
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
Expand Down Expand Up @@ -54,8 +54,7 @@ pre[class*="language-"] {
.token.url,
.language-css .token.string,
.style .token.string {
color: #a67f59;
background: rgba(255, 255, 255, 0.5); }
color: #a67f59; }

.token.atrule,
.token.attr-value,
Expand Down Expand Up @@ -131,6 +130,12 @@ pre.line-numbers > code {
margin-right: -24px; } }
/* theme dark */
.theme-dark {
/* http://prismjs.com/download.html?themes=prism-twilight&languages=markup+css+clike+javascript+apacheconf+c+bash+cpp+csharp+ruby+css-extras+git+java+json+markdown+nginx+php+php-extras+sass+scss+twig+yaml&plugins=line-numbers */
/**
* prism.js Twilight theme
* Based (more or less) on the Twilight theme originally of Textmate fame.
* @author Remy Bach
*/
/* Markup */ }
.theme-dark .token.comment,
.theme-dark .token.prolog,
Expand Down
Loading

0 comments on commit 117c10c

Please sign in to comment.