Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
2.4 KiB

5 years ago
  1. # Stylesheets
  2. All CSS for your theme will be located here.
  3. The `theme.css` file is the focal point for loading the styles. These could all have been in one file, but have been split up for the sake of more easily structuring and maintaining the codebase.
  4. * **reset.css** : resets background and border of all elfinder elements so that you can skin from scratch without manually positioning the main elements yourself
  5. * **main.css** : main UI elements (wrapper for the main elfinder div, global styles, etc..)
  6. * **icons.css** : icons across the UI (e.g. file associations)
  7. * **toolbar.css** : toolbar at the top of the elfinder container. Contains toolbar buttons and searchbar
  8. * **navbar.css** : directory navigation on the left-hand panel
  9. * **view-list.css** : defines the list view
  10. * **view-thumbnail.css** : defines the thumbnail/tile view
  11. * **contextmenu.css** : context menu shown when right-clicking on in the list/thumbnail view or navbar
  12. * **dialog.css** : information dialogs/modal windows
  13. * **statusbar.css** : footer; contains information about directory and currently selected files
  14. Note that many of the styles have a large degree of selectivity. E.g:
  15. ```css
  16. .elfinder .elfinder-navbar .elfinder-navbar-dir.ui-state-active:hover { /* */ }
  17. ```
  18. This is to minimize the need for using `!important` flags to override the existing styles (particularly with respect to jQuery UI's CSS).
  19. ## Tips
  20. * Use the `reset.css` style to reset the styles that you need to. Comment out selectors that you wish to remain untouched.
  21. * If you need to reset a style outside of `reset.css`, the following normally suffices:
  22. ```css
  23. background: none;
  24. border: none;
  25. ```
  26. * If you want to change the icons in a particular container, it is best to reset the icon's style from a general selector, then style each individual icon separately. For example:
  27. ```css
  28. /* All toolbar icons */
  29. .elfinder .elfinder-toolbar .elfinder-buttonset .elfinder-button-icon {
  30. /* reset the style and set properties common to all toolbar icons */
  31. }
  32. /* mkfile toolbar icon */
  33. .elfinder .elfinder-toolbar .elfinder-buttonset .elfinder-button-icon-mkfile {
  34. /* styles specific to the mkfile button (e.g. background-position) */
  35. }
  36. ```
  37. * Some styles have their `text-indent` property set to `-9999px` to keep the text out of view. If after styling you can't see the text (and you need to), change the `text-indent` property