Skip to content

Commit 6f5c5c8

Browse files
committed
adapt style
1 parent ad852f3 commit 6f5c5c8

File tree

9 files changed

+55
-22
lines changed

9 files changed

+55
-22
lines changed

config/config.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
$config['ui']['rounded_corners'] = false;
321321
$config['colors']['primary'] = '#2e2e2e';
322322
$config['colors']['secondary'] = '#0a6071';
323-
$config['colors']['font'] = '#79bad9';
323+
$config['colors']['font'] = '#c9c9c9';
324324
$config['colors']['button_font'] = '#ffffff';
325325
$config['colors']['start_font'] = '#ffffff';
326326
$config['colors']['panel'] = '#2d4157';

index.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,18 @@
6767
<meta name="apple-mobile-web-app-capable" content="yes" />
6868
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
6969

70-
<link rel="stylesheet" href="node_modules/normalize.css/normalize.css" />
70+
<!-- <link rel="stylesheet" href="node_modules/normalize.css/normalize.css" /> -->
7171
<link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.css" />
7272
<link rel="stylesheet" href="vendor/PhotoSwipe/dist/photoswipe.css" />
7373
<link rel="stylesheet" href="vendor/PhotoSwipe/dist/default-skin/default-skin.css" />
74+
<!-- <link rel="stylesheet" href="vencor/pico/pico.min.css" /> -->
7475
<link rel="stylesheet" href="resources/css/<?php echo $config['ui']['style']; ?>_style.css" />
7576
<?php if ($config['gallery']['bottom_bar']): ?>
7677
<link rel="stylesheet" href="resources/css/photoswipe-bottom.css" />
7778
<?php endif; ?>
78-
<?php if ($config['ui']['rounded_corners'] && $config['ui']['style'] === 'classic'): ?>
79+
<!-- <?php if ($config['ui']['rounded_corners'] && $config['ui']['style'] === 'classic'): ?>
7980
<link rel="stylesheet" href="resources/css/rounded.css" />
80-
<?php endif; ?>
81+
<?php endif; ?> -->
8182
<?php if (is_file("private/overrides.css")): ?>
8283
<link rel="stylesheet" href="private/overrides.css" />
8384
<?php endif; ?>

resources/lang/de.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,8 @@
589589
"synctodrive:synctodrive_enabled": "Aktivieren",
590590
"synctodrive:synctodrive_interval": "Synchronisierungs-Intervall",
591591
"synctodrive:synctodrive_target": "USB Gerät",
592-
"takeCollage": "Collage erstellen!",
593-
"takePhoto": "Foto erstellen!",
592+
"takeCollage": "Collage",
593+
"takePhoto": "Foto",
594594
"telegram": "Community @ Telegram",
595595
"test_update_available": "Es ist ein Test-Update verfügbar.",
596596
"toggleFullscreen": "Vollbildmodus umschalten",

src/js/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ const photoBooth = (function () {
11511151
} else {
11521152
api.thrill(PhotoStyle.PHOTO);
11531153
}
1154-
$('.newpic').trigger("blur");
1154+
$('.newpic').trigger('blur');
11551155
});
11561156

