Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fb/dev/auth login page #33

Merged
merged 3 commits into from
Jan 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion IONOS/src/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
let { home_src = '#' }: Props = $props();
</script>

<div class="ion-global-nav">
<div class="ion-global-nav" part="ion-global-nav">
<a class="header-left" href={home_src} aria-label="Home">
<ionos-icons ionos></ionos-icons>
<ionos-icons product></ionos-icons>
Expand Down
12 changes: 0 additions & 12 deletions core/css/custom/ionos-variables.css

This file was deleted.

154 changes: 154 additions & 0 deletions core/css/guest.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,156 @@
@import url('./server.css');

body#body-login:not(:has(.login-box)) {
background-color: var(--ion-color-cool-grey-c1);
font-family: var(--font-face);

header#ionos-global-nav {
display: flex;
justify-content: center;

::part(ion-global-nav) {
background-color: var(--ion-color-cool-grey-c1);
box-shadow: none;
max-height: 36px;
margin: 10px 0 -10px;
transform: scale(0.9);

@media only screen and (min-width: 768px) {
transform: none;
}

@media only screen and (min-width: 1200px) {
margin: 70px 0 -50px;
transform: scale(1.8);
}
}
}

header #header .logo {
display: none;
}

footer.guest-box {
display: none;
}

div.wrapper main {
div.picker-window {
background-color: var(--ion-color-main-background);
max-width: 500px;
padding: 12px;

h2 {
font-size: 20px;
color: var(--ion-color-secondary);
margin: 0;

@media only screen and (min-width: 768px) {
font-size: 24px;
margin-top: 24px;
margin-bottom: 48px;
}

@media only screen and (min-width: 1200px) {
font-size: 32px;
}
}

p.info {
font-size: 14px;
padding: 0 12px;
color: var(--ion-color-secondary);

@media only screen and (min-width: 1024px) {
font-size: 16px;
padding: 0 56px;
}

@media only screen and (min-width: 1200px) {
font-size: 18px;
}
}

div.notecard.warning {
background-color: var(--ion-color-main-background);
border: 2px solid var(--ion-color-amber-y5);
border-radius: 16px;
font-size: 14px;
padding: 18px;

h3 {
color: var(--ion-color-amber-y6);
font-size: 16px;
font-weight: 600;
margin: 6px 0 24px;
}

h3:before {
content: "";
display: inline-block;
background-image: url('../../../../custom-npms/nc-mdi-svg/dist/svg/alert.svg');
vertical-align: middle;
margin-right: 16px;
padding: 2px;
width: 22px;
height: 24px;
/* adjust color of background-image svg to equal rgba(195, 107, 0, 1) */
filter: brightness(0) saturate(100%) invert(38%) sepia(100%) saturate(746%) hue-rotate(360deg) brightness(100%) contrast(100%);
}

p {
color: var(--ion-color-secondary);
}

@media only screen and (min-width: 768px) {
padding: 24px;
margin: 24px 48px;
}
}

form input[type="submit"] {
background-color: var(--ion-color-blue-b7);
background-image: none;
border-radius: 30px;
margin-bottom: 0;
height: 36px;
font-size: 14px;
font-weight: 600;

@media only screen and (min-width: 768px) {
margin-bottom: 14px;
}
}

a#app-token-login {
font-size: 14px;
font-weight: 600;
color: var(--ion-color-secondary);
}
}

div.picker-window.small {
h2 {
margin-top: 24px;
margin-bottom: 24px;

@media only screen and (min-width: 1200px) {
margin-bottom: 56px;
}
}

form div#submit-wrapper {
margin-bottom: 12px;

@media only screen and (min-width: 768px) {
margin-top: 24px;
}
}
}

/* prevent error messages to overlap with header on smaller screens */
div.guest-box {
margin-top: 24px;
}
}
}
2 changes: 0 additions & 2 deletions core/css/server.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ 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/>.
*/

@import url('custom/ionos-variables.css');

header#ionos-global-nav {
position: sticky;
width: 100%;
Expand Down
Loading