Skip to content

Commit

Permalink
[Task] #61, cut design update
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed May 21, 2024
1 parent 97e93ec commit a012ed9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
7 changes: 7 additions & 0 deletions httpdocs/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ Neutral: #131211
--bg: color-mix(in oklch, var(--neutral) 20%, white);
--text: color-mix(in oklch, var(--neutral) 20%, black);
--textOnColor: var(--neutral);
--semiBg: #ffffffbb;

/* dark theme, initial state (prefers mq) by react */
&[data-mui-color-scheme="dark"] {
Expand All @@ -133,6 +134,7 @@ Neutral: #131211

--bg: color-mix(in oklch, var(--neutral) 20%, black);
--text: color-mix(in oklch, var(--neutral) 20%, white);
--semiBg: #00000077;
}
}

Expand All @@ -151,6 +153,11 @@ Neutral: #131211
position:absolute;
width:1px
}
.cut {
--cut: 2em;
clip-path: polygon(0% var(--cut), var(--cut) 0%, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}


@media screen and
(prefers-reduced-motion: reduce),
Expand Down
15 changes: 13 additions & 2 deletions src/client/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
animation: move-it 10s linear infinite;


.wrapper {
max-width: 50em;
padding: 2.5em;
margin: 2.5em;
background: var(--semiBg);
--cut: 3em;
.cut { --cut: 1.1em } /* reset for child elements */
}

.headline {
margin-inline: auto;
Expand All @@ -43,7 +51,7 @@
form {
display: flex;
flex-flow: nowrap column;
gap: 1.5em;
gap: 2em;
margin-bottom: 10vh;
}

Expand Down Expand Up @@ -78,13 +86,16 @@

.submit {
align-self: end;
font-size: 1.325rem;
min-width: 9em;
min-height: 3.5em;
border-radius: 0;

[data-mui-color-scheme="light"] &:not([disabled]) {
color: var(--main);
background-color: color-mix(in oklch, var(--neutral) 90%, transparent);
}


}


Expand Down

0 comments on commit a012ed9

Please sign in to comment.