Browse Source

matminimal admin theme ready

Bachir Soussi Chiadmi 5 years ago
parent
commit
f744023090
23 changed files with 399 additions and 35 deletions
  1. 22 0
      config/sync/block.block.matminimal_breadcrumbs.yml
  2. 22 0
      config/sync/block.block.matminimal_content.yml
  3. 22 0
      config/sync/block.block.matminimal_help.yml
  4. 20 0
      config/sync/block.block.matminimal_local_actions.yml
  5. 22 0
      config/sync/block.block.matminimal_login.yml
  6. 22 0
      config/sync/block.block.matminimal_messages.yml
  7. 20 0
      config/sync/block.block.matminimal_page_title.yml
  8. 22 0
      config/sync/block.block.matminimal_primary_local_tasks.yml
  9. 22 0
      config/sync/block.block.matminimal_secondary_local_tasks.yml
  10. 2 0
      config/sync/core.entity_view_display.node.thematique.teaser.yml
  11. 1 1
      config/sync/migrate_plus.migration_group.d7_materio.yml
  12. 1 1
      config/sync/system.theme.yml
  13. 19 0
      web/themes/custom/matminimal/config/optional/block.block.matminimal_breadcrumbs.yml
  14. 19 0
      web/themes/custom/matminimal/config/optional/block.block.matminimal_content.yml
  15. 19 0
      web/themes/custom/matminimal/config/optional/block.block.matminimal_help.yml
  16. 17 0
      web/themes/custom/matminimal/config/optional/block.block.matminimal_local_actions.yml
  17. 19 0
      web/themes/custom/matminimal/config/optional/block.block.matminimal_login.yml
  18. 19 0
      web/themes/custom/matminimal/config/optional/block.block.matminimal_messages.yml
  19. 17 0
      web/themes/custom/matminimal/config/optional/block.block.matminimal_page_title.yml
  20. 19 0
      web/themes/custom/matminimal/config/optional/block.block.matminimal_primary_local_tasks.yml
  21. 19 0
      web/themes/custom/matminimal/config/optional/block.block.matminimal_secondary_local_tasks.yml
  22. 21 33
      web/themes/custom/matminimal/css/matminimal.css
  23. 13 0
      web/themes/custom/matminimal/matminimal.info.yml

+ 22 - 0
config/sync/block.block.matminimal_breadcrumbs.yml

@@ -0,0 +1,22 @@
+uuid: 6844a7d0-31bc-4cea-a72b-c0bb4c29b530
+langcode: en
+status: true
+dependencies:
+  module:
+    - system
+  theme:
+    - matminimal
+_core:
+  default_config_hash: 84K5xNLNmM7MeFs4CG09vGXFdHmNTNSYeppjzVQceL4
+id: matminimal_breadcrumbs
+theme: matminimal
+region: breadcrumb
+weight: 0
+provider: null
+plugin: system_breadcrumb_block
+settings:
+  id: system_breadcrumb_block
+  label: Breadcrumbs
+  provider: system
+  label_display: '0'
+visibility: {  }

+ 22 - 0
config/sync/block.block.matminimal_content.yml

@@ -0,0 +1,22 @@
+uuid: f39e652b-a559-493e-b51f-827f5754e0cc
+langcode: en
+status: true
+dependencies:
+  module:
+    - system
+  theme:
+    - matminimal
+_core:
+  default_config_hash: BlNSz6WPq_9ciuNhB084tFZB4h4tU_kMemH7FGemEWg
+id: matminimal_content
+theme: matminimal
+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: {  }

+ 22 - 0
config/sync/block.block.matminimal_help.yml

@@ -0,0 +1,22 @@
+uuid: 3acdde3f-5b1d-4e30-b766-54cd3b9766a1
+langcode: en
+status: true
+dependencies:
+  module:
+    - help
+  theme:
+    - matminimal
+_core:
+  default_config_hash: ucMk2FYh45Dz_S_GLmvzn8WbWXzifLBVy4JcDES87WM
+id: matminimal_help
+theme: matminimal
+region: help
+weight: 0
+provider: null
+plugin: help_block
+settings:
+  id: help_block
+  label: Help
+  provider: help
+  label_display: '0'
+visibility: {  }

