Skip to content

Commit df8c676

Browse files
authored
Merge pull request #106 from maykinmedia/feature/105-django-common
Feature/105 django common
2 parents 9f64485 + 98f5bd2 commit df8c676

File tree

21 files changed

+162
-119
lines changed

21 files changed

+162
-119
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ COPY --from=backend-build /app/src/ /app/src/
8888

8989
# copy frontend build statics
9090
COPY --from=frontend-build /app/src/openorganisatie/static /app/src/openorganisatie/static
91+
COPY --from=frontend-build /app/node_modules/@fortawesome/fontawesome-free/webfonts /app/node_modules/@fortawesome/fontawesome-free/webfonts
9192

9293
# copy source code
9394
COPY ./src /app/src

package-lock.json

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"homepage": "https://maykinmedia.nl",
2222
"dependencies": {
2323
"microscope-sass": "latest",
24-
"yargs": "^16.2.0"
24+
"yargs": "^16.2.0",
25+
"@fortawesome/fontawesome-free": "^7.0.0"
2526
},
2627
"devDependencies": {
2728
"@babel/core": "latest",
@@ -53,4 +54,4 @@
5354
"webpack-dev-server": "latest",
5455
"webpack-stream": "latest"
5556
}
56-
}
57+
}

requirements/base.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ django-scim2
2020
django-structlog
2121
django-reversion
2222
django-reversion-compare
23+
django-capture-tag
2324

2425
# API libraries
2526
# djangorestframework

requirements/base.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ django-axes==8.0.0
129129
# -r requirements/base.in
130130
# maykin-common
131131
# open-api-framework
132+
django-capture-tag==1.0
133+
# via -r requirements/base.in
132134
django-cors-headers==4.7.0
133135
# via open-api-framework
134136
django-csp==4.0

requirements/ci.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ django-axes==8.0.0
196196
# -c requirements/base.txt
197197
# -r requirements/base.txt
198198
# open-api-framework
199+
django-capture-tag==1.0
200+
# via
201+
# -c requirements/base.txt
202+
# -r requirements/base.txt
199203
django-cors-headers==4.7.0
200204
# via
201205
# -c requirements/base.txt

requirements/dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ django-axes==8.0.0
225225
# -c requirements/ci.txt
226226
# -r requirements/ci.txt
227227
# open-api-framework
228+
django-capture-tag==1.0
229+
# via
230+
# -c requirements/ci.txt
231+
# -r requirements/ci.txt
228232
django-cors-headers==4.7.0
229233
# via
230234
# -c requirements/ci.txt

src/openorganisatie/conf/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
"reversion",
107107
"reversion_compare",
108108
"maykin_common",
109+
"capture_tag",
109110
# Project applications.
110111
"openorganisatie.accounts",
111112
"openorganisatie.utils",

src/openorganisatie/scss/_app.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ h2,
33
h3,
44
h4,
55
h5 {
6-
margin-top: 0;
7-
margin-bottom: 0;
8-
line-height: 1.2;
6+
line-height: 1.5;
97
}
108

119
h1 {

src/openorganisatie/scss/_settings.scss

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,28 @@ $color-border: $color_secondary_dark;
2323

2424
// css vars
2525
:root {
26-
--color_primary: #{$color_primary};
27-
--color_primary_dark: #{$color_primary_dark};
28-
29-
--color_secondary: #{$color_secondary};
30-
--color_secondary_dark: #{$color_secondary_dark};
31-
--color_secondary_light: #{$color_secondary_light};
32-
33-
--color_alert: #{$color_alert};
34-
--color_alert_dark: #{$color_alert_dark};
35-
36-
--color-darkest: #{$color-darkest};
37-
--color_dark: #{$color_dark};
38-
--color_lightest: #{$color_lightest};
39-
--color_muted: #{$color_muted};
40-
41-
--color_link: #{$color_link};
42-
--color_link_hover: #{$color_link_hover};
43-
--color-text: #{$color-text};
44-
--color-border: #{$color-border};
26+
// Link component
27+
--link-color: #017092;
28+
--link-color-hover: var(--link-color);
29+
--link-color-muted: #6c757d;
30+
31+
// footer component
32+
--footer-border-color: #dee2e6;
33+
34+
// tabs component
35+
--tabs-border-color: #dee2e6;
36+
--tabs-item-hover-border-color: #f3f3f3;
37+
38+
// Button component
39+
--button-color: #ffffff;
40+
--button-background-color: #04a5bb;
41+
--button-hover-background-color: #017092;
42+
--button-alert-background-color: #dc3545;
43+
--button-alert-hover-background-color: #bd2130;
44+
}
45+
46+
.content {
47+
&#{&}--align-right {
48+
text-align: right;
49+
}
4550
}

0 commit comments

Comments
 (0)