influxdb/ui/src/style
Alex P 07296d65d3 Make user nav icons consistent with other nav icons 2018-06-25 11:45:08 -07:00
..
components Fix display of TemplateVariableEditor header 2018-06-21 11:38:14 -07:00
external Changes from review feedback 2018-03-01 13:40:16 -08:00
fonts Update icon font 2018-06-08 14:40:25 -07:00
layout Make user nav icons consistent with other nav icons 2018-06-25 11:45:08 -07:00
modules Implement DragAndDrop in ImportDashboardOverlay 2018-06-05 10:41:24 -07:00
pages Merge branch 'master' into presentational-page-components 2018-06-18 10:32:49 -07:00
theme Improve styles for active & disabled states of radio buttons 2018-06-18 11:54:48 -07:00
README.md Bring over enterprise ui and configuration 2016-09-19 13:45:05 -07:00
chronograf.scss Introduce new template variables UI 2018-06-18 07:16:08 -07:00
unsorted.scss Rename page header class names to follow BEM conventions 2018-06-13 11:28:43 -07:00

README.md

Sass Organization

After spending some time with it, the general idea is that there are A LOT of opinions on how to structure sass files. This seemed like a reasonable option. Straightforward, lean, but with enough separation of concerns to make it worth the trouble in the first place.

  • /components -- this is where most of our code will go. Generally I think we'll have two types of components:
  1. more generic components like _button.scss and _form-input.scss, and 2) partials that map to React components, e.g. _Explorer.scss and _QueryEditor.scss. Most of the styles we'll end up writing will go in /components. We've toyed around with the idea of putting React component styles directly next to the component itself, so that's something to try out potentially as well.
  • /base -- global styles like resets/typography and things you'd depend on in the rest of the codebase like mixins, variables, colors, etc.

  • /layout -- larger page-level styles

  • /themes -- anything that might need to override styles, like a light/dark theme

Keep in mind this is a work in progress, and it will take some time trying things out to find a good balance.