+ 20 - 0
config/sync/block.block.matminimal_local_actions.yml

@@ -0,0 +1,20 @@
+uuid: e3176c37-8d5d-47eb-b1d8-d42c094241d5
+langcode: en
+status: true
+dependencies:
+  theme:
+    - matminimal
+_core:
+  default_config_hash: aCyPNuMz56ZbH8auMeZZeKGMKzO53IwX8rXiWcu_UCA
+id: matminimal_local_actions
+theme: matminimal
+region: content
+weight: -10
+provider: null
+plugin: local_actions_block
+settings:
+  id: local_actions_block
+  label: 'Primary admin actions'
+  provider: core
+  label_display: '0'
+visibility: {  }

+ 22 - 0
config/sync/block.block.matminimal_login.yml

@@ -0,0 +1,22 @@
+uuid: 7286997c-90ed-48da-a4e9-c18fb0feb974
+langcode: en
+status: true
+dependencies:
+  module:
+    - user
+  theme:
+    - matminimal
+_core:
+  default_config_hash: LH8eG33s_xdvbTg0S_jtOTku11tLnM9ZK62tjnZiEyk
+id: matminimal_login
+theme: matminimal
+region: content
+weight: 10
+provider: null
+plugin: user_login_block
+settings:
+  id: user_login_block
+  label: 'User login'
+  provider: user
+  label_display: visible
+visibility: {  }

+ 22 - 0
config/sync/block.block.matminimal_messages.yml

@@ -0,0 +1,22 @@
+uuid: cded6c78-ecd4-4e31-b8e2-cfde506df5a6
+langcode: en
+status: true
+dependencies:
+  module:
+    - system
+  theme:
+    - matminimal
+_core:
+  default_config_hash: 446KyRw4ws5QsAoohT2XtSZDr2WOEVSOu650fwm4T-k
+id: matminimal_messages
+theme: matminimal
+region: highlighted
+weight: 0
+provider: null
+plugin: system_messages_block
+settings:
+  id: system_messages_block
+  label: 'Status messages'
+  provider: system
+  label_display: '0'
+visibility: {  }

+ 20 - 0
config/sync/block.block.matminimal_page_title.yml

@@ -0,0 +1,20 @@
+uuid: 403e7822-59c5-43b1-b625-2934c1fcab3d
+langcode: en
+status: true
+dependencies:
+  theme:
+    - matminimal
+_core:
+  default_config_hash: TrJQ5nNEMQI1XWnz-jxEzAuPu8RA4r6KmRqIEp8Jtqw
+id: matminimal_page_title
+theme: matminimal
+region: header
+weight: -30
+provider: null
+plugin: page_title_block
+settings:
+  id: page_title_block
+  label: 'Page title'
+  provider: core
+  label_display: '0'
+visibility: {  }

+ 22 - 0
config/sync/block.block.matminimal_primary_local_tasks.yml

@@ -0,0 +1,22 @@
+uuid: 6a239d6e-89b4-4e15-886d-6df296eeb40a
+langcode: en
+status: true
+dependencies:
+  theme:
+    - matminimal
+_core:
+  default_config_hash: oI24LNAQnSK7BKcLSk5XxMohBFJKTzuoaZ0-5nQI6Ng
+id: matminimal_primary_local_tasks
+theme: matminimal
+region: header
+weight: 0
+provider: null
+plugin: local_tasks_block
+settings:
+  id: local_tasks_block
+  label: 'Primary tabs'
+  provider: core
+  label_display: '0'
+  primary: true
+  secondary: false
+visibility: {  }

+ 22 - 0
config/sync/block.block.matminimal_secondary_local_tasks.yml

