From fb7b26582624f5a5df9b4dfcca47d59eac2dbb62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Wed, 7 Dec 2016 23:04:35 +0100 Subject: [PATCH] Use Roboto font in all templates. - Only install needed font files for Roboto and Roboto Condensed which strongly reduced the directory size of 'static/font'. - Make it easier to adjust custom font by using global css font definition in app.css and projector.css. - Remove Open Sans font. --- bower.json | 11 ++- gulpfile.js | 2 +- .../static/templates/agenda/item-list.html | 20 ++--- .../assignments/assignment-list.html | 8 +- openslides/core/static/css/app.css | 77 ++++++++++++++----- openslides/core/static/css/projector.css | 49 ++++++++---- .../templates/mediafiles/mediafile-list.html | 10 +-- .../static/templates/motions/motion-list.html | 2 - .../static/templates/users/user-list.html | 14 ++-- 9 files changed, 122 insertions(+), 71 deletions(-) diff --git a/bower.json b/bower.json index 86ef6470d..fe26c3a5e 100644 --- a/bower.json +++ b/bower.json @@ -35,8 +35,7 @@ "ngstorage": "~0.3.11", "ngBootbox": "~0.1.3", "pdfmake-dist": "~0.1.27", - "open-sans-fontface": "https://github.com/OpenSlides/open-sans.git#1.4.2.post1", - "roboto-condensed": "~0.3.0", + "roboto-fontface": "~0.6.0", "tinymce": "~4.4.3", "tinymce-i18n": "OpenSlides/tinymce-i18n#a186ad61e0aa30fdf657e88f405f966d790f0805" }, @@ -50,6 +49,14 @@ "pdfjs-dist": { "main": "build/pdf.combined.js" }, + "roboto-fontface": { + "main": [ + "fonts/Roboto/Roboto-Regular.woff", + "fonts/Roboto/Roboto-Medium.woff", + "fonts/Roboto-Condensed/Roboto-Condensed-Regular.woff", + "fonts/Roboto-Condensed/Roboto-Condensed-Light.woff" + ] + }, "tinymce": { "main": [ "tinymce.js", diff --git a/gulpfile.js b/gulpfile.js index 3b9ba6c7c..ef19964d1 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -97,7 +97,7 @@ gulp.task('css-libs', function () { // Catches all font files from all bower components. gulp.task('fonts-libs', function() { return gulp.src(mainBowerFiles({ - filter: /\.(eot)|(svg)|(ttf)|(woff)|(woff2)$/ + filter: /\.woff$/ })) .pipe(gulp.dest(path.join(output_directory, 'fonts'))); }); diff --git a/openslides/agenda/static/templates/agenda/item-list.html b/openslides/agenda/static/templates/agenda/item-list.html index fd6dec768..16db1cb84 100644 --- a/openslides/agenda/static/templates/agenda/item-list.html +++ b/openslides/agenda/static/templates/agenda/item-list.html @@ -260,22 +260,18 @@
- - - +
- - - {{ item.getListViewTitle() }} - - - {{ item.getListViewTitle() }} - - + + {{ item.getListViewTitle() }} + + + {{ item.getListViewTitle() }} +
diff --git a/openslides/assignments/static/templates/assignments/assignment-list.html b/openslides/assignments/static/templates/assignments/assignment-list.html index 8438a9221..9e5617596 100644 --- a/openslides/assignments/static/templates/assignments/assignment-list.html +++ b/openslides/assignments/static/templates/assignments/assignment-list.html @@ -224,11 +224,9 @@
- - - {{ assignment.title }} - - + + {{ assignment.title }} +
- - - +
{{ mediafile.uploader.get_full_name() }}
diff --git a/openslides/motions/static/templates/motions/motion-list.html b/openslides/motions/static/templates/motions/motion-list.html index c170f45b6..c74347255 100644 --- a/openslides/motions/static/templates/motions/motion-list.html +++ b/openslides/motions/static/templates/motions/motion-list.html @@ -343,9 +343,7 @@
- {{ motion.getTitle() }} - diff --git a/openslides/users/static/templates/users/user-list.html b/openslides/users/static/templates/users/user-list.html index 124145798..27afd4f82 100644 --- a/openslides/users/static/templates/users/user-list.html +++ b/openslides/users/static/templates/users/user-list.html @@ -277,18 +277,14 @@