Andreas Nedbal
859d2825d1
Remove mention of shutdown from export page
2020-05-06 14:23:11 +02:00
Andreas Nedbal
689dd3880f
Adjust texts in tabs/feed template
2020-05-06 13:56:09 +02:00
Andreas Nedbal
47e5675d84
Remove superfluous database migration
2020-05-06 13:53:43 +02:00
Andreas Nedbal
b16e1c1b58
Turn UpdateThemeFields into an IrreversibleMigration
2020-05-06 13:53:01 +02:00
Andreas Nedbal
4044696a8a
Add specs for `ThemeHelper#render_theme`
2020-05-06 13:48:16 +02:00
Andreas Nedbal
ec998686ff
Add non-ffffff test for `ThemeHelper#get_hex_color_from_theme_value`
2020-05-06 13:37:26 +02:00
Andreas Nedbal
892b708c6f
Implement changes to ThemeHelper requested by review
...
- turned theme_attribute_map into frozen constant ATTRIBUTE_MAP
- early return if no theme exists, instead of if-block
- usage of Hash#key? instead Hash[k] to confirm existence of key in hash
- Early skip/next if key is not present in Hash instead of if-block
2020-05-06 13:36:43 +02:00
Andreas Nedbal
d9f67e86d9
Fix get_active_theme to return proper theme for user
2020-05-05 20:17:49 +02:00
Andreas Nedbal
b7b2adde44
Add specs for ThemeHelper
2020-05-05 20:17:29 +02:00
Andreas Nedbal
c142920c6c
Adjust answerbox layout on mobile
2020-05-05 05:04:54 +02:00
Andreas Nedbal
0bc4a5b968
Fix hidespan helper using not existing Bootstrap class
2020-05-05 05:04:43 +02:00
Andreas Nedbal
22ae1f6655
Adjust navigation layout on main feed pages
2020-05-05 04:31:15 +02:00
Andreas Nedbal
aa25e8199f
Remove old theme styling file
2020-05-05 03:27:56 +02:00
Andreas Nedbal
83cebe4d9b
Fix theme preview not applying
...
This happens because the generated "preview style tag" is added before the main style one. This change makes sure the theme is rendered right after the application style
2020-05-05 02:03:49 +02:00
Andreas Nedbal
9d5d205ded
Fix muted text variant not overriding Bootstrap default
2020-05-05 02:02:49 +02:00
Andreas Nedbal
04c4e4c7f1
Add variables for light/dark color variants
2020-05-05 02:02:33 +02:00
Andreas Nedbal
880429f5f9
Add new fields for themes
...
- In the settings view
- In the model validation
- In the controller parameter permissions
- In the CoffeeScript/Ruby helpers
2020-05-05 02:02:16 +02:00
Andreas Nedbal
af91fe6d03
Update theme fields
...
- Create migration
- Remove CSS file fields
- Rename panel fields to "raised" fields
- Rename "default" to "dark" fields
- Add "light" color fields
- Rename "background_" fields
- Remove unused fields
- Adjust column default values
- Add rollback migrations
2020-05-05 01:49:01 +02:00
Andreas Nedbal
53979580d8
Merge branch 'master' into feature/bootstrap
2020-05-04 23:19:54 +02:00
Andreas Nedbal
a3a1250dcf
Fix default text color of list group actions
2020-05-04 20:47:00 +02:00
Andreas Nedbal
d93548891d
Remove obsolete render_theme_with_context
2020-05-04 17:26:57 +02:00
Andreas Nedbal
e7c5b1a4a3
Remove theme preview route and logic
2020-05-04 17:26:38 +02:00
Andreas Nedbal
582f8606b0
Changed theme preview to work without hitting an endpoint
2020-05-04 17:26:18 +02:00
Andreas Nedbal
fe357eaa07
Update layout of the theme settings page
2020-05-04 15:37:13 +02:00
Andreas Nedbal
9235533f59
Adjust button styles for theming
...
- Default (unstyled) buttons use the body text color
- Colored buttons use their text color equivalent
2020-05-03 21:57:19 +02:00
Andreas Nedbal
a36bcf6cd3
Add Bootstrap modal overrides for CSS variables
2020-05-03 21:44:12 +02:00
Andreas Nedbal
ea638305cc
Fix customized hover/focus styles for list group items
2020-05-03 20:39:45 +02:00
Andreas Nedbal
1eddb0ad36
Adjust input styling to be a bit more lenient in themes
2020-05-03 20:39:21 +02:00
Andreas Nedbal
a6b21a85e5
Add more theming changes to dropdowns
2020-05-03 20:24:32 +02:00
Andreas Nedbal
241b8cbdcb
Rename card variables to "raised"
2020-05-03 20:10:50 +02:00
Andreas Nedbal
02cc1c418d
WIP: Initial implementation of CSS variable based theming
2020-05-03 17:28:41 +02:00
Andreas Nedbal
51bef29ace
More style adjustments to default and core elements
2020-05-03 17:28:19 +02:00
Andreas Nedbal
9b38b1d736
Refactor comment styles and layout
2020-05-02 21:23:04 +02:00
Andreas Nedbal
85d97b0c71
Rename changed classes across templates
2020-05-02 20:35:48 +02:00
Andreas Nedbal
b508eb3f21
Refactor and adjust answerbox styles
2020-05-02 20:35:28 +02:00
Andreas Nedbal
2a8a80e859
Refactor locale panel styles
2020-05-02 18:29:04 +02:00
Andreas Nedbal
28c21dcc3d
Refactor smile user list styles
2020-05-02 18:12:55 +02:00
Andreas Nedbal
1f5ec4e28d
Remove unused variable file
2020-05-02 17:47:07 +02:00
Andreas Nedbal
7601da1975
Remove unused panel styles
2020-05-02 17:44:43 +02:00
Andreas Nedbal
f40435da4b
Remove unused classes from base and add imports to main file
2020-05-02 17:38:23 +02:00
Andreas Nedbal
22ef4f4656
Add smiles scss component
2020-05-02 17:37:58 +02:00
Andreas Nedbal
948bc27810
Add body element scss file for body style adjustments
2020-05-02 17:37:42 +02:00
Andreas Nedbal
1e2259fe40
Rename j2-page class to container--main
2020-05-02 17:37:19 +02:00
Andreas Nedbal
4e9311c25b
Add generic navbar-height variable
2020-05-02 17:36:40 +02:00
Andreas Nedbal
2c11272bd4
Move utility class to utilities file
2020-05-02 17:36:22 +02:00
Andreas Nedbal
8c3ff8f31d
Add overrides for growls and sweet-alert
2020-05-02 17:36:05 +02:00
Georg Gadinger
1d7430c3f7
Merge pull request #92 from Retrospring/add-specs
...
Add specs for AjaxControllers
2020-05-01 22:55:04 +02:00
Georg Gadinger
0504e4a5d4
require rspec-sidekiq only in specs
2020-05-01 22:43:08 +02:00
Georg Gadinger
0109322610
add spec for Ajax::ModerationController
2020-05-01 22:41:26 +02:00
Andreas Nedbal
185b5a65c8
Refactor notification styling and layout
2020-05-01 21:57:14 +02:00