@@ -0,0 +1,22 @@
+uuid: bc3b02cb-de5d-45fd-b700-6e71847e05fd
+langcode: en
+status: true
+dependencies:
+  theme:
+    - matminimal
+_core:
+  default_config_hash: hnshSujVSrLEmdnW_GsJk4o-DwwuUwTgGU2NNxyZy_E
+id: matminimal_secondary_local_tasks
+theme: matminimal
+region: pre_content
+weight: 0
+provider: null
+plugin: local_tasks_block
+settings:
+  id: local_tasks_block
+  label: 'Secondary tabs'
+  provider: core
+  label_display: '0'
+  primary: false
+  secondary: true
+visibility: {  }

+ 2 - 0
config/sync/core.entity_view_display.node.thematique.teaser.yml

@@ -28,4 +28,6 @@ content:
     third_party_settings: {  }
     region: content
 hidden:
+  field_linked_materials: true
+  field_tags: true
   langcode: true

+ 1 - 1
config/sync/migrate_plus.migration_group.d7_materio.yml

@@ -1,5 +1,5 @@
 uuid: 51fd38ed-3f74-4503-a2c3-b3e80b8b25ba
-langcode: fr
+langcode: en
 status: true
 dependencies:
   enforced:

+ 1 - 1
config/sync/system.theme.yml

@@ -1,4 +1,4 @@
-admin: adminimal_theme
+admin: matminimal
 langcode: fr
 _core:
   default_config_hash: TpdA4rsOBAawnqeon9A-Ooht_4VO3hHKib79xyHcTyg

+ 19 - 0
web/themes/custom/matminimal/config/optional/block.block.matminimal_breadcrumbs.yml

@@ -0,0 +1,19 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - system
+  theme:
+    - matminimal
+id: matminimal_breadcrumbs
+theme: matminimal
+region: breadcrumb
+weight: 0
+provider: null
+plugin: system_breadcrumb_block
+settings:
+  id: system_breadcrumb_block
+  label: Breadcrumbs
+  provider: system
+  label_display: '0'
+visibility: {  }

+ 19 - 0
web/themes/custom/matminimal/config/optional/block.block.matminimal_content.yml

@@ -0,0 +1,19 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - system
+  theme:
+    - matminimal
+id: matminimal_content
+theme: matminimal
+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: {  }

+ 19 - 0
web/themes/custom/matminimal/config/optional/block.block.matminimal_help.yml

@@ -0,0 +1,19 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - help
+  theme:
+    - matminimal
+id: matminimal_help
+theme: matminimal
+region: help
+weight: 0
+provider: null
+plugin: help_block
+settings:
+  id: help_block
+  label: Help
+  provider: help
+  label_display: '0'
+visibility: {  }

+ 17 - 0
web/themes/custom/matminimal/config/optional/block.block.matminimal_local_actions.yml

@@ -0,0 +1,17 @@
+langcode: en
+status: true
+dependencies:
+  theme:
+    - matminimal
+id: matminimal_local_actions
+theme: matminimal
+region: content
+weight: -10
+provider: null
+plugin: local_actions_block
+settings:
+  id: local_actions_block
+  label: 'Primary admin actions'
+  provider: core
+  label_display: '0'
+visibility: {  }

+ 19 - 0
web/themes/custom/matminimal/config/optional/block.block.matminimal_login.yml

@@ -0,0 +1,19 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - user
+  theme:
+    - matminimal
+id: matminimal_login
+theme: matminimal
+region: content
+weight: 10
+provider: null
+plugin: user_login_block
+settings:
+  id: user_login_block
+  label: 'User login'
+  provider: user
+  label_display: visible
+visibility: {  }

+ 19 - 0
web/themes/custom/matminimal/config/optional/block.block.matminimal_messages.yml

@@ -0,0 +1,19 @@
+langcode: en
+status: true
+dependencies:
+  module:
+    - system
+  theme:
+    - matminimal
+id: matminimal_messages
+theme: matminimal
+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 - 0
web/themes/custom/matminimal/config/optional/block.block.matminimal_page_title.yml

@@ -0,0 +1,17 @@
+langcode: en
+status: true
+dependencies:
+  theme:
+    - matminimal
+id: matminimal_page_title
+theme: matminimal
+region: header
+weight: -30
+provider: null
+plugin: page_title_block
+settings:
+  id: page_title_block
+  label: 'Page title'
+  provider: core
+  label_display: '0'
+visibility: {  }

