Skip to content

Commit 96e3b73

Browse files
committed
Merge branch 'main' of https://github.com/coreui/coreui
2 parents 565683b + 3b3dbf1 commit 96e3b73

File tree

4 files changed

+500
-558
lines changed

4 files changed

+500
-558
lines changed

build/llm.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ CoreUI builds upon Bootstrap by providing production-ready components, advanced
106106
`
107107

108108
const groupOrder = ['components', 'forms', 'utilities', 'helpers']
109-
const sortedGroups = Object.keys(sections).sort((a, b) => {
109+
const sortedGroups = Object.keys(sections).toSorted((a, b) => {
110110
const ai = groupOrder.indexOf(a)
111111
const bi = groupOrder.indexOf(b)
112112
return (ai === -1 ? 999 : ai) - (bi === -1 ? 999 : bi)
@@ -116,7 +116,7 @@ CoreUI builds upon Bootstrap by providing production-ready components, advanced
116116
indexContent += `## 📁 ${
117117
group.charAt(0).toUpperCase() + group.slice(1)
118118
}\n\n`
119-
for (const item of sections[group].sort((a, b) =>
119+
for (const item of sections[group].toSorted((a, b) =>
120120
a.title.localeCompare(b.title)
121121
)) {
122122
indexContent += `- [${item.title}](${item.path})\n`
@@ -146,7 +146,7 @@ async function generateSingleMergedFile() {
146146
let mergedContent = `# 🧠 CoreUI LLM Knowledge Base\n\n`
147147
mergedContent += `This file contains all CoreUI documentation files in a format optimized for large language models (LLMs).\n\n`
148148

149-
for (const filePath of allFiles.sort()) {
149+
for (const filePath of allFiles.toSorted()) {
150150
const relPath = path.relative(inputDir, filePath)
151151
const relativeDir = relPath.split(path.sep)[0]
152152

docs/assets/scss/search.scss

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
// stylelint-disable selector-class-pattern
2020
:root {
2121
--docsearch-primary-color: var(--cui-primary);
22+
--docsearch-muted-color: var(--cui-secondary-color);
2223
--docsearch-logo-color: var(--cui-primary);
24+
--docsearch-key-color: var(--cui-secondary-color);
2325
}
2426

2527
@include color-mode(dark, true) {
@@ -43,7 +45,6 @@
4345
}
4446

4547
.DocSearch-Container {
46-
--docsearch-muted-color: var(--cui-secondary-color);
4748
--docsearch-hit-shadow: none;
4849

4950
position: fixed;
@@ -74,7 +75,8 @@
7475
@include box-shadow($input-box-shadow);
7576
@include transition($input-transition);
7677

77-
&:focus {
78+
&:focus,
79+
&:hover {
7880
color: $input-focus-color;
7981
background-color: $input-focus-bg;
8082
border-color: $input-focus-border-color;
@@ -87,10 +89,6 @@
8789
}
8890
}
8991

90-
&:hover:not(:disabled):not([readonly])::file-selector-button {
91-
background-color: $form-file-button-hover-bg;
92-
}
93-
9492
@include media-breakpoint-down(md) {
9593
&,
9694
&:hover,
@@ -109,32 +107,29 @@
109107
.DocSearch-Button-Keys {
110108
min-width: 0;
111109
padding: 0 .25rem;
112-
background: rgba($black, .125);
110+
background: var(--cui-secondary-bg);
113111
@include border-radius(.25rem);
114112
}
115113

116114
.DocSearch-Button-Key {
117-
top: 0;
118115
width: auto;
119-
height: 1.5rem;
120-
padding: 0 .125rem;
121-
margin-right: 0;
122-
font-size: .875rem;
116+
padding: 0;
123117
background: none;
118+
border: 0;
124119
box-shadow: none;
125-
}
126120

127-
.DocSearch-Commands-Key {
128-
padding-left: 1px;
129-
font-size: .875rem;
130-
background-color: rgba($black, .1);
131-
background-image: none;
132-
box-shadow: none;
121+
&:first-child {
122+
margin-right: 0;
123+
}
133124
}
134125

135-
.DocSearch-Form {
136-
@include border-radius(var(--cui-border-radius));
137-
}
126+
// .DocSearch-Commands-Key {
127+
// padding-left: 1px;
128+
// font-size: .875rem;
129+
// background-color: rgba($black, .1);
130+
// background-image: none;
131+
// box-shadow: none;
132+
// }
138133

139134
.DocSearch-Hits {
140135
mark {

0 commit comments

Comments
 (0)