Skip to content

Commit bd24a2e

Browse files
committed
tailwindcss
1 parent 3943fd5 commit bd24a2e

File tree

1 file changed

+11
-23
lines changed

1 file changed

+11
-23
lines changed

src/ocamlorg_frontend/css/partials/in_package_search.css

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
#in-package-search-results h2 {
2-
margin: 0;
3-
}
4-
51
#in-package-search-results ol {
6-
margin: 0;
7-
list-style:none;
8-
padding:0;
2+
@apply m-0 p-0 list-none;
93
}
104

115
#in-package-search-results li {
12-
margin: 0;
13-
padding: 0;
14-
border-bottom: 1px solid gainsboro;
6+
@apply m-0 p-0 border-b;
157
}
168

179
#in-package-search-results br {
18-
display: none;
10+
@apply hidden;
1911
}
2012

2113
#in-package-search-results .search-entry {
@@ -30,18 +22,16 @@
3022

3123
@media (min-width: 64em) {
3224
#in-package-search-results .search-entry {
33-
flex-direction:row;
25+
@apply flex-row;
3426
}
3527

3628
#in-package-search-results .search-entry .entry-title {
37-
width: 50%;
38-
flex-shrink: 0;
29+
@apply shrink-0 w-1/2;
3930
}
4031
}
4132

4233
#in-package-search-results .search-entry .entry-kind {
43-
@apply py-0.5 px-1 bg-body-600 text-white rounded mr-2;
44-
font-size: 0.8rem;
34+
@apply py-0.5 px-1 bg-body-600 text-white rounded mr-2 text-sm;
4535
}
4636

4737
#in-package-search-results .search-entry .entry-kind {
@@ -93,18 +83,16 @@
9383
}
9484

9585
#in-package-search-results .search-entry .entry-name {
96-
font-weight:bold;
86+
@apply font-bold;
9787
color: var(--entry-color);
9888
}
9989

10090
#in-package-search-results .search-entry .prefix-name {
101-
font-weight:600;
91+
@apply font-semibold;
10292
}
10393

10494
#in-package-search-results .search-entry .entry-comment {
105-
white-space:nowrap;
106-
overflow:hidden;
107-
text-overflow: ellipsis;
95+
@apply whitespace-nowrap overflow-hidden text-ellipsis;
10896
}
10997

11098
#in-package-search-results .active {
@@ -113,9 +101,9 @@
113101

114102

115103
#in-package-search #in-package-search-results {
116-
display:hidden;
104+
@apply hidden;
117105
}
118106

119107
#in-package-search:focus-within #in-package-search-results {
120-
display:block;
108+
@apply block;
121109
}

0 commit comments

Comments
 (0)