+ 19 - 0
web/themes/custom/matminimal/config/optional/block.block.matminimal_primary_local_tasks.yml

@@ -0,0 +1,19 @@
+langcode: en
+status: true
+dependencies:
+  theme:
+    - matminimal
+id: matminimal_primary_local_tasks
+theme: matminimal
+region: header
+weight: 0
+provider: null
+plugin: local_tasks_block
+settings:
+  id: local_tasks_block
+  label: 'Primary tabs'
+  provider: core
+  label_display: '0'
+  primary: true
+  secondary: false
+visibility: {  }

+ 19 - 0
web/themes/custom/matminimal/config/optional/block.block.matminimal_secondary_local_tasks.yml

@@ -0,0 +1,19 @@
+langcode: en
+status: true
+dependencies:
+  theme:
+    - matminimal
+id: matminimal_secondary_local_tasks
+theme: matminimal
+region: pre_content
+weight: 0
+provider: null
+plugin: local_tasks_block
+settings:
+  id: local_tasks_block
+  label: 'Secondary tabs'
+  provider: core
+  label_display: '0'
+  primary: false
+  secondary: true
+visibility: {  }

+ 21 - 33
web/themes/custom/matminimal/css/matminimal.css

@@ -1,43 +1,31 @@
-body{
-  /* background-color: red!important; */
+.adminimal input.form-autocomplete, .adminimal input.form-text, .adminimal input.form-tel, .adminimal input.form-email, .adminimal input.form-url, .adminimal input.form-search, .adminimal input.form-number, .adminimal input.form-color, .adminimal input.form-file, .adminimal input.form-date, .adminimal input.form-time, .adminimal textarea.form-textarea{
+  background-color: #fff;
+  border-radius: 3px;
 }
 
-details.seven-details{
-  background-color: #333;
-  color:#fff;
+.adminimal select{
+  background-color: #fff;
   border-radius: 3px;
 }
-details.seven-details input,
-details.seven-details select{
-  color:#333;
+
+.adminimal .button {
+  /* background-color: #2196F3; */
+  border-radius: 5px;
 }
-details.seven-details summary,
-details.seven-details .seven-details__summary:hover,
-details.seven-details .seven-details__summary:focus,
-.seven-details[open] > .seven-details__summary{
-  color:#fff;
-  text-shadow: none;
+/* .adminimal .button:hover, .adminimal .button:focus {
+  background-color: #2196F3;
+  border-color: #2196F3;
 }
 
-.adminimal input.form-autocomplete,
-.adminimal input.form-text,
-.adminimal input.form-tel,
-.adminimal input.form-email,
-.adminimal input.form-url,
-.adminimal input.form-search,
-.adminimal input.form-number,
-.adminimal input.form-color,
-.adminimal input.form-file,
-.adminimal input.form-date,
-.adminimal input.form-time,
-.adminimal textarea.form-textarea{
-  border-radius: 3px;
-}
-.adminimal select{
-  border-radius: 3px;
+.adminimal .button[data-drupal-selector="edit-submit-admin-nodes"]{
+  background-color: #64DD17;
 }
 
-.adminimal .button{
-  background-color: #0071b8;
-  border-radius: 5px;
+.adminimal .button[data-drupal-selector="edit-reset"]{
+  background-color: #FFC107;
+} */
+
+
+.js td .dropbutton-multiple{
+  border-radius: 3px;
 }

+ 13 - 0
web/themes/custom/matminimal/matminimal.info.yml

@@ -6,3 +6,16 @@ base theme: adminimal_theme
 
 libraries:
   - matminimal/global-styling
+
+regions:
+  header: 'Header'
+  pre_content: 'Pre-content'
+  breadcrumb: Breadcrumb
+  highlighted: Highlighted
+  help: Help
+  content: Content
+  page_top: 'Page top'
+  page_bottom: 'Page bottom'
+  sidebar_first: 'First sidebar'
+regions_hidden:
+  - sidebar_first