Giter VIP home page Giter VIP logo

gin's Introduction

Gin Admin Theme

Introduction

A radically new UI layout paired with goodies like a Darkmode will give your Backdrop admin interface a facelift.

Installation

Set Gin as default admin theme

  • Navigate to Admin > Appearance
  • On the same page, click "Enable" under Gin
  • At the bottom of the page, switch the Administration theme to Gin

Issues

  • Bugs and Feature requests should be reported in the Issue Queue.

Troubleshooting and Local Development

  • Setup Gin locally that you can compile CSS & JS files.
    nvm use && npm i

  • Run dev env with watcher and debug output (development process)
    npm run dev

  • Compile assets
    npm run build

Maintainers

Credits

  • Ported to Backdrop by Laryn Kragt Bakker (@laryn) and Sascha Eggenberger (@saschaeggi).
  • Created and maintained for Drupal by Sascha Eggenberger (@saschaeggi).
  • Forked from Gin which is "built on the foundation of Claro".
  • Gin for Backdrop is partially supported by Aten Design Group.

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

gin's People

Contributors

aaronfeledy avatar agamich-fe avatar ambient-impact avatar chrfritsch avatar christianwiedemann avatar eduardo-morales-alberti avatar el7cosmos avatar gnuschichten avatar ibuisic avatar jbertoen avatar laryn avatar markdorison avatar ol0lll avatar paul121 avatar pcambra avatar rupeshgharat avatar saschaeggi avatar simgui8 avatar theteknocat avatar tobiasbaehr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

saschaeggi laryn

gin's Issues

Dialogs not working on text format page

Steps:

  1. Go to admin/config/content/formats/filtered_html
  2. Click on any config button

Expected result:
dialog opens

Actual result:
Something appears to happen but dialog doesn't open (FPS on gif recorder to low to capture)

chrome_8TcAEv54Kh

Chevron handles on admin items aren't showing up

The chevron handles on admin items are not showing up in Backdrop. This is because a few CSS declarations for the Drupal version get supplied by Claro (the base theme for Drupal). Since we don't have a base theme for Backdrop I will add those in the Backdrop overrides file.

image

Textareas need consistent styling

Screenshot 2023-08-09 150433

On the content edit form textarea has nice rounded corners etc. Once you switch to Plain HTML though, you get a plain square angled box, like the one above. Same for all other textareas.

Menu Link Weight and Experimental Sidebar on edit form Error

Yeah, I love to see gin on backdrop.

When I was trying the Experimental Feature "Sidebar on edit form" I got the following error when used with the Menu Link Weight Module:

Argument 1 passed to _menu_link_weight_get_parent_value_from_element() must be of the type array, null given, called in */modules/menu_link_weight/menu_link_weight.module on line 109

Thank you.

Create a sidekick module

This is a note (not for development in the theme itself) that it might be good to create a sidekick module to provide some options for bringing the Gin styling, etc. to the front end. In Drupal, the Gin Toolbar does this for that particular feature.

I was thinking of making it more generic, with checkboxes for the options that get added, e.g.:

Use Gin's styling on the front end for:

  • [] Admin toolbar
  • [] Modal dialogs
  • etc.

In fact this module might be a good use for the conceptual name tonic!

Minimize Backdrop-specific overrides

@klonos on Zulip:

have you considered finding a way to keep the Backdrop-related overrides decoupled from the otherwise original Gin code? (in order to be able to more easily keep up with upstream changes)

Fix spacing on vertical tabs

Needs some spacing at the top (ie above "Publish action" in the image below), and a bit of spacing between individual items in the tab

Screenshot 2023-08-09 145144

Remove D8/9/10 cruft

At some point we'll need to go through and try to remove cruft that doesn't apply. I've left it in for now so we can adapt it as needed for the functionality and styles that are still to be completed.

Dialogs not launching

I get error in console

Uncaught TypeError: The element must be an instance of Element
    at u (once.js?v=1.25.x-dev:2:382)

themes/gin/js/libs/once.js

Layout template overrides

I've made a few modifications to a few layout templates which should probably be carried through the rest of the core layout templates.

Inline message styling

There are some inline messages in various places (such as the dirty form warning and notification on the dashboard) that still have default styling:

image

Add @saschaeggi as a Co-Maintainer

If Tonic should keep more or less it's roots tied to Gin you could add me as a Co-Maintainer so I can contribute changes/fixes made upstream in Gin.

The AJAX loading spinner appears within dropbuttons

In Seven, clicking and AJAX link in the layout page causes the spinner to appear just below the dropbutton, but in Gin, the dropbutton expands below and the spinner appears within the dropbutton

Furthermore on flexible layout, clicking the configure button shows the dropbutton expanding below the pseudoblock.
below

Admin menu

  1. On very small widths, the menu doesn't fully collapse into mobile mode and obscures the page.
  2. I wonder if we might be able to provide the current menu (roughly equivalent to "Horizontal, Modern Toolbar") and a vertical version of the same (roughly equivalent to "New Drupal Navigation, Test integration")

CleanShot 2024-01-09 at 22 44 32@2x

Project name

You're more than welcome to keep the name «Gin» if you like.

Content edit page

The content edit page needs a look, and a determination on whether or how to implement the "vertical tabs in sidebar" approach taken in Gin:

image

Form tweaks

I see a number of minor form tweaks needed, as visible on the "Add User" page:

image

e.g.

  • Margin needed on the right side of the radio/checkbox
  • Labels and descriptions are too dark and not matching Gin styles
  • Strange background that I introduced on fieldset legend at one point should be removed

Edit options in sidebar messes up Ajax

I thought I was being clever with moving the edit options into the sidebar, but in some early testing with Paragraphs it seems to cause issues with Ajax (e.g. collapse, remove Paragraphs). I'm going to move that sidebar functionality into a theme setting that is marked experimental, at least for now.

[META] Migration progress

This is a META issue to document the current state of the migration work. Please note that currently the experience is very buggy as we have just started porting things over to Backdrop.

The following features have been already been ported or known to be needed:

  • Gin settings
    • #97
    • #7
    • #19
    • Darkmode
    • Accent color
    • Focus color
    • Increase contrast
    • Layout density
  • Admin Bar (part one - horizontal)
  • Sticky header
  • CKEditor
  • Boolean Toggle
  • #20
  • #21
  • #31
  • #50

Admin menu icons color should be more flexible

I installed "Simple Environment Indicator" and the icons have very little contrast against the color. For the moment we can probably do a transparent white that would be more flexible in general on dark colors. I also noticed the Backdrop logo was repeating for some reason.

Before:
CleanShot 2023-08-28 at 14 00 04@2x

CleanShot 2023-08-28 at 14 00 35@2x

After:
CleanShot 2023-08-28 at 13 59 43@2x

CleanShot 2023-08-28 at 14 03 21@2x

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.