Giter Site home page Giter Site logo

stadgent / fractal_styleguide_gent-base-archive Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 2.0 2.75 MB

Archive for the styleguide for sites made by city of Ghent.

Home Page: https://stijlgids.stad.gent/

License: GNU General Public License v3.0

JavaScript 11.00% CSS 36.64% HTML 50.32% Shell 1.95% Ruby 0.09%
styleguide fractal ghent d09crmcheck22 d09check22 web

fractal_styleguide_gent-base-archive's People

Contributors

daften avatar delrueba avatar dependabot[bot] avatar fraukevdz avatar jelle-s avatar jeroen005 avatar johanraes avatar meirege avatar wim-vantomme avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fractal_styleguide_gent-base-archive's Issues

Proposition: Using a grid system like Susy.

Just an idea:
Using a grid system like Susy allows for better semantics. It also removes a lot of divs Bootstrap needs to define a grid. No more row wrappers are needed etc...
It generally makes the HTML cleaner.

Support for Angular CLI

The main.scss file uses import globbing statements, which is, by default, not supported for use with Angular CLI. Is it possible to create a main_cli.scss file with all the necassary references without globs?

Environment

  • Version used: 2.7.0
  • Project: Digitale Front Office Inname Publieke ruimte

NPM installation fails

The installation of the package over npm still fails due to the postinstall script.
Can you please fix this?

Restructuring of the current style guide.

I propose we change the structure of the style guide to the following:

By defining components and their variants in their own twig files we can start to reuse these components in other components with more ease, which allows us to better keep the style guide up to date and allows for better Drupal 8 integration in the future.

Some things to refactor:

  • Give each component it's own handle name (defined in the component config file) for easier referencing in other components.
  • Create templates to show of groups of components or entire pages as an example for people who want to integrate the style guide in their app.
  • Make references to other components with the following syntax: {% include ‘@text-styles’ %}.
  • Rename component subfolders and use the order key in their config files to define the Fractal navigation order.

Some references, inspiration:

Changing the way sections define atoms and molecules.

I propose a different approach on how we should let sections define theming for atoms, molecules and organisms.

In this article there is a section called "The block mixin approach".

The idea is that they use a SASS map where they define the colors that themes should override.
They also use a mixin themify() that automatically creates the CSS that components need based on a wrapper class (e.g. the section it's contained in).

This would let us create atoms, molecules and organisms without having to manually change code in the new-sections() mixin each time, thus removing duplicate code and making it easier to maintain the style guide.

It would then be the responsibility of the developer to include the themify() mixin for all properties of a component that need different theming based on the section they are in.
But once this is implemented, the code for all theme variations for that component would be compiled automatically by SASS.

Links inside h-tags should get styling

Currently when a h-tag (h1,... h6) contains a link it will be styled as a link...
This should be part of the heading atoms imo, that when they contain a link, they should style that link the same way as the heading atom it is in.

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.