start a theme for liege

This commit is contained in:
Frédéric Péters 2016-02-01 14:51:29 +01:00
parent 2ef9cb4692
commit 5c209ae9d9
6 changed files with 90 additions and 0 deletions

41
Makefile Normal file
View File

@ -0,0 +1,41 @@
VERSION=`git describe | sed 's/^v//; s/-/./g' `
NAME="imio-publik-themes"
prefix = /usr
all:
cd static/liege/ && sass style.scss:style.css
rm -rf static/*/.sass-cache/
clean:
rm -rf sdist
DIST_FILES = \
Makefile \
static templates themes.json \
publik-base-theme
dist: clean
-mkdir sdist
rm -rf sdist/$(NAME)-$(VERSION)
mkdir -p sdist/$(NAME)-$(VERSION)
for i in $(DIST_FILES); do \
cp -R "$$i" sdist/$(NAME)-$(VERSION); \
done
install:
mkdir -p $(DESTDIR)$(prefix)/share/publik/themes/imio
cp -r static templates themes.json $(DESTDIR)$(prefix)/share/publik/themes/imio
dist-bzip2: dist
-mkdir sdist
cd sdist && tar cfj ../sdist/$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
version:
@(echo $(VERSION))
name:
@(echo $(NAME))
fullname:
@(echo $(NAME)-$(VERSION))

10
static/liege/_custom.scss Normal file
View File

@ -0,0 +1,10 @@
a {
color: #58585A;
}
h1#logo {
background: url(logo.jpg) top left no-repeat;
height: 140px;
line-height: 140px;
padding-left: 120px;
}

BIN
static/liege/logo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

29
static/liege/style.scss Normal file
View File

@ -0,0 +1,29 @@
@charset "UTF-8";
$width: 950px;
$mobile-limit: 800px;
$font-size: 13px !default;
$font-family: sans-serif !default;
$nav-background: #58585A;
$nav-color: #eee;
$nav-active-color: transparent;
$nav-item-selected-color: white;
$border-radius: 3px;
$button-background: #BE0D67;
$title-background: #BE0D67;
$title-color: white;
$cell-entry-hover-effect: left-to-right;
@import '../../publik-base-theme/static/includes/utils';
@import '../../publik-base-theme/static/includes/general';
@import '../../publik-base-theme/static/includes/title';
@import '../../publik-base-theme/static/includes/layout';
@import '../../publik-base-theme/static/includes/nav';
@import '../../publik-base-theme/static/includes/cells';
@import '../../publik-base-theme/static/includes/user-info';
@import '../../publik-base-theme/static/includes/wcs';
@import '../../publik-base-theme/static/includes/forms';
@import '../../publik-base-theme/static/includes/misc';
@import '../../publik-base-theme/static/includes/a11y';
@import 'custom';

0
templates/.empty Normal file
View File

10
themes.json Normal file
View File

@ -0,0 +1,10 @@
[
{"id": "liege",
"label": "Liège",
"module": "publik-base",
"variables": {
"css_variant": "liege"
},
"overlay": "imio"
}
]