Skip to content

Commit c8ca68c

Browse files
committed
Issue #3426873: Switch default admin theme to the Gin Admin theme as Vartheme Claro is deprecated
1 parent 5511dca commit c8ca68c

File tree

7 files changed

+50
-96
lines changed

7 files changed

+50
-96
lines changed

config/install/gin.settings.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

css/theme/install-page.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,24 @@ body.install-page .logo a {
3131
background-color: transparent;
3232
}
3333

34+
body.install-page .site-name {
35+
background-image: url(../../images/varbase-medium-logo.png);
36+
background-position-x: 0px;
37+
background-position-y: 0px;
38+
background-size: 50%;
39+
background-repeat: no-repeat;
40+
background-attachment: initial;
41+
background-origin: initial;
42+
background-clip: initial;
43+
background-color: transparent;
44+
height: 3rem;
45+
width: 30rem;
46+
color: transparent;
47+
}
48+
3449
body.install-page .site-version {
3550
vertical-align: initial !important;
36-
padding-left: 10px;
51+
padding-left: 10rem;
3752
color: #4192c8;
3853
font-weight: bold;
3954
font-size: .6em;

js/install-scripts.js

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
((Drupal) => {
1+
/**
2+
* @file
3+
* JavaScript behaviors for Varbase installer.
4+
*/
5+
6+
(function ($, Drupal) {
7+
8+
'use strict';
9+
10+
Drupal.behaviors.varbaseInstaller = {
11+
attach: function attach(context) {
12+
13+
$("<footer class=\"installer-footer clearfix\"><div id=\"credit\" class=\"clearfix\"><div class=\"message\">Proudly built by</div><div class=\"logo\"><a href=\"http://www.vardot.com\" target=\"_blank\">Vardot Company</a></div></div></footer>").appendTo("body");
14+
},
15+
};
16+
217
Drupal.behaviors.varbaseGinAccent = {
318
attach: function attach(context) {
419

@@ -10,4 +25,4 @@
1025
},
1126
};
1227

13-
})(Drupal);
28+
})(jQuery, Drupal);

scss/theme/install-page.scss

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,24 @@ body.install-page {
3131
background-color: transparent;
3232
}
3333

34+
.site-name {
35+
background-image: url(../../images/varbase-medium-logo.png);
36+
background-position-x: 0px;
37+
background-position-y: 0px;
38+
background-size: 50%;
39+
background-repeat: no-repeat;
40+
background-attachment: initial;
41+
background-origin: initial;
42+
background-clip: initial;
43+
background-color: transparent;
44+
height: 3rem;
45+
width: 30rem;
46+
color: transparent;
47+
}
48+
3449
.site-version {
3550
vertical-align: initial !important;
36-
padding-left: 10px;
51+
padding-left: 10rem;
3752
color: #4192c8;
3853
font-weight: bold;
3954
font-size: 0.6em;

templates/install-page.html.twig

Lines changed: 0 additions & 59 deletions
This file was deleted.

varbase.libraries.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ install-scripts:
99
js:
1010
js/install-scripts.js: { }
1111
dependencies:
12+
- core/jquery
1213
- gin/gin_accent

varbase.profile

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -758,18 +758,6 @@ function varbase_requirements($phase) {
758758
return $requirements;
759759
}
760760

761-
/**
762-
* Implements hook_theme().
763-
*/
764-
function varbase_theme($existing, $type, $theme, $path) {
765-
return [
766-
'install_page' => [
767-
'template' => 'install-page.html',
768-
'path' => $path . '/templates'
769-
],
770-
];
771-
}
772-
773761
/**
774762
* Implements hook_library_info_alter().
775763
*/

0 commit comments

Comments
 (0)