Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions packages/oc-docs/src/components/EnvSwitcher/StyledWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ export const StyledWrapper = styled.div`
display: inline-flex;
align-items: center;
gap: 0.4375rem;
padding: 0.21875rem 0.5rem;
height: 1.75rem;
padding: 0 0.5rem;
box-sizing: border-box;
background: var(--oc-app-collection-toolbar-environment-selector-bg);
border: 1px solid var(--oc-border-border1);
border: 0.0625rem solid var(--oc-border-border1);
Comment thread
sundram-bruno marked this conversation as resolved.
border-radius: var(--oc-radius);
cursor: pointer;
font-family: var(--font-sans);
font-size: 12px;
font-size: 0.75rem;
font-weight: 500;
color: var(--oc-app-collection-toolbar-environment-selector-text);
transition: border-color 0.12s ease;
Expand All @@ -39,12 +40,12 @@ export const StyledWrapper = styled.div`
}

.env-switcher-trigger-name {
max-width: 160px;
max-width: 10rem;
}

@media (max-width: 640px) {
.env-switcher-trigger-name {
max-width: 72px;
max-width: 4.5rem;
}
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export const StyledWrapper = styled.span`
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
height: 28px;
gap: 0.375rem;
height: 1.75rem;
box-sizing: border-box;
font-family: var(--font-sans);
font-size: var(--oc-font-size-sm);
Expand All @@ -15,13 +15,13 @@ export const StyledWrapper = styled.span`
cursor: pointer;
color: var(--oc-brand);
background: var(--oc-background-base);
border: 1px solid var(--oc-brand);
border: 0.0625rem solid var(--oc-brand);
border-radius: var(--oc-radius);
transition: background-color 0.12s ease, opacity 0.12s ease;

svg {
width: 16px;
height: 16px;
width: 1rem;
height: 1rem;
flex: none;
}

Expand All @@ -30,11 +30,11 @@ export const StyledWrapper = styled.span`
}

&.is-full {
padding: 5px 10px;
padding: 0.3125rem 0.625rem;
}

&.is-icon {
width: 28px;
width: 1.75rem;
padding: 0;
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const StyledWrapper = styled.div`
display: flex;
flex-direction: column;
background: var(--oc-background-mantle);
border: 1px solid var(--oc-border-border0);
border: 0.0625rem solid var(--oc-border-border0);
border-radius: var(--oc-radius);
overflow: hidden;
}
Expand Down Expand Up @@ -118,7 +118,7 @@ export const StyledWrapper = styled.div`
padding: 0 0.75rem;
box-sizing: border-box;
flex-shrink: 0;
border-bottom: 1px solid var(--oc-border-border0);
border-bottom: 0.0625rem solid var(--oc-border-border0);
}
[data-testid='search-folder-filter'],
.search-clear {
Expand Down
22 changes: 11 additions & 11 deletions packages/oc-docs/src/components/ShowVarsToggle/StyledWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import styled from '@emotion/styled';
export const StyledWrapper = styled.button`
display: inline-flex;
align-items: center;
gap: 8px;
gap: 0.5rem;
flex: none;
padding: 0;
background: transparent;
border: none;
cursor: pointer;
font-family: var(--font-sans);
font-size: 12px;
font-size: 0.75rem;
font-weight: 500;
color: var(--text-secondary);
transition: color 0.12s ease;
Expand All @@ -27,8 +27,8 @@ export const StyledWrapper = styled.button`

.show-vars-track {
position: relative;
width: 30px;
height: 16px;
width: 1.875rem;
height: 1rem;
flex: none;
border-radius: 999px;
background: var(--oc-border-border2);
Expand All @@ -37,10 +37,10 @@ export const StyledWrapper = styled.button`

.show-vars-thumb {
position: absolute;
top: 2px;
left: 2px;
width: 12px;
height: 12px;
top: 0.125rem;
left: 0.125rem;
width: 0.75rem;
height: 0.75rem;
border-radius: 50%;
background: var(--oc-background-base);
transition: transform 0.16s ease;
Expand All @@ -51,12 +51,12 @@ export const StyledWrapper = styled.button`
}

&[aria-checked='true'] .show-vars-thumb {
transform: translateX(14px);
transform: translateX(0.875rem);
}

&:focus-visible {
outline: 2px solid var(--oc-brand);
outline-offset: 2px;
outline: 0.125rem solid var(--oc-brand);
outline-offset: 0.125rem;
border-radius: var(--oc-border-radius-base);
}
`;
10 changes: 5 additions & 5 deletions packages/oc-docs/src/components/ThemeToggle/ThemeToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ const Button = styled.button`
align-items: center;
justify-content: center;
flex: none;
width: 26px;
height: 26px;
width: 1.75rem;
height: 1.75rem;
background: transparent;
color: var(--oc-colors-text-muted, var(--oc-text));
border: 1px solid var(--oc-border-border0);
border: 0.0625rem solid var(--oc-border-border0);
border-radius: var(--oc-radius);
cursor: pointer;
transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;

svg {
width: 14px;
height: 14px;
width: 0.875rem;
height: 0.875rem;
}

&:hover {
Expand Down
Loading