Skip to content

Commit cacd47a

Browse files
committed
fix: added css in dist
1 parent 95996c6 commit cacd47a

File tree

2 files changed

+71
-2
lines changed

2 files changed

+71
-2
lines changed

dist/styles.css

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
.search-input-wrapper {
2+
position: relative;
3+
}
4+
.search-input-wrapper .search-input {
5+
display: block;
6+
font-family: "Inter", system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
7+
width: 100%;
8+
padding: 6px 30px 6px 32px;
9+
font-size: 16px;
10+
font-weight: normal;
11+
height: 38px;
12+
color: #333;
13+
background-color: #f6f9fc;
14+
border: 1px solid #f6f9fc;
15+
border-radius: 0.35rem;
16+
transition: border-color 0.15s ease-in-out;
17+
}
18+
.search-input-wrapper .search-input:focus {
19+
background-color: white;
20+
border-color: #1ea7fd;
21+
outline: 0;
22+
box-shadow: none;
23+
}
24+
.search-input-wrapper .search-icon {
25+
color: #83add6;
26+
position: absolute;
27+
bottom: 4px;
28+
}
29+
.search-input-wrapper .search-icon.search {
30+
left: 6px;
31+
}
32+
.search-input-wrapper .search-icon.shortcut {
33+
cursor: text;
34+
right: 8px;
35+
bottom: 7px;
36+
padding: 0px 3px;
37+
color: #96b9dc;
38+
background-color: #e3ecf6;
39+
border-radius: 3px;
40+
z-index: 50;
41+
}
42+
.search-input-wrapper .search-icon.clear {
43+
right: 8px;
44+
bottom: 7px;
45+
cursor: pointer;
46+
z-index: 10;
47+
}
48+
49+
/* Fix the X appearing in search field on Chrome and IE */
50+
input[type=search]::-ms-clear {
51+
display: none;
52+
width: 0;
53+
height: 0;
54+
}
55+
56+
input[type=search]::-ms-reveal {
57+
display: none;
58+
width: 0;
59+
height: 0;
60+
}
61+
62+
input[type=search]::-webkit-search-decoration,
63+
input[type=search]::-webkit-search-cancel-button,
64+
input[type=search]::-webkit-search-results-button,
65+
input[type=search]::-webkit-search-results-decoration {
66+
display: none;
67+
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
"sideEffects": false,
2626
"scripts": {
2727
"dev": "vite",
28-
"build": "vue-tsc --noEmit && vite build",
28+
"build:vite": "vue-tsc --noEmit && vite build",
29+
"build:sass": "sass --no-source-map src/styles.scss dist/styles.css",
30+
"build": "npm run build:vite && npm run build:sass",
2931
"preview": "vite preview",
3032
"lint": "eslint \"**/*.{vue,ts,js}\"",
3133
"lint-fix": "eslint --fix \"**/*.{vue,ts,js}\"",
@@ -74,4 +76,4 @@
7476
"vue": "^3.2.25",
7577
"vue-tsc": "^0.29.8"
7678
}
77-
}
79+
}

0 commit comments

Comments
 (0)