diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-09-19 22:40:09 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-12-20 09:38:43 +0300 |
commit | dfff288d1eec7b7f9a1c7339b7acb8c201784dde (patch) | |
tree | 15bb20fb94d6f782c19e2ce0fa3824e24bf8ae69 /css | |
parent | a5eb500d5ef336e9e9629c8fd709383ad2a0e31d (diff) |
Template picker and system tpl script fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'css')
-rw-r--r-- | css/admin.scss | 2 | ||||
-rw-r--r-- | css/templatePicker.scss | 63 |
2 files changed, 64 insertions, 1 deletions
diff --git a/css/admin.scss b/css/admin.scss index a3719f9b..14e8a0b5 100644 --- a/css/admin.scss +++ b/css/admin.scss @@ -45,7 +45,7 @@ } } } - ul { + ul:not(.hidden) { display: flex; flex-wrap: wrap; li { diff --git a/css/templatePicker.scss b/css/templatePicker.scss new file mode 100644 index 00000000..333643b9 --- /dev/null +++ b/css/templatePicker.scss @@ -0,0 +1,63 @@ +/** + * @copyright Copyright (c) 2018, John Molakvoæ (skjnldsv@protonmail.com) + * + * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + + #template-picker { + .template-container:not(.hidden) { + display: flex; + flex-wrap: wrap; + a { + $size: 150px; + $sizeY: $size / 210 * 297; + $space: 10px; + border-radius: 3px; // 12&13 fallback + border-radius: $border-radius; + border: 1px solid $color-border; // 12&13 fallback + margin: $space; + position: relative; + + &:hover, + &:focus { + border-color: $color-primary-element; // 12&13 fallback + } + + > span { + display: flex; + flex-direction: column; + width: $size; + margin: $space; + cursor: pointer; + > img, + > span { + width: $size; + height: $sizeY; + background-color: nc-darken($color-main-background, 7%); // 12&13 fallback + background-color: $color-background-dark; + background-size: 24px; + } + > h2 { + margin-top: $space; + font-size: inherit; + } + } + } + } +}
\ No newline at end of file |