Skip to content

Commit 50ec5c3

Browse files
noisysocksgithub-actions[bot]
authored andcommitted
Release build 10.5.0 [ci release]
1 parent 144965a commit 50ec5c3

File tree

35 files changed

+4491
-286
lines changed

35 files changed

+4491
-286
lines changed

CHANGELOG.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
- Duck Player Native: Mute all elements (#1779)
1+
- Use useId() for stable unique ID in omnibar aria-controls (#1791)
2+
- Add enableAi config to control Duck.ai visibility (#1790)
3+
- NTP: Add Omnibar widget UI (#1786)
4+
- Add omnibar page to new tab children list (#1788)

Sources/ContentScopeScripts/dist/pages/new-tab/dist/index.css

Lines changed: 204 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ button {
225225
--ntp-drawer-width: calc(224 * var(--px-in-rem));
226226
--ntp-drawer-scroll-width: 12px;
227227
--ntp-combined-width: calc(var(--ntp-drawer-width) + var(--ntp-drawer-scroll-width));
228+
--ntp-surface-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.13);
228229
--callout-font-size: 12px;
229230
--callout-font-weight: 400;
230231
--callout-line-height: 15px;
@@ -246,6 +247,9 @@ button {
246247
--border-radius-xs: 4px;
247248
--focus-ring: 0px 0px 0px 1px var(--color-white), 0px 0px 0px 3px var(--ntp-focus-outline-color);
248249
--focus-ring-thin: 0px 0px 0px 1px var(--ntp-focus-outline-color), 0px 0px 0px 1px var(--color-white);
250+
--duckai-purple: rgba(107, 78, 186, 1);
251+
--duckai-purple-hover: rgb(128, 101, 208);
252+
--duckai-purple-active: rgb(85, 64, 160);
249253
}
250254
body {
251255
--default-light-background-color: var(--color-gray-0);
@@ -1456,11 +1460,210 @@ body:not([data-platform-name]) .Button_button:active {
14561460

14571461
/* pages/new-tab/app/omnibar/components/Omnibar.module.css */
14581462
.Omnibar_root {
1463+
margin-bottom: var(--ntp-gap);
1464+
position: relative;
1465+
}
1466+
.Omnibar_logoWrap {
1467+
display: flex;
1468+
flex-direction: column;
14591469
align-items: center;
1460-
border: 1px solid red;
1470+
}
1471+
.Omnibar_tabListWrap {
14611472
display: flex;
1473+
justify-content: center;
1474+
margin-top: 24px;
1475+
}
1476+
.Omnibar_formWrap {
1477+
height: 48px;
1478+
margin-top: 16px;
1479+
position: relative;
1480+
z-index: 1;
1481+
}
1482+
[data-mode=ai] .Omnibar_formWrap {
14621483
height: 96px;
1484+
}
1485+
.Omnibar_form {
1486+
border-radius: 16px;
1487+
background-color: #fff;
1488+
box-shadow: var(--ntp-surface-shadow);
1489+
}
1490+
.Omnibar_tabList {
1491+
display: flex;
1492+
background: var(--color-black-at-6);
1493+
padding: 4px;
1494+
border-radius: 999px;
1495+
gap: 4px;
1496+
width: auto;
1497+
}
1498+
.Omnibar_tab {
1499+
padding: 8px 16px;
1500+
border: none;
1501+
background: transparent;
1502+
cursor: pointer;
1503+
border-radius: 99px;
1504+
white-space: nowrap;
1505+
display: flex;
1506+
align-items: center;
1507+
gap: 6px;
1508+
font-weight: 600;
1509+
transition: background .2s;
1510+
}
1511+
.Omnibar_tab svg {
1512+
width: 16px;
1513+
height: 16px;
1514+
}
1515+
.Omnibar_tab:hover {
1516+
background: var(--color-black-at-9);
1517+
}
1518+
.Omnibar_tab[aria-selected=true] {
1519+
background: var(--color-white);
1520+
box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.08), 0px 2px 4px 0px rgba(0, 0, 0, 0.10);
1521+
}
1522+
.Omnibar_tab[aria-selected=true] .Omnibar_searchIcon {
1523+
color: blue;
1524+
}
1525+
.Omnibar_tab[aria-selected=true] .Omnibar_aiChatIcon {
1526+
color: var(--duckai-purple);
1527+
}
1528+
.Omnibar_inputRoot {
1529+
position: relative;
1530+
width: 100%;
1531+
margin: 0 auto;
1532+
padding: 8px 8px;
1533+
display: flex;
1534+
flex-direction: column;
1535+
gap: 8px;
1536+
}
1537+
::view-transition-new(omnibar-input-transition) {
1538+
animation: 0.25s Omnibar_grow-y;
1539+
}
1540+
.Omnibar_inputContainer {
1541+
position: relative;
1542+
display: flex;
1543+
align-items: center;
1544+
height: 32px;
1545+
}
1546+
.Omnibar_input {
1547+
flex: 1;
1548+
height: 32px;
1549+
padding: 0;
1550+
padding: 0 8px;
1551+
border: none;
1552+
font-size: 16px;
1553+
outline: none;
1554+
color: #202124;
1555+
background-color: transparent;
1556+
}
1557+
.Omnibar_input::placeholder {
1558+
color: #9aa0a6;
1559+
}
1560+
.Omnibar_inputActions {
1561+
display: flex;
1562+
align-items: center;
1563+
}
1564+
.Omnibar_inputAction {
1565+
display: flex;
1566+
align-items: center;
14631567
justify-content: center;
1568+
width: 40px;
1569+
height: 32px;
1570+
border: none;
1571+
background-color: transparent;
1572+
cursor: pointer;
1573+
transition: background-color 0.2s;
1574+
padding: 0;
1575+
}
1576+
.Omnibar_inputAction svg {
1577+
width: 16px;
1578+
height: 16px;
1579+
}
1580+
.Omnibar_inputAction .Omnibar_aiChatIcon {
1581+
color: var(--color-black-at-84);
1582+
}
1583+
.Omnibar_inputAction:hover {
1584+
background-color: rgba(60, 64, 67, 0.08);
1585+
}
1586+
.Omnibar_inputAction.Omnibar_active {
1587+
color: #1a73e8;
1588+
}
1589+
.Omnibar_separator {
1590+
height: 24px;
1591+
width: 1px;
1592+
background-color: #dadce0;
1593+
margin: 0 8px;
1594+
}
1595+
.Omnibar_squareButton {
1596+
width: 40px;
1597+
height: 40px;
1598+
border: none;
1599+
background-color: transparent;
1600+
cursor: pointer;
1601+
transition: background-color 0.2s;
1602+
padding: 0;
1603+
border-radius: 8px;
1604+
position: relative;
1605+
}
1606+
.Omnibar_squareButton svg {
1607+
position: absolute;
1608+
left: 50%;
1609+
top: 50%;
1610+
transform: translate(-50%, -50%);
1611+
}
1612+
.Omnibar_aiSubmitButton {
1613+
background-color: var(--duckai-purple);
1614+
color: #fff;
1615+
position: relative;
1616+
width: 32px;
1617+
height: 32px;
1618+
}
1619+
.Omnibar_aiSubmitButton:hover {
1620+
background-color: var(--duckai-purple-hover);
1621+
}
1622+
.Omnibar_aiSubmitButton:active {
1623+
background-color: var(--duckai-purple-active);
1624+
}
1625+
1626+
/* pages/new-tab/app/omnibar/components/SuggestionList.module.css */
1627+
.SuggestionList_list {
1628+
top: 100%;
1629+
width: 100%;
1630+
background: white;
1631+
z-index: 1;
1632+
border-bottom-right-radius: 16px;
1633+
border-bottom-left-radius: 16px;
1634+
border-top: 1px solid var(--color-black-at-6);
1635+
display: flex;
1636+
flex-direction: column;
1637+
gap: 4px;
1638+
}
1639+
.SuggestionList_list:not(:empty) {
1640+
padding: 8px;
1641+
}
1642+
.SuggestionList_item {
1643+
display: flex;
1644+
align-items: center;
1645+
text-decoration: none;
1646+
font-size: var(--title-3-em-font-size);
1647+
padding: 4px 8px;
1648+
color: var(--ntp-text-normal);
1649+
background-color: transparent;
1650+
border: 0;
1651+
text-align: left;
1652+
cursor: pointer;
1653+
gap: 8px;
1654+
}
1655+
.SuggestionList_item svg {
1656+
width: 16px;
1657+
height: 16px;
1658+
display: block;
1659+
}
1660+
.SuggestionList_item svg path {
1661+
fill-opacity: 1 !important;
1662+
}
1663+
.SuggestionList_item[aria-selected=true] {
1664+
background: var(--ddg-color-primary);
1665+
color: white;
1666+
border-radius: 4px;
14641667
}
14651668

14661669
/* pages/new-tab/app/protections/components/Protections.module.css */

0 commit comments

Comments
 (0)