Skip to content

Commit e625a4c

Browse files
authored
Merge pull request #11 from hhu-propra2/development
Release v2.0.1
2 parents 4260aea + 72b3e92 commit e625a4c

File tree

6 files changed

+24
-19
lines changed

6 files changed

+24
-19
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
branches:
66
- '*'
77
- '!master'
8+
- '!development'
89
pull_request:
910
branches:
1011
- '*'
1112
- '!master'
13+
- '!development'
1214

1315
jobs:
1416
build:

.github/workflows/heroku.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Heroku Deployment
33
on:
44
push:
55
branches:
6-
- master
6+
- development
77

88
jobs:
99
build:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = 'mops'
10-
version = '2.0.0'
10+
version = '2.0.1'
1111
sourceCompatibility = '11'
1212

1313
configurations {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "Mops - Styleguide",
33
"name": "styleguide",
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"description": "Styleguide for Mops",
66
"main": "gulpfile.js",
77
"scripts": {
@@ -11,7 +11,7 @@
1111
"type": "git",
1212
"url": "https://github.com/hhu-propra2/styleguide.git"
1313
},
14-
"homepage": "http://mops.style",
14+
"homepage": "https://mops.style",
1515
"license": "ISC",
1616
"dependencies": {
1717
"@popperjs/core": "^2.0.6",

src/main/resources/static/css/styles.scss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ $transition-duration: 0.3s;
4040

4141
body {
4242
.header.header-main:first-child {
43-
position: sticky;
43+
position: fixed;
4444
top: 0;
45+
width: 100%;
4546
height: $header-main-height;
4647
padding: $header-main-padding-y $header-main-padding-x;
4748
display: flex;
@@ -312,8 +313,7 @@ body {
312313
width: $sidebar-width;
313314
transform: translateX(0);
314315
transition: transform $transition-duration ease-out;
315-
overflow-x: hidden;
316-
overflow-y: scroll;
316+
overflow: hidden;
317317

318318
@include large {
319319
transform: translateX(100%);
@@ -328,13 +328,17 @@ body {
328328
height: 100%;
329329
transition: transform $transition-duration ease-out;
330330
transform: translateX(0);
331+
overflow: hidden;
331332

332333
.navigation {
333334
width: $navigation-width;
334335
overflow-x: hidden;
336+
overflow-y: auto;
335337

336338
ul {
337339
list-style: none;
340+
padding: 0;
341+
margin: 0;
338342
padding-inline-start: 0;
339343
padding-inline-end: 0;
340344
margin-block-start: 0;
@@ -392,7 +396,7 @@ body {
392396
}
393397

394398
> .main-wrapper {
395-
padding-top: 1rem;
399+
padding-top: calc(1rem + #{$header-main-height});
396400
padding-left: 1rem;
397401
padding-right: 1rem;
398402
padding-bottom: calc(1rem + #{$footer-main-height});
@@ -404,8 +408,9 @@ body {
404408
}
405409

406410
footer.footer.footer-main {
407-
position: sticky;
411+
position: fixed;
408412
bottom: 0;
413+
width: 100%;
409414
display: flex;
410415
justify-content: space-between;
411416
align-items: center;

src/main/resources/templates/index.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en"
3-
th:replace="~{mopslayout :: html(name='Styleguide', headcontent=~{:: headcontent}, bodycontent=~{:: bodycontent})}"
3+
th:replace="~{mopslayout :: html(name='Styleguide', headcontent=~{:: headcontent}, navigation=~{:: navigation}, bodycontent=~{:: bodycontent})}"
44
xmlns:th="http://www.thymeleaf.org">
55
<head>
66
<meta charset="utf-8">
@@ -154,8 +154,8 @@ <h2 id="structure">Grundaufbau</h2>
154154
<li><code>headcontent</code> (Fragment mit Links, Scripts, Styles und ggf. anderen Angaben im <code>head</code> der
155155
Seite)
156156
</li>
157-
<li><code>navigation (Fragment mit Links)</code></li>
158-
<li><code>bodycontent (Fragment mit beliebigem Inhalt, der im <code>body</code> vorkommen kann)</code></li>
157+
<li><code>navigation</code> (Fragment mit Links)</li>
158+
<li><code>bodycontent</code> (Fragment mit beliebigem Inhalt, der im <code>body</code> vorkommen kann)</li>
159159
</ul>
160160
<p>
161161
Sämtliche Parameter sind optional. Es macht aber Sinn, manche (oder alle) zu setzen.
@@ -232,17 +232,15 @@ <h2 id="fragments">Fragmente</h2>
232232
einfach weggelassen werden.
233233
</p>
234234

235-
<h2 id="fragments">Account</h2>
235+
<h2 id="account">Account</h2>
236236
<p>
237-
Da wir mit Authentifizierung und Autorisierung arbeiten, sollte dem Benutzer die Möglichkeit gegeben werden, ein
238-
sich an- und abzumelden,
239-
sowie seine Daten einzusehen. Dies geschieht im Template mit einem DTO-Objekt. Alles was ihr tun müsst, ist in eurem
240-
Projekt eine
241-
Klasse Account anzulegen, die folgendermaßen aussieht:
237+
Da wir mit Authentifizierung und Autorisierung arbeiten, sollte dem Benutzer die Möglichkeit gegeben werden, sich an- und abzumelden,
238+
sowie seine Daten einzusehen. Dies geschieht im Template mit einem DTO. Alles was ihr tun müsst, ist in eurem
239+
Projekt eine Klasse Account anzulegen, die folgendermaßen aussieht:
242240
</p>
243241
<pre>
244242
<code>
245-
class Account {
243+
public class Account {
246244
private final String name; // Name der angemeldeten Person
247245
private final String email; // E-Mail-Adresse
248246
private final String image; // Bild (kann für jeden null sein)

0 commit comments

Comments
 (0)