Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
typescript
coloration
Commits
93dba3fa
Commit
93dba3fa
authored
May 17, 2020
by
Zéfling
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix demo for Blink Browsers
parent
ce8dfa4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
119 additions
and
114 deletions
+119
-114
src/app/app.component.html
src/app/app.component.html
+117
-112
src/app/app.component.scss
src/app/app.component.scss
+2
-2
No files found.
src/app/app.component.html
View file @
93dba3fa
...
...
@@ -5,6 +5,7 @@
<form>
<fieldset
class=
"source-fieldset"
>
<legend>
Base
</legend>
<div>
<label>
Color:
<input
type=
"text"
[(value)]=
"baseColor"
(change)=
"baseColor = $event.target.value"
...
...
@@ -14,10 +15,11 @@
*ngIf=
"baseColor"
>
<div
[style.background-color]=
"baseColor"
>
</div>
</div>
</div>
</fieldset>
<fieldset
class=
"additionnal"
>
<legend>
Additionnal
</legend>
<div>
<div
class=
"luminosity"
>
<label>
<span>
Luminosity [-1; 1]:
</span><input
type=
"number"
min=
"-1.000"
...
...
@@ -101,11 +103,13 @@
<button
type=
"button"
(click)=
"change()"
>
Change
</button>
</div>
</div>
</fieldset>
</form>
<aside>
<fieldset
class=
"result-fieldset"
>
<legend>
Result
</legend>
<div>
<div
class=
"result"
>
<div
[style.background-image]=
"gradient"
>
...
...
@@ -132,6 +136,7 @@
<div
[style.background-color]=
"colorHsl"
>
</div>
</div>
</div>
</div>
</fieldset>
</aside>
</main>
...
...
src/app/app.component.scss
View file @
93dba3fa
...
...
@@ -30,7 +30,7 @@ aside {
padding
:
0
15px
}
.additionnal
{
.additionnal
>
div
{
display
:
grid
;
width
:
100%
;
grid-template
:
...
...
@@ -106,7 +106,7 @@ button {
}
}
.source-fieldset
{
.source-fieldset
>
div
{
display
:
flex
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment