docbrown/app/views/users/_theme_selector.html.erb
ludwiczakpawel 16560d9ef1
Settings style updates: Crayons! (#7393)
* .

* .

* .

* snapshot

* whoops

* halifax

* tests

* little fixes

* little fixes

* test? i guess..

* .

* minor fixes

* Update schema.rb

* Use shared logo_design in new org partial

* little fix

* Fix org spec

* decrayonsifying rich-selector

* if statement

Co-authored-by: rhymes <rhymesete@gmail.com>
2020-04-22 19:18:19 +02:00

20 lines
784 B
Text

<label class="rich-selector crayons-field crayons-field--radio p-4 theme-selector theme-selector--<%= theme.tr(" ", "-") %>" title="<%= theme.titlecase %>">
<%= f.radio_button :config_theme, theme, checked: @user.config_theme.tr("_", " ") == theme, class: "crayons-radio" %>
<div class="crayons-field__label">
<%= theme.titlecase %>
<div class="theme-preview mt-4">
<div class="theme-preview__nav">
<div class="theme-preview__search"></div>
</div>
<div class="theme-preview__main">
<div class="theme-preview__card"></div>
<div class="theme-preview__middle">
~ ~ ~
<div class="theme-preview__card"></div>
</div>
<div class="theme-preview__card"></div>
</div>
</div>
</div>
</label>