Skip to content

Commit ceed830

Browse files
authored
style: Remove theme-inverted from templates and minor adjustments (#4531)
- Remove theme-inverted references from all HTML templates - Update template styling to use single theme approach - Minor code adjustments in auth module - Update statik generated files
2 parents 6832670 + 3c8cb52 commit ceed830

28 files changed

+11137
-10848
lines changed

assets/.externals

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#
1212

1313
name ./css/cozy-bs.min.css
14-
url https://unpkg.com/cozy-bootstrap@1.12.0/dist/cozy-bs.min.css
15-
sha256 78e6c68641d3d9bc73b03dac3272afc2de627eca0a18ee0e66b160e37c887ce4
14+
url https://unpkg.com/cozy-bootstrap@1.16.0/dist/cozy-bs.min.css
15+
sha256 363581b9153bc977174eb554fda47f7161a9595d2cdce78123390ef302aceab5
1616

1717
name ./js/cozy-client.min.js
1818
url https://raw.githubusercontent.com/cozy/cozy-client-js/v0.14.2/dist/cozy-client.min.js
@@ -36,7 +36,7 @@ sha256 2892f2052cbe2019b931d9669070b36c7fead375f4915213e68da8b201f55b25
3636

3737
name ./js/piwik.js
3838
url https://matomo.cozycloud.cc/piwik.js
39-
sha256 d7fc375178c93a2fc15fd888e30170eedf4ef3d04497e7f951ab7bfe0c921693
39+
sha256 b39abd9035f703b76dfed940898d572b9864f676eb1912a9142f0639dca6b2ce
4040

4141
name ./js/cozy-mjml.js
4242
url https://unpkg.com/cozy-mjml@0.21.0/dist/main.js

assets/styles/theme.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
11
/* An empty theme served by default */
2+
3+
4+
/* Override background only for share password page */
5+
.share-password-page .wrapper {
6+
background-color: #F3F6F9;
7+
max-width: 40rem;
8+
}
9+
.share-password-page .illustration {
10+
max-width: 48px;
11+
}
12+
.bg-gray-100 {
13+
background-color: #F3F6F9;
14+
}
15+
.component-box {
16+
background-color: #fff;
17+
border-radius: 16px;
18+
padding: 27px 24px 47px;
19+
}

assets/templates/authorize.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{{.Favicon}}
1313
</head>
1414
<body class="cirrus modal-open">
15-
<div class="modal d-block theme-inverted" tabindex="-1" aria-modal="true" role="dialog">
15+
<div class="modal d-block" tabindex="-1" aria-modal="true" role="dialog">
1616
<div class="modal-dialog modal-dialog-centered">
1717
<main role="application" class="modal-content">
1818
<div class="modal-icon">

assets/templates/authorize_move.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{{.Favicon}}
1414
<link rel="preload" href="/assets/icons/check.svg" as="image">
1515
</head>
16-
<body class="cirrus theme-inverted">
16+
<body class="cirrus ">
1717
<form id="login-form" method="POST" action="/auth/authorize/move" class="d-contents" data-iterations="{{.Iterations}}" data-salt="{{.Salt}}">
1818
<input id="state" type="hidden" name="state" value="{{.State}}" />
1919
<input id="client_id" type="hidden" name="client_id" value="{{.ClientID}}" />

assets/templates/authorize_sharing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{{.Favicon}}
1313
</head>
1414
<body class="cirrus modal-open">
15-
<div class="modal d-block theme-inverted" tabindex="-1" aria-modal="true" role="dialog">
15+
<div class="modal d-block " tabindex="-1" aria-modal="true" role="dialog">
1616
<div class="modal-dialog modal-dialog-centered">
1717
<main role="application" class="modal-content">
1818
<div class="modal-icon">

assets/templates/confirm_auth.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<link rel="preload" href="/assets/icons/check.svg" as="image">
1414
</head>
1515
<body class="cirrus modal-open">
16-
<div class="modal d-block theme-inverted" tabindex="-1" aria-modal="true" role="dialog">
16+
<div class="modal d-block " tabindex="-1" aria-modal="true" role="dialog">
1717
<div class="modal-dialog modal-dialog-centered">
1818
<main role="application" class="modal-content">
1919
<div class="modal-icon">

assets/templates/confirm_flagship.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{{.Favicon}}
1414
<link rel="preload" href="/assets/icons/check.svg" as="image">
1515
</head>
16-
<body class="cirrus theme-inverted">
16+
<body class="cirrus ">
1717
<form id="confirm-flagship-form" method="POST" action="/auth/clients/{{.ClientID}}/flagship" class="d-contents">
1818
<input id="confirm-token" type="hidden" name="confirm-token" value="{{.Token}}" />
1919
<main class="wrapper">

assets/templates/error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<link rel="stylesheet" href="{{asset .Domain "/styles/cirrus.css" .ContextName}}">
1313
{{.Favicon}}
1414
</head>
15-
<body class="cirrus{{if .Inverted}} theme-inverted{{end}}">
15+
<body class="cirrus{{if .Inverted}} {{end}}">
1616
<main class="wrapper">
1717
<header class="wrapper-top">
1818
<a href="https://cozy.io/" class="btn p-2 d-sm-none">

assets/templates/import.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link rel="stylesheet" href="{{asset .Domain "/styles/cirrus.css" .ContextName}}">
1212
{{.Favicon}}
1313
</head>
14-
<body class="cirrus theme-inverted">
14+
<body class="cirrus ">
1515
<main class="wrapper">
1616
<header class="wrapper-top">
1717
<a href="https://cozy.io/" class="btn p-2 d-sm-none">

assets/templates/install_flagship_app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link rel="stylesheet" href="{{asset .Domain "/styles/cirrus.css" .ContextName}}">
1212
{{.Favicon}}
1313
</head>
14-
<body class="cirrus theme-inverted">
14+
<body class="cirrus ">
1515
<main class="wrapper">
1616
<header class="wrapper-top">
1717
<a href="https://cozy.io/" class="btn p-2 d-sm-none">

0 commit comments

Comments
 (0)