Compare commits

..

3 commits

Author SHA1 Message Date
9f6bad0320
THIS is the real dark mode.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-01-28 02:40:04 +01:00
c212afee39
Dark mode, clean up. 2024-01-28 02:15:39 +01:00
77d57f089c
Dark mode, work in progress. 2024-01-28 02:05:01 +01:00
6 changed files with 90 additions and 79 deletions

View file

@ -1,9 +1,9 @@
<div [ngClass]="{selectwrapper: true, error: step.error}"> <div [ngClass]="{select_wrapper: true, error: step.error}">
<div class="arrow_box"> <div class="arrow_box">
<select class="select" (change)="convert($event)"> <select (change)="convert($event)">
<option id="undefined">Select conversion ...</option> <option id="undefined">Select conversion ...</option>
@for (c of converters; track c.getId()) { @for (c of converters; track c.getId()) {
<option class="option" id="{{c.getId()}}">{{ c.getDisplayname() }}</option> <option id="{{c.getId()}}">{{ c.getDisplayname() }}</option>
} }
</select> </select>
</div> </div>

View file

@ -1,74 +1,84 @@
.selectwrapper { .select_wrapper {
margin: 0 0 1em 0; margin: 0 0 1em 0;
padding: 0; padding: 0;
text-align: center; text-align: center;
&.error { &.error {
> .arrow_box { > .arrow_box {
border-color: red; border-color: red;
&:before { &:before {
border-top-color: red; border-top-color: red;
} }
} }
select { select {
color: red; color: red;
transition: background-color ease-in-out 200ms, color ease-in-out 200ms;
} }
} }
} }
.select { select {
background-color: #fff; background-color: #222;
border: none; border: none;
color: #000; color: #eee;
font-family: "ABeeZee", sans-serif; font-family: "ABeeZee", sans-serif;
margin: 0; margin: 0;
padding: 0.5em; padding: 0.5em;
transition: background-color ease-in-out 200ms, color ease-in-out 200ms;
&:focus, &:hover {
background-color: #333;
color: #fff;
}
} }
.arrow_box { .arrow_box {
border: 1px solid #888;
position: relative; position: relative;
background: #fff; transition: background-color ease-in-out 200ms, border ease-in-out 200ms;
border: 1px solid #aaa;
&:focus {
border-color: #888;
}
&:hover {
border-color: #333;
}
&:after, &:before { &:after, &:before {
top: 100%;
left: 50%;
border: solid transparent; border: solid transparent;
content: " "; content: " ";
height: 0; height: 0;
width: 0; left: 50%;
position: absolute;
pointer-events: none; pointer-events: none;
position: absolute;
top: 100%;
transition: background-color ease-in-out 200ms, border ease-in-out 200ms;
width: 0;
} }
&:after { &:after {
border-color: rgba(255, 255, 255, 0); border-color: rgba(255, 255, 255, 0);
border-top-color: #fff; border-top-color: #222;
border-width: 1em; border-width: 1em;
margin-left: -1em; margin-left: -1em;
} }
&:before { &:before {
border-color: rgba(170, 170, 170, 0); border-top-color: #888;
border-top-color: #aaa;
border-width: calc(1em + 1px); border-width: calc(1em + 1px);
margin-left: calc(-1em - 1px); margin-left: calc(-1em - 1px);
} }
&:focus:before {
border-color: rgba(136, 136, 136, 0); &:has(>select:focus, >select:hover) {
border-top-color: #888; &:after {
border-top-color: #333;
}
&:before {
border-top-color: #bbb;
}
} }
&:hover:before {
border-color: rgba(51, 51, 51, 0); &:hover {
border-top-color: #333; border-color: #bbb;
} }
.selectwrapper > & {
.select_wrapper > & {
display: inline-block; display: inline-block;
} }
} }
.option {
/* font-family: "ABeeZee", sans-serif;*/
}

View file

@ -1,4 +1,2 @@
<div class="textwrapper arrow_box"> <textarea (keyup)="update(step)" placeholder="Please enter your input ..."
<textarea class="textinput" (keyup)="update(step)" placeholder="Please enter your input ..." [(ngModel)]="step.content">{{ step.content }}</textarea>
[(ngModel)]="step.content">{{step.content}}</textarea>
</div>

View file

@ -1,69 +1,65 @@
.textwrapper { :host {
border: 1px solid #888;
display: block;
margin: 0 0 1em 0; margin: 0 0 1em 0;
padding: 0 1em 0 0; padding: 0 1em 0 0;
}
.arrow_box {
position: relative; position: relative;
background: #fff; transition: border ease-in-out 200ms;
border: 1px solid #aaa;
&:focus {
border-color: #888;
}
&:hover {
border-color: #333;
}
&:after, &:before { &:after, &:before {
top: 100%;
left: 50%;
border: solid transparent; border: solid transparent;
content: " "; content: " ";
height: 0; height: 0;
width: 0; left: 50%;
position: absolute;
pointer-events: none; pointer-events: none;
position: absolute;
top: 100%;
transition: background-color ease-in-out 200ms, border ease-in-out 200ms;
width: 0;
} }
&:after { &:after {
border-color: rgba(255, 255, 255, 0); border-top-color: #222;
border-top-color: #fff;
border-width: 1em; border-width: 1em;
margin-left: -1em; margin-left: -1em;
} }
&:before { &:before {
border-color: rgba(170, 170, 170, 0); border-top-color: #888;
border-top-color: #aaa;
border-width: calc(1em + 1px); border-width: calc(1em + 1px);
margin-left: calc(-1em - 1px); margin-left: calc(-1em - 1px);
} }
&:focus:before {
border-color: rgba(136, 136, 136, 0); &:has(>textarea:focus, >textarea:hover) {
border-top-color: #888; &:after {
border-top-color: #333;
}
&:before {
border-top-color: #bbb;
}
} }
&:hover:before {
border-color: rgba(51, 51, 51, 0); &:hover {
border-top-color: #333; border-color: #bbb;
} }
} }
.textinput { textarea {
background-color: #fff; background-color: #222;
border: none; border: none;
color: #000; color: #ddd;
font-family: "Free Monospaced", monospace; font-family: "Liberation Mono", monospace;
height: 10em; height: 10em;
margin: 0; margin: 0;
padding: 0.5em; padding: 0.5em;
resize: vertical; resize: vertical;
transition: background-color ease-in-out 200ms, border-color ease-in-out 200ms, color ease-in-out 200ms;
width: 100%; width: 100%;
&:focus {
border-color: #888;
}
&:hover {
border-color: #333;
}
}
.errormessage { &:focus, &:hover {
color: red; background-color: #333;
text-align: center; border-color: #bbb;
color: #fff;
}
} }

Binary file not shown.

View file

@ -21,9 +21,16 @@
font-style: normal; font-style: normal;
} }
@font-face {
font-family: "Liberation Mono";
src: url("assets/fonts/liberationmono-regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
body { body {
background-color: white; background-color: #222;
color: black; color: #eee;
font-family: "ABeeZee", sans-serif; font-family: "ABeeZee", sans-serif;
margin: 0; margin: 0;
padding: 1em 0 0 0; padding: 1em 0 0 0;