To use your own theme in a DataLion project, create a Cascade Style Sheets File, e.g. in a text editor.
In this CSS file you define your CSS for the theme. It contains all the selectors and attributes that you want to customize. Find here information on CSS and here a selection of the selectors relevant in DataLion.
For example, your CSS might look like this:
#page-wrapper, .footer { background-color: teal; font-family: fixedsys, consolas, monospace; } #page-wrapper { margin-top: 40px !important; padding-top: 20px; } .grid-stack > .grid-stack-item > .grid-stack-item-content { left: 0; right: 0; margin-top: 0px; padding: 0px; } .grid-stack-item-content { left: 1px !important; right: 1px !important; top: 1px !important; bottom: 1px !important; background: #fff; height: 100%; width: 100%; position: relative; border: 1px solid #000; z-index: 9999; border-radius: 0; } .chart__footer { background-color: transparent; border: none; } .grid-stack-item { background: #cdcdcd; padding: 2px 4px 4px 2px !important; border: 1px solid #000; } .chart__header, .panel-default>.chart__header { padding: 0 !important; background: #000080; color: #fff; text-align: center; line-height: 24px; height: 26px; font-weight: 500; font-size: 21px; border-bottom: solid 1px #000; border-radius: 0; } .chart__header > .pull-right { width: 100%; position: absolute; top: 28px; right: 0px; padding: 0 !important; margin: 0 !important; visibility: visible; height: 23px; vertical-align: baseline; display: flex !important; } .chart__header * .glyphicon { top: 0 !important; } .chart__header * button { background: #c0c0c0; color: #000; display: inline-block; min-width: 20px !important; min-height: 20px !important; width: 26px !important; height: 26px !important; font-size: 15px; border: outset 3px !important; line-height: 26px; z-index: 5555; padding: 0 !important; margin: 0 !important; border-radius: 0; } .chart__header * .btn-group { height: 26px; width: 26px; } .chart__title > i { display: none; } .header__buttons__close { position: absolute !important; top: -28px !important; left: 0px !important; display: inline-block; background: #c0c0c0; border: outset 3px; margin: 0; padding: 0; } .close.close { padding: 0 !important; position: absolute; display: inline-block; opacity: 0; } .header__buttons__close:after { content: "—"; padding-left: 4px !important; position: absolute !important; opacity: 1; color: #fff; font-weight: 800; font-size: 22px; text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; display: block; line-height: 16px; } .related-charts__button { background: #c0c0c0; color: #000; font-size: 12px; border: outset 3px; z-index: 5555; margin: 0 !important; border-radius: 0; } .globalfilterbutton { font-family: fixedsys, consolas, monospace; background: #c0c0c0; color: #000; font-size: 12px; border: outset 3px; z-index: 5555; margin: 0 !important; border-radius: 0; margin-left: -10px !important; } .dropdown-menu { position: absolute; border: solid 1px #000; width: 150px; margin: -1px; margin-top: 0px; z-index:999999999; background: #fff; box-shadow: 1px 1px 5px 0px rgba(0,0,0,.5); border-radius: 0; } .dropdown-menu > li > a { padding: 5px; font-weight: 600; } .dropdown-menu > li.active > a { background: #000080; color: #fff; left: 0; } .dropdown-menu * .glyphicon { display: none; } .chart__body * tspan { font-family: fixedsys, consolas, monospace; size: 14px; font-weight: 600; }
In DataLion, navigate to Charts and Colors>Themes in the admin panel. Click New to import your CSS file, name the theme and save it. The theme is now available for selection as the default theme in your projects.
Kommentare
0 Kommentare
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.