11571157
$('.takeCollage, .newcollage').on('click', function (e) {
@@ -1163,7 +1163,7 @@ const photoBooth = (function () {
11631163
api.thrill(PhotoStyle.COLLAGE);
11641164
}
11651165

1166-
$('.newcollage').trigger("blur");
1166+
$('.newcollage').trigger('blur');
11671167
});
11681168

11691169
$('#mySidenav .closebtn').on('click', function (e) {

src/sass/custom_style.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,11 @@ hr.small {
152152
.pswp-rotary-focus {
153153
background: radial-gradient(grey, $mainColor, $hoverColor) !important;
154154
}
155+
156+
.buttongroup {
157+
display: flex;
158+
justify-content: center;
159+
gap: 50px;
160+
padding-top: 10px;
161+
padding-bottom: 5px;
162+
}

src/sass/partials/_gallery.scss

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
z-index: 1000;
1212

1313
h1 {
14-
margin-top: 10px;
15-
margin-left: 30px;
14+
margin: auto;
15+
text-align: center;
1616
}
1717

1818
&--open {
@@ -31,31 +31,42 @@
3131
&__header {
3232
height: 100px;
3333
width: 100%;
34-
background: $mainColor;
34+
// background: $mainColor;
3535

3636
> a {
3737
position: absolute;
3838
right: 30px;
39-
top: 24px;
39+
top: 13px;
4040
color: $galleryButtonColor;
4141
font-size: 1.875em;
42+
border-radius: 15%;
43+
border: 2px solid var(--gallery-button-color);
4244
width: 50px;
4345
height: 50px;
44-
background: $hoverColor;
46+
// background: $hoverColor;
4547
text-align: center;
4648
line-height: 50px;
49+
> .fa {
50+
position: absolute;
51+
top: 50%;
52+
left: 50%;
53+
-ms-transform: translate(-50%, -50%);
54+
transform: translate(-50%, -50%);
55+
}
4756
}
4857
}
4958

5059
&__footer {
5160
width: 100%;
61+
height: 100px;
5262
// position: absolute;
5363
align-self: flex-end;
5464
bottom: 0;
5565
margin-top: auto;
5666
display: flex;
5767
justify-content: center;
5868
background: $mainColor;
69+
box-shadow: 0 0 15px rgb(40, 40, 40);
5970
}
6071

6172
&__body {
@@ -75,7 +86,9 @@
7586
img {
7687
max-width: 100%;
7788
list-style: none;
78-
border: 1px solid $borderColor;
89+
// border: 1px solid $borderColor;
90+
border-radius: 8px;
91+
box-shadow: 0 0 7px rgb(27, 27, 27);
7992
display: block;
8093
}
8194

@@ -105,6 +118,10 @@
105118
}
106119
}
107120

121+
.pswp__button--close {
122+
border-radius: 15%;
123+
}
124+
108125
.gallery-button {
109126
position: relative;
110127
z-index: 100;

src/sass/partials/_modern_button.scss

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
.round-btn {
22
width: 5em;
33
height: 5em;
4-
border-radius: 50%;
5-
border: 2px solid $borderColor;
6-
background: radial-gradient(grey, $mainColor, $hoverColor);
4+
border-radius: 15%;
5+
// border: 2px solid $borderColor;
6+
background: #1d1d1d;
77
display: inline-block;
88
color: $buttonFontColor;
99
text-decoration: none;
10-
margin: auto;
10+
// margin: auto;
1111
text-align: center;
1212
font-size: 1em;
13+
flex: none;
1314
position: relative;
1415
z-index: 10;
1516
span {
16-
display: none;
17+
display: block;
18+
position: absolute;
19+
bottom: 10%;
20+
left: 0;
21+
right: 0;
22+
margin-left: auto;
23+
margin-right: auto;
1724
}
1825
&:active,
1926
&:focus,
@@ -24,7 +31,7 @@
2431
font-size: 1.5em;
2532
margin: 0;
2633
position: absolute;
27-
top: 50%;
34+
top: 35%;
2835
left: 50%;
2936
-ms-transform: translate(-50%, -50%);
3037
transform: translate(-50%, -50%);

template/custom.template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<?php endif; ?>
5050
</div>
5151
<?php endif; ?>
52-
<div class="rotarygroup">
52+
<div class="buttongroup">
5353
<?php if($config['button']['show_cups']): ?>
5454
<a id="cups-button" class="round-btn cups-button rotaryfocus" href="#" target="newwin"><i class="fa fa-print" aria-hidden="true"></i> <span>CUPS</span></a>
5555
<?php endif; ?>

template/gallery.template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<?php endif; ?>
5050
</div>
5151
<div class="gallery__footer">
52-
<div class="rotarygroup">
52+
<div class="buttongroup">
5353
<?php if($config['button']['show_cups']): ?>
5454
<a id="cups-button" class="round-btn cups-button rotaryfocus" href="#" target="newwin"><i class="fa fa-print" aria-hidden="true"></i> <span>CUPS</span></a>
5555
<?php endif; ?>

0 commit comments

Comments
 (0)