Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
7d046cb2
Commit
7d046cb2
authored
Aug 11, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tabs and radiuses
parent
294942e4
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
16 deletions
+19
-16
Button.ts
theme/components/Button.ts
+1
-0
Table.ts
theme/components/Table.ts
+2
-2
Tabs.ts
theme/components/Tabs.ts
+10
-8
Tag.ts
theme/components/Tag.ts
+2
-2
borders.ts
theme/foundations/borders.ts
+2
-2
AccountNavLink.tsx
ui/navigation/AccountNavLink.tsx
+1
-1
MainNavLink.tsx
ui/navigation/MainNavLink.tsx
+1
-1
No files found.
theme/components/Button.ts
View file @
7d046cb2
...
...
@@ -63,6 +63,7 @@ const variants = {
const
Button
:
ComponentStyleConfig
=
{
baseStyle
:
{
fontWeight
:
'
normal
'
,
borderRadius
:
'
base
'
,
},
variants
,
sizes
:
{
...
...
theme/components/Table.ts
View file @
7d046cb2
...
...
@@ -45,8 +45,8 @@ const Table: ComponentMultiStyleConfig = {
},
table
:
{
tableLayout
:
'
fixed
'
,
borderTopLeftRadius
:
'
md
'
,
borderTopRightRadius
:
'
md
'
,
borderTopLeftRadius
:
'
base
'
,
borderTopRightRadius
:
'
base
'
,
overflow
:
'
hidden
'
,
fontVariant
:
'
normal
'
,
},
...
...
theme/components/Tabs.ts
View file @
7d046cb2
...
...
@@ -3,21 +3,23 @@ import type { ComponentStyleConfig } from '@chakra-ui/theme';
import
type
{
PartsStyleFunction
,
}
from
'
@chakra-ui/theme-tools
'
;
import
{
getColor
}
from
'
@chakra-ui/theme-tools
'
;
import
{
mode
}
from
'
@chakra-ui/theme-tools
'
;
const
variantSoftRounded
:
PartsStyleFunction
<
typeof
parts
>
=
(
props
)
=>
{
const
{
colorScheme
:
c
,
theme
}
=
props
;
return
{
tab
:
{
borderRadius
:
'
12px
'
,
fontWeight
:
'
semibold
'
,
color
:
'
gray.600
'
,
borderRadius
:
'
base
'
,
fontWeight
:
'
600
'
,
color
:
mode
(
'
blue.700
'
,
'
gray.400
'
)(
props
)
,
_selected
:
{
color
:
getColor
(
theme
,
`
${
c
}
.700`
),
bg
:
getColor
(
theme
,
`
${
c
}
.50`
),
color
:
mode
(
'
blue.700
'
,
'
gray.50
'
)(
props
),
bg
:
mode
(
'
blue.50
'
,
'
gray.800
'
)(
props
),
_hover
:
{
color
:
mode
(
'
blue.700
'
,
'
gray.50
'
)(
props
),
},
},
_hover
:
{
color
:
getColor
(
theme
,
`
${
c
}
.400`
)
,
color
:
'
blue.400
'
,
},
},
};
...
...
theme/components/Tag.ts
View file @
7d046cb2
...
...
@@ -10,7 +10,7 @@ const variantGray: PartsStyleFunction<typeof parts> = (props) => {
return
{
container
:
{
bg
:
mode
(
'
gray.200
'
,
'
gray.6
00
'
)(
props
),
bg
:
mode
(
'
blackAlpha.100
'
,
'
whiteAlpha.4
00
'
)(
props
),
color
:
mode
(
'
gray.600
'
,
'
gray.50
'
)(
props
),
...
transitionProps
,
},
...
...
@@ -27,7 +27,7 @@ const Tag: ComponentStyleConfig = {
display
:
'
inline-block
'
,
overflow
:
'
hidden
'
,
textOverflow
:
'
ellipsis
'
,
borderRadius
:
'
md
'
,
borderRadius
:
'
sm
'
,
},
},
variants
,
...
...
theme/foundations/borders.ts
View file @
7d046cb2
...
...
@@ -2,8 +2,8 @@ const borders = {
radii
:
{
none
:
'
0
'
,
sm
:
'
4px
'
,
md
:
'
8px
'
,
base
:
'
12px
'
,
base
:
'
8px
'
,
md
:
'
12px
'
,
lg
:
'
24px
'
,
full
:
'
9999px
'
,
},
...
...
ui/navigation/AccountNavLink.tsx
View file @
7d046cb2
...
...
@@ -28,7 +28,7 @@ const AccountNavLink = ({ text, pathname, icon }: Props) => {
color=
{
isActive
?
colors
.
text
.
active
:
colors
.
text
.
default
}
bgColor=
{
isActive
?
colors
.
bg
.
active
:
colors
.
bg
.
default
}
_hover=
{
{
color
:
isActive
?
colors
.
text
.
active
:
colors
.
text
.
hover
}
}
borderRadius=
"
md
"
borderRadius=
"
base
"
>
<
HStack
spacing=
{
3
}
>
<
Icon
as=
{
icon
}
boxSize=
"30px"
/>
...
...
ui/navigation/MainNavLink.tsx
View file @
7d046cb2
...
...
@@ -28,7 +28,7 @@ const MainNavLink = ({ text, pathname, icon }: Props) => {
color=
{
isActive
?
colors
.
text
.
active
:
colors
.
text
.
default
}
bgColor=
{
isActive
?
colors
.
bg
.
active
:
colors
.
bg
.
default
}
_hover=
{
{
color
:
isActive
?
colors
.
text
.
active
:
colors
.
text
.
hover
}
}
borderRadius=
"
md
"
borderRadius=
"
base
"
>
<
HStack
spacing=
{
3
}
>
<
Icon
as=
{
icon
}
boxSize=
"30px"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment