Skip to content

Commit

Permalink
new css variables
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Nov 21, 2024
1 parent a651d9e commit c23dc96
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 23 deletions.
12 changes: 0 additions & 12 deletions app/helpers/additionals_js_heads_helper.rb

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/additionals/_html_head.html.slim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- additionals_top_menu_setup
= additionals_library_load :font_awesome
= stylesheet_link_tag 'additionals', plugin: 'additionals'
= stylesheet_link_tag 'variables', 'additionals', plugin: 'additionals'
= javascript_include_tag 'additionals', plugin: 'additionals'
14 changes: 7 additions & 7 deletions assets/stylesheets/additionals.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

.query-description,
.dashboard-description {
color: var(--darkfontcolor);
color: var(--a-color-dark);
margin-bottom: 15px;
font-size: 95%;
}

span.dashboard-locked {
stroke: var(--darkfontcolor);
stroke: var(--a-color-dark);
}

fieldset.hide-attachments {
Expand Down Expand Up @@ -105,7 +105,7 @@ svg {
}

&.dashboard-system-default.global {
stroke: var(--alertfontcolor);
stroke: var(--a-color-alert);
}
}

Expand All @@ -118,7 +118,7 @@ svg {
text-decoration: none;
}

.sudo-admin { color: var(--alertfontcolor); }
.sudo-admin { color: var(--a-color-alert); }

.nodata.nodata-left { text-align: left; }

Expand Down Expand Up @@ -184,7 +184,7 @@ img.additionals-avatar { margin-right: 0.25em; }

.dashboard-block h3 svg,
#page-title svg {
stroke: var(--darkfontcolor);
stroke: var(--a-color-dark);
stroke-width: 2;
}

Expand Down Expand Up @@ -242,7 +242,7 @@ div.macro-desc {

#top-menu .menu-children li a {
display: block;
color: var(--darkfontcolor);
color: var(--a-color-dark);
padding: 5px 10px;
background-color: #fff;
font-weight: normal;
Expand Down Expand Up @@ -360,7 +360,7 @@ div.drdn-items a.disabled,
div.drdn-items a.disabled:hover { color: #aaa; }

table.entity-list td.block_column {
color: #777;
color: var(--a-color-info);
font-size: 90%;
padding: 4px 4px 4px 2px;
text-align: left;
Expand Down
13 changes: 11 additions & 2 deletions assets/stylesheets/variables.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
:root {
--darkfontcolor: #666;
--alertfontcolor: #d80000;
--a-color-dark: #555;
--a-color-black: #000;
--a-color-white: #fff;
--a-color-default: #169;
--a-color-even: #f6f7f8;
--a-color-odd: #fff;
--a-color-list-border: #d0d7de;
--a-color-input-border: #ccc;
--a-color-info: #777;
--a-color-warning: #c45736;
--a-color-alert: #d80000;
}
1 change: 0 additions & 1 deletion lib/additionals/patches/application_controller_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module ApplicationControllerPatch
included do
include InstanceMethods
before_action :enable_smileys
helper :additionals_js_heads
end

module InstanceMethods
Expand Down

0 comments on commit c23dc96

Please sign in to comment.