404 Commits

Author SHA1 Message Date
Quentin Schulz
ecb1cadbee themes: pictures-group: fix alignment when pictures do not fill the flex container
In most cases, a line in a pictures-group contains enough pictures or at
least in the correct format (usually in landscape mode) to actually make
the browser call flex-shrink.

However, in a few specific cases, when pictures do not fill the flex
container, there is some space left on the right side of the line which
could be filled in.

In that case, we can use the flex-grow property. To be able to keep
everything aligned, we need to set the flex-grow property according to
the ratio of the picture so that all pictures in the line are grown
proportionally.

Adding this alignment fix required a bit of re-ordering so we could call
the ratio property for the div of class `picture`.

Fixes #92

Signed-off-by: Quentin Schulz <foss@0leil.net>
2019-05-05 21:21:14 +02:00
Quentin Schulz
54f47ecd06 prosopopee: add ratio property for videos
To prepare for an alignment fix that requires to know the ratio of the
video screenshot, let's add a ratio property.

This property is calling `ffprobe` or `avprobe` depending on whether
ffmpeg or libav-tools was installed. It is not adding a new dependency.

The output of this particular `ffprobe` or `avprobe` returns the width
and height of the video, separated by a comma.

Signed-off-by: Quentin Schulz <foss@0leil.net>
2019-05-05 21:20:04 +02:00
Quentin Schulz
8b4f645a65 prosopopee: add ratio property for images
To prepare for an alignment fix that requires to know the ratio of the
image, let's add a ratio property.

This property is calling `gm identify` which is already a dependency of
prosopopee.

The output of this particular `gm identify` returns the width and height
separated by a comma.

Signed-off-by: Quentin Schulz <foss@0leil.net>
2019-05-05 21:20:04 +02:00
Adrien Beudin
dc332f0ea0 [fix] css 2019-03-05 21:45:37 +01:00
Adrien Beudin
262f945835 [fix] add css section for pictures-group 2019-03-05 19:44:24 +01:00
Adrien Beudin
813e1609d7 [fix] some little stuff 2018-11-01 18:59:32 +01:00
Adrien Beudin
aee9953687 fix light theme 2018-03-28 10:40:31 +02:00
Adrien Beudin
e184f90433 update material theme and fix responsible 2018-03-28 10:28:46 +02:00
Adrien Beudin
017af6efbb update theme and fix 2018-03-27 13:43:34 +02:00
Adrien Beudin
6edca43774 update version 2018-03-27 10:58:33 +02:00
Adrien Beudin
3aa14884e3 update material theme 2018-03-27 10:52:52 +02:00
Adrien Beudin
16536149cb fix menu 2018-03-22 10:47:14 +01:00
Adrien Beudin
933316ee86 add css effect 2018-03-09 10:41:06 +01:00
abeudin
2e53d77ced
Merge pull request #81 from Psycojoker/test_build
Add a test command to build html without generating media files
2018-02-28 15:41:51 +01:00
Adrien Beudin
d08904b419 Add succesfull message 2018-02-28 15:32:58 +01:00
Adrien Beudin
c921c4420b support night mode for material theme 2018-02-27 20:53:30 +01:00
Adrien Beudin
70b5e5e90c night mode for exposure 2018-02-27 13:53:48 +01:00
Thomas Nonglaton
0854f36c62 Add a test command to build html without generating media files 2017-10-18 13:58:17 +02:00
Adrien Beudin
e3fba5f090 [fix] compatibility python 2 2017-10-04 01:02:45 +02:00
Adrien Beudin
0c20aea972 [fix] settingsfor form 2017-10-04 00:52:03 +02:00
Adrien Beudin
6515f2604e [fix] remove unless modules 2017-10-04 00:46:48 +02:00
Adrien Beudin
080e50f318 [fix] refactor encryption function 2017-10-04 00:44:47 +02:00
Adrien Beudin
f53b175939 [fix] index css 2017-10-03 05:08:56 +02:00
Adrien Beudin
f2396c32a5 [enh] auto login 2017-10-03 00:43:29 +02:00
Adrien Beudin
53775d233b [enh] add global password 2017-10-02 11:14:50 +02:00
Adrien Beudin
590582aea2 [fix] audio section in light mode 2017-09-29 04:50:37 +02:00
Adrien Beudin
e19c64393a [fix] encrypt the light page 2017-09-29 04:48:37 +02:00
Adrien Beudin
1a2e692a02 [fix] update encrypt material theme 2017-09-29 03:17:44 +02:00
Adrien Beudin
fbfbbd4013 [fix] update encrypt theme 2017-09-29 01:30:43 +02:00
Adrien Beudin
3b8b989ec1 [enh] add password acces 2017-09-27 13:48:21 +02:00
Adrien Beudin
92b31cda86 update docs and fix reverse 2017-07-18 13:43:27 +02:00
Adrien Beudin
06e9216972 http server kill socket 2017-07-14 15:44:25 +02:00
Adrien Beudin
032a559b3b add reverse option 2017-07-14 14:54:06 +02:00
abeudin
b99c6ffb6c Merge branch 'master' into master 2017-07-14 14:52:36 +02:00
Adrien Beudin
47cb16d931 fix cache in python3 2017-07-12 13:39:45 +02:00
Adrien Beudin
08a93ece26 init python3 version 2017-07-03 13:37:38 +02:00
Adrien Beudin
95358281ef fix fullscreen video on click 2017-06-04 21:54:04 +02:00
Adrien Beudin
c4ddefd45a catch error in root settings 2017-06-04 20:03:37 +02:00
Adrien Beudin
59f96c0b24 add background color for audio player 2017-06-04 16:28:09 +02:00
Adrien Beudin
34db72cffa better catch error 2017-06-04 16:15:37 +02:00
Thomas Nonglaton
2eb4f8a15a Allow reverse & normal order in index 2017-06-03 13:23:56 +02:00
Thomas Nonglaton
4e20f74907 Avoid failure if no sections is specified in gallery 2017-06-03 12:32:43 +02:00
Adrien Beudin
9ec781082c autosize for text on paragraph 2017-06-02 09:59:04 +02:00
Adrien Beudin
562388dc20 fix cache for float picture 2017-05-23 21:44:13 +02:00
Adrien Beudin
946427fc5c remove debug 2017-05-23 13:53:56 +02:00
Adrien Beudin
fe83ad3664 add floating image in paragraph section 2017-05-23 13:44:26 +02:00
Adrien Beudin
6e29dd3c40 fix cache with video 2017-05-23 10:53:30 +02:00
Adrien Beudin
124f4ae315 fix load only css and js if is used on material theme 2017-05-23 10:25:18 +02:00
Adrien Beudin
3da2f92049 remove youtube section on iframe 2017-05-15 14:05:26 +02:00
Adrien Beudin
a73e5730e3 only load css and js if section is used 2017-05-15 13:02:53 +02:00