ActiveAdmin dark color scheme
Скачен 1 255 раз
Что оно делает
A dark color scheme for ActiveAdmin Ruby CMS. The dark theme automatically switches on / off with your system’s dark / light mode. You can override that on the browser level if you wish.
Как оно это делает
This gem provides Sass files that you can include via Sprockets.
You import additional CSS, all of which is scoped under @media (prefers-color-scheme: dark) media declaration that matches your system (or browser) color scheme setting.
Here is an example from _table-index.sass:
@media (prefers-color-scheme: dark)
table.index_table
th
background-color: $panel-bg-color-solid
background-image: $panel-head-gradient
border-top-color: $th-border-color-top
border-right-color: $th-border-color-right !important
border-bottom-color: $th-border-color-bottom
border-left-color: $th-border-color-left
box-shadow: none
color: hsl(0, 0%, 95%)
text-shadow: none