{# ======================================================================== EasyAdmin Default Theme | (c) 2015 Javier Eguiluz | MIT License ======================================================================== #} {% set color_schemes = { 'dark': { info: '#39A0ED', warning: '#F0AD4E', danger: '#D42124', success: '#006B2E', text: '#222222', text_muted: '#737373', link: '#205081', black: '#111111', white: '#FFFFFF', gray_darker: '#252525', gray_dark: '#444', gray: '#AAA', gray_light: '#CCC', gray_lighter: '#F5F5F5', page_background: '#F5F5F5', table_header: '#EEE', table_border: '#CCC', table_row_border: '#DDD', }, 'light': { info: '#39A0ED', warning: '#F0AD4E', danger: '#D42124', success: '#006B2E', text: '#444444', text_muted: '#737373', link: '#205081', black: '#333333', white: '#FFFFFF', gray_darker: '#444', gray_dark: '#AAA', gray: '#CCC', gray_light: '#F5F5F5', gray_lighter: '#FAFAFA', page_background: '#FFFFFF', table_header: '#FAFAFA', table_border: '#FFFFFF', table_row_border: '#E5E5E5', } } %} {% set colors = color_schemes[color_scheme] %} {% autoescape false %} {# ------------------------------------------------------------------------- RESET STYLES ------------------------------------------------------------------------- #} {# make the Symfony Web Toolbar look nice by neutralizing the aliasing applied globally by the AdminLTE template styles #} .sf-toolbarreset { -webkit-font-smoothing: subpixel-antialiased; -moz-osx-font-smoothing: auto; } {# ------------------------------------------------------------------------- BASIC STYLES ------------------------------------------------------------------------- #} body { font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; } h1, h2, h3, h4, h5, h6 { font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; } {# Links ------------------------------------------------------------------------- #} a { color: {{ colors.link }}; } a:hover { opacity: 0.9; } a:active { outline: 0; } #main a:active { position: relative; top: 1px; } a.text-primary, a.text-primary:focus { color: {{ colors.link }}; } a.text-danger, a.text-danger:focus { color: {{ colors.danger }}; } a.text-primary:hover, a.text-danger:hover { opacity: 0.9; } {# Lists ------------------------------------------------------------------------- #} ul, ol { margin: 1em 0 1em 1em; padding: 0; } li { margin-bottom: 1em; } ul.inline { list-style: none; margin: 0; } ul.inline li { margin: 0; } {# Flash messages ------------------------------------------------------------------------- #} div.flash { padding: .5em; } div.flash-success { background: {{ colors.success }}; color: {{ colors.white }}; } div.flash-error { background: {{ colors.danger }}; color: {{ colors.white }}; } div.flash-error strong { padding-right: .5em; } {# Labels ------------------------------------------------------------------------- #} {# this prevents overriding default styles for labels (label-info, label-primary, etc.) #} .label:not([class*=label-]) { background: {{ colors.gray_darker }}; } .label { color: {{ colors.white }}; display: inline-block; font-size: 11px; padding: 4px; text-transform: uppercase; } .label-success { {# !important is required to override AdminLTE styles #} background: {{ colors.success }} !important; } .label-danger { {# !important is required to override AdminLTE styles #} background: {{ colors.danger }} !important; } .label-empty { background: transparent; border: 2px dotted; border-radius: 4px; color: {{ colors.gray_light }}; padding: 4px 8px; } {# this makes boolean labels to be of the same width for most languages #} .boolean .label, .toggle .label { min-width: 33px; } {# Switches / toggles ------------------------------------------------------------------------- #} {# needed to neutralize the default .toggle styles applied by Bootstrap Toggle which collide with the .toggle class applied to