Skip to content

Commit 3cd496e

Browse files
committed
Update bootstrap and format styles ts files
1 parent 79b9851 commit 3cd496e

File tree

6 files changed

+66
-48
lines changed

6 files changed

+66
-48
lines changed

dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<head>
55
<meta charset="utf-8" />
66
<title>Color Picker</title>
7-
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet"
8-
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous" />
7+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
8+
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
99
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css">
1010
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.19.1/cdn/themes/light.css" />
1111
<script type="module"

src/styles/Bootstrap.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { html } from "lit";
22

3-
export const bootstrap = html` <link
4-
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css"
3+
export const bootstrap = html`<link
4+
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
55
rel="stylesheet"
6-
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi"
6+
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
77
crossorigin="anonymous"
8-
/>`;
8+
/> `;

src/styles/ColorConverter.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ export const styles = css`
33
.inputs-container {
44
gap: 0.25rem;
55
}
6+
7+
table > * {
8+
--bs-table-bg: transparent;
9+
}
610
`;

src/styles/ColorInterpolation.ts

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
1-
import { css } from 'lit';
1+
import { css } from "lit";
22
export const styles = css`
3-
.color-selection {
3+
.color-selection {
44
width: 2rem;
55
height: 2rem;
66
background-color: red;
77
border-radius: 10%;
88
margin: 0 auto;
9-
}
9+
}
1010
11-
.color-selection.rightColor {
11+
.color-selection.rightColor {
1212
background-color: white;
13-
}
13+
}
1414
15-
.color-selection.active {
15+
.color-selection.active {
1616
border: black dashed 0.2rem;
17-
}
17+
}
1818
19-
.gradient {
19+
.gradient {
2020
width: 100%;
2121
height: 2rem;
2222
background-image: linear-gradient(to right, red, white);
23-
;
24-
}
23+
}
2524
26-
.table th {
25+
.table th {
2726
width: 1rem;
28-
}
29-
`;
27+
}
28+
29+
table > * {
30+
--bs-table-bg: transparent;
31+
}
32+
`;

src/styles/ColorPicker.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
import {css} from 'lit';
1+
import { css } from "lit";
22
export const styles = css`
3-
:host {
3+
:host {
44
display: block;
55
width: 100%;
66
height: 100%;
7-
}
7+
}
88
9-
.main-container {
9+
.main-container {
1010
--gap: 1rem;
1111
gap: var(--gap);
1212
padding: var(--gap);
13-
}
13+
}
1414
15-
::slotted(*) {
15+
::slotted(*) {
1616
border-radius: 1rem;
1717
background: #eee;
1818
padding: 1rem;
1919
text-align: center;
2020
flex: 1 1 30%;
2121
display: flex;
2222
flex-direction: column;
23-
}`;
23+
}
24+
`;

src/styles/ColorSelection.ts

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
import { css } from 'lit';
1+
import { css } from "lit";
22
export const styles = css`
3-
.color-grad-container {
3+
.color-grad-container {
44
width: 100%;
55
position: relative;
66
min-height: 10rem;
77
min-width: 10rem;
88
flex-grow: 1;
9-
}
9+
}
1010
11-
.color-grad {
11+
.color-grad {
1212
position: absolute;
1313
width: 100%;
1414
height: 100%;
1515
margin-left: auto;
1616
margin-right: auto;
1717
left: 0;
1818
right: 0;
19-
}
19+
}
2020
21-
.color-grad-1 {
21+
.color-grad-1 {
2222
z-index: 0;
2323
background: linear-gradient(to right, #ffffff 0%, #f00 100%);
24-
}
24+
}
2525
26-
.color-grad-2 {
26+
.color-grad-2 {
2727
z-index: 1;
2828
background: linear-gradient(to bottom, #ffffff00 0%, #000 100%);
29-
}
29+
}
3030
31-
.color-grad-circle {
31+
.color-grad-circle {
3232
z-index: 2;
3333
position: absolute;
3434
width: 1rem;
@@ -38,17 +38,26 @@ export const styles = css`
3838
border-color: black;
3939
border-width: 0.1rem;
4040
pointer-events: none;
41-
}
41+
}
4242
43-
.color-bar {
43+
.color-bar {
4444
width: 100%;
4545
height: 1.5rem;
4646
margin-top: 0.5rem;
4747
border-radius: 0.25rem;
48-
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 66%, #f0f 83%, #f00 100%);
49-
}
48+
background: linear-gradient(
49+
to right,
50+
#f00 0%,
51+
#ff0 17%,
52+
#0f0 33%,
53+
#0ff 50%,
54+
#00f 66%,
55+
#f0f 83%,
56+
#f00 100%
57+
);
58+
}
5059
51-
.color-bar-pointer {
60+
.color-bar-pointer {
5261
height: 0;
5362
width: 0;
5463
border-left: 0.4em solid transparent;
@@ -57,9 +66,9 @@ export const styles = css`
5766
position: relative;
5867
transform: translateX(-50%);
5968
top: 60%;
60-
}
69+
}
6170
62-
.color-bar-pointer-2 {
71+
.color-bar-pointer-2 {
6372
height: 0;
6473
width: 0;
6574
border-left: 0.4em solid black;
@@ -68,9 +77,9 @@ export const styles = css`
6877
position: absolute;
6978
transform: translateX(-50%);
7079
top: 0.5em;
71-
}
80+
}
7281
73-
.color-bar-pointer-3 {
82+
.color-bar-pointer-3 {
7483
height: 0;
7584
width: 0;
7685
border-left: 0.3em solid transparent;
@@ -80,9 +89,9 @@ export const styles = css`
8089
position: absolute;
8190
transform: translateX(-50%);
8291
top: 0.125em;
83-
}
92+
}
8493
85-
.color-bar-pointer-4 {
94+
.color-bar-pointer-4 {
8695
height: 0;
8796
width: 0;
8897
border-left: 0.3em solid white;
@@ -91,4 +100,5 @@ export const styles = css`
91100
position: absolute;
92101
transform: translateX(-50%);
93102
top: 0.5em;
94-
}`;
103+
}
104+
`;

0 commit comments

Comments
 (0)