Compare commits

..

No commits in common. "9f6bad0320ca4e655aa65972003b90dcdaceb362" and "59fdaed9f9392f8fa3910006ddcf1905d8691a00" have entirely different histories.

6 changed files with 79 additions and 90 deletions

View file

@ -1,9 +1,9 @@
<div [ngClass]="{select_wrapper: true, error: step.error}"> <div [ngClass]="{selectwrapper: true, error: step.error}">
<div class="arrow_box"> <div class="arrow_box">
<select (change)="convert($event)"> <select class="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 id="{{c.getId()}}">{{ c.getDisplayname() }}</option> <option class="option" id="{{c.getId()}}">{{ c.getDisplayname() }}</option>
} }
</select> </select>
</div> </div>

View file

@ -1,84 +1,74 @@
.select_wrapper { .selectwrapper {
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: #222; background-color: #fff;
border: none; border: none;
color: #eee; color: #000;
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;
transition: background-color ease-in-out 200ms, border ease-in-out 200ms; background: #fff;
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;
left: 50%;
pointer-events: none;
position: absolute;
top: 100%;
transition: background-color ease-in-out 200ms, border ease-in-out 200ms;
width: 0; width: 0;
position: absolute;
pointer-events: none;
} }
&:after { &:after {
border-color: rgba(255, 255, 255, 0); 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-top-color: #888; border-color: rgba(170, 170, 170, 0);
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 {
&:has(>select:focus, >select:hover) { border-color: rgba(136, 136, 136, 0);
&:after { border-top-color: #888;
}
&:hover:before {
border-color: rgba(51, 51, 51, 0);
border-top-color: #333; border-top-color: #333;
} }
.selectwrapper > & {
&:before {
border-top-color: #bbb;
}
}
&:hover {
border-color: #bbb;
}
.select_wrapper > & {
display: inline-block; display: inline-block;
} }
} }
.option {
/* font-family: "ABeeZee", sans-serif;*/
}

View file

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

View file

@ -1,65 +1,69 @@
:host { .textwrapper {
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;
position: relative; }
transition: border ease-in-out 200ms;
.arrow_box {
position: relative;
background: #fff;
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;
left: 50%;
pointer-events: none;
position: absolute;
top: 100%;
transition: background-color ease-in-out 200ms, border ease-in-out 200ms;
width: 0; width: 0;
position: absolute;
pointer-events: none;
} }
&:after { &:after {
border-top-color: #222; border-color: rgba(255, 255, 255, 0);
border-top-color: #fff;
border-width: 1em; border-width: 1em;
margin-left: -1em; margin-left: -1em;
} }
&:before { &:before {
border-top-color: #888; border-color: rgba(170, 170, 170, 0);
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 {
&:has(>textarea:focus, >textarea:hover) { border-color: rgba(136, 136, 136, 0);
&:after { border-top-color: #888;
}
&:hover:before {
border-color: rgba(51, 51, 51, 0);
border-top-color: #333; border-top-color: #333;
} }
&:before {
border-top-color: #bbb;
}
}
&:hover {
border-color: #bbb;
}
} }
textarea { .textinput {
background-color: #222; background-color: #fff;
border: none; border: none;
color: #ddd; color: #000;
font-family: "Liberation Mono", monospace; font-family: "Free Monospaced", 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 {
&:focus, &:hover { border-color: #888;
background-color: #333; }
border-color: #bbb; &:hover {
color: #fff; border-color: #333;
} }
} }
.errormessage {
color: red;
text-align: center;
}

View file

@ -21,16 +21,9 @@
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: #222; background-color: white;
color: #eee; color: black;
font-family: "ABeeZee", sans-serif; font-family: "ABeeZee", sans-serif;
margin: 0; margin: 0;
padding: 1em 0 0 0; padding: 1em 0 0 0;