Code Monkey home page Code Monkey logo

fhi.frontend.style's People

Contributors

eervik avatar luddemann avatar proand avatar robinbaxon avatar tonyhopland avatar yleaxeman avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

luddemann bittakv

fhi.frontend.style's Issues

Change file names

scss/style.scss -> scss/_style.scss
scss/variables.scss -> scss/_variables.scss

NB! This is a breaking change!

Button height

There should not be "tall" and "low" buttons on different screen sizes anymore.

Height should be 44px

Focus styles

Use focus-visible instead of the data-attributes in html tag

Create seperate variables file for all Bootstrap varibles

Some Bootstrap variables needs a new value to fit our "FHI theme".
Today these variables are spread out in multiple variable files based on use case.
I belive one dedicated file fore these "Bootstrap resets" is a better solution.

Optimize the icon system

  • add possibility for only including selected icons in any project build
  • add better documentation (README in icon folder)

Change folder structure in ./scss/

blocks
bootstrap
fonts
mixins
variables
_backdrops.scss
_color-utilities.scss
_fonts.scss
_keyboard-focus.scss
_typography.scss
style.scss
variables.scss

Expand table

Functionality to expand a (wide) table to full viewport

Minor menu and table fix

Fhi menu breaks between 992 - 1200
BS5 table have a 2px border on second row, should not be on fhi table

Update some "basic"-CSS

body text 19px all breakpoints
lead 22px all breakpoints
h5 22px all breakpoints

$fhi-blue-grey-1 -> #EDF4F7
$inline-link-color -> #075D8F
$inline-link-hover-color- #??????

Importing default font used for headings

Subject of the issue

The font "CrimsonText" is set to be the main serif-font used for headings in Fhi.Frontend.Style. This font does not seem to exist.
This font is not included, and neither do I think it actually exist, currently the fallback-font "Cambria" are used instead.

What do exist are the "Crimson Text" from Google Fonts.
This font are licensed under the Open Font License, and should be included in the prosject.

Make it easier to load variables in libs or components

Today you need to do the following in your lib:

@import "~bootstrap/scss/functions";
@import "~@folkehelseinstituttet/style/import/variables";

...bootstrap/scss/functions should be imported into @folkehelseinstituttet/style/import/variables instead.

Button group

Initiated project: Allvis (figure selection: table, map, chart)

Bootstrap 5

Upgrading to Bootstrap 5

First: have a look at how extensive it will be.

Slash as Division

After introducing language-service in a angular-project, the build-log returns issues from the Fhi.Frontend.Style dependency with using slash as devision mark.

Sass currently treats / as a division operation in some contexts and a separator in others. This makes it difficult for Sass users to tell what any given / will mean, and makes it hard to work with new CSS features that use / as a separator.

My issues points towards:

  • _core.variables.scss:5 $fhi-px: 1rem/16;
    reccomended changed to $fhi-px: math.div(1rem, 16);
  • _form-control.scss:12 border-radius: $fhi-input-height-xs / 2;
    reccomended changed to $fhi-px: math.div($fhi-input-height-xs , 2);
  • _form-control.scss:39 border-radius: $fhi-input-height-lg / 2;
    reccomended changed to $fhi-px: math.div($fhi-input-height-lg , 2);

ref:

Add info about best practices for color variables

The designers are changing the color palette: #28
Since we obviously have to deal with constant changes to core design features the system needs to be as robust as possible when it comes to color variables. Here are some best practices to achieve this:

  • Create color aliases in the library for common use cases
  • Create color aliases in each project using the library for less generic use cases
  • Limit the use of color variables anywhere else than in the definition of color aliases

The result is a system where designers can add/remove colors without impacting other files than _variables.color-aliases.scss either in this library or in any given project using the library.

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.