Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3325719 - Create a custom admin theme and custom module #82

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ web/modules/features
web/profiles/contrib
web/themes/contrib

# Not ignore custom parts of Drupal.
!web/modules/custom/sous_custom
!web/themes/custom/sous_custom

# Ignore Composer-managed dependencies.
vendor/

Expand Down
16 changes: 11 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
],
"require": {
"php": ">=7.4",
"fourkitchens/sous-drupal-distro": "4.x-dev",
"drupal/config_direct_save": "^1.0",
"cweagans/composer-patches": "^1.6.5",
"drupal/core-recommended": "^9",
"drupal-composer/preserve-paths": "^0.1.6",
"drupal/config_direct_save": "^1.0",
"drupal/core-composer-scaffold": "^9",
"drupal/core-recommended": "^9",
"drush/drush": "^10.0",
"fourkitchens/sous-drupal-distro": "4.x-dev",
"vlucas/phpdotenv": "^2.4",
"webflo/drupal-finder": "^1.0.0",
"webmozart/path-util": "^2.3",
Expand All @@ -42,7 +43,8 @@
"cweagans/composer-patches": true,
"drupal/core-composer-scaffold": true,
"zaporylie/composer-drupal-optimizations": true,
"oomphinc/composer-installers-extender": true
"oomphinc/composer-installers-extender": true,
"drupal-composer/preserve-paths": true
}
},
"autoload": {
Expand Down Expand Up @@ -108,7 +110,11 @@
"sites/example.sites.php": "sites/example.sites.php"
},
"omit-defaults": false
}
},
"preserve-paths": [
"web/modules/custom/sous_custom",
"web/themes/custom/sous_custom"
]
},
"scripts": {
"post-create-project-cmd": "Sous\\Starter::installTheme"
Expand Down
1 change: 1 addition & 0 deletions web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/README.md
Empty file added web/modules/custom/.gitkeep
Empty file.
6 changes: 6 additions & 0 deletions web/modules/custom/sous_custom/sous_custom.info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Sous module
type: module
description: The description of sous module.
package: Custom
core: 8.x
core_version_requirement: ^8 || ^9 || ^10
10 changes: 10 additions & 0 deletions web/modules/custom/sous_custom/sous_custom.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

/**
* @file
* Primary module hooks for sous module.
*
* @DCG
* This file is no longer required in Drupal 8.
* @see https://www.drupal.org/node/2217931
*/
Empty file added web/themes/custom/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions web/themes/custom/sous_custom/css/sous_custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* Styles custom. */
Binary file added web/themes/custom/sous_custom/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions web/themes/custom/sous_custom/sous_custom.info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Sous admin
type: theme
core: 8.x
core_version_requirement: ^8 || ^9 || ^10
base theme: gin
description: 'Overrides for the Gin theme.'
alt text: 'Screenshot of SubThemeGin, Drupal administration subtheme of claro.'
package: Custom
version: '8.x'
experimental: true

libraries:
- gin/gin
- claro/global-styling

libraries-extend:
gin/gin_base:
- sous_custom/sous_custom
4 changes: 4 additions & 0 deletions web/themes/custom/sous_custom/sous_custom.libraries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sous_custom:
css:
base:
css/sous_custom.css: { }