Files
grecia/app/assets/stylesheets/application.scss
Javi Martín 7aee4f6241 Add SDG phases cards management
These cards will be displayed in the SDG homepage.

Note there seems to be a strange behavior in cancancan. If we define
these rules:

can :manage, Widget::Card, page_type: "SDG::Phase"
can :manage, Widget::Card

The expected behavior is the first rule will always be ignored because
the second one overwrites it. However, when creating a new card with
`load_and_authorize_resource` will automatically add `page_type:
"SDG::Phase"`.

Similarly, if we do something like:

can :manage, Widget::Card, id: 3
can :manage, Widget::Card

Then the new card will have `3` as an ID.

Maybe upgrading cancancan solves the issue; we haven't tried it. For now
we're defining a different rule when creating widget cards.
2021-01-14 17:40:02 +01:00

36 lines
871 B
SCSS

@import "social-share-button";
@import "foundation_and_overrides";
@import "fonts";
@import "font-awesome-sprockets";
@import "font-awesome";
@import "icons";
@import "mixins";
@import "admin";
@import "advanced_search";
@import "layout";
@import "participation";
@import "milestones";
@import "pages";
@import "dashboard";
@import "legislation";
@import "legislation_process";
@import "legislation_process_form";
@import "community";
@import "stats";
@import "custom";
@import "c3";
@import "annotator.min";
@import "annotator_overrides";
@import "jquery-ui/datepicker";
@import "datepicker_overrides";
@import "jquery-ui/autocomplete";
@import "autocomplete_overrides";
@import "jquery-ui/sortable";
@import "leaflet";
@import "sticky_overrides";
@import "admin/*";
@import "sdg/**/*";
@import "sdg_management/*";
@import "sdg_management/**/*";
@import "widgets/**/*";