diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-21 13:17:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 13:17:58 +0800 |
commit | 5cf241b3123a6096076a9cb582d28fb8919969e0 (patch) | |
tree | b89ebb827c7feb81a63a605c4d641a9886db0e04 /web_src/fomantic | |
parent | e7322a1138ec0285091abbfc51e3ac1d47ae0fb2 (diff) | |
download | gitea-5cf241b3123a6096076a9cb582d28fb8919969e0.tar.gz gitea-5cf241b3123a6096076a9cb582d28fb8919969e0.zip |
Use npm to manage fomantic and only build needed components (#9561)
* Use npm to manage fomantic
* Only build needed semantic components
* Fix make
* Don't import fonts from google sites since we have loaded
* [misc] devendor fomantic-ui and rebuild upon src or config changes only
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* Change sort alphabetically of semantic components
* Fix trailing slash
* fix makefile
* Remove dependency to gulp from package.json
* Fix something
* Simplife the makefile
* add missed fomantic compnent
Co-authored-by: Jakob Ackermann <das7pad@outlook.com>
Diffstat (limited to 'web_src/fomantic')
-rw-r--r-- | web_src/fomantic/theme.config.less | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/web_src/fomantic/theme.config.less b/web_src/fomantic/theme.config.less new file mode 100644 index 0000000000..15f3bd58a7 --- /dev/null +++ b/web_src/fomantic/theme.config.less @@ -0,0 +1,104 @@ +/* + +████████╗██╗ ██╗███████╗███╗ ███╗███████╗███████╗ +╚══██╔══╝██║ ██║██╔════╝████╗ ████║██╔════╝██╔════╝ + ██║ ███████║█████╗ ██╔████╔██║█████╗ ███████╗ + ██║ ██╔══██║██╔══╝ ██║╚██╔╝██║██╔══╝ ╚════██║ + ██║ ██║ ██║███████╗██║ ╚═╝ ██║███████╗███████║ + ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ + +*/ + +/******************************* + Theme Selection +*******************************/ + +/* To override a theme for an individual element + specify theme name below +*/ + +/* Global */ +@site : 'default'; +@reset : 'default'; + +/* Elements */ +@button : 'default'; +@container : 'default'; +@divider : 'default'; +@emoji : 'default'; +@flag : 'default'; +@header : 'default'; +@icon : 'default'; +@image : 'default'; +@input : 'default'; +@label : 'default'; +@list : 'default'; +@loader : 'default'; +@placeholder: 'default'; +@rail : 'default'; +@reveal : 'default'; +@segment : 'default'; +@step : 'default'; +@text : 'default'; + +/* Collections */ +@breadcrumb : 'default'; +@form : 'default'; +@grid : 'default'; +@menu : 'default'; +@message : 'default'; +@table : 'default'; + +/* Modules */ +@accordion : 'default'; +@calendar : 'default'; +@checkbox : 'default'; +@dimmer : 'default'; +@dropdown : 'default'; +@embed : 'default'; +@modal : 'default'; +@nag : 'default'; +@popup : 'default'; +@progress : 'default'; +@slider : 'default'; +@rating : 'default'; +@search : 'default'; +@shape : 'default'; +@sidebar : 'default'; +@sticky : 'default'; +@tab : 'default'; +@toast : 'default'; +@transition : 'default'; + +/* Views */ +@ad : 'default'; +@card : 'default'; +@comment : 'default'; +@feed : 'default'; +@item : 'default'; +@statistic : 'default'; + +/******************************* + Folders +*******************************/ + +/* Path to theme packages */ +@themesFolder : 'themes'; + +/* Path to site override folder */ +@siteFolder : '_site/'; + + +/******************************* + Import Theme +*******************************/ + +@import (multiple) "theme.less"; + +/******************************* + Theme Overrides +*******************************/ + +@importGoogleFonts : false; + +/* End Config */ |