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
Hide 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 = {
...
@@ -63,6 +63,7 @@ const variants = {
const
Button
:
ComponentStyleConfig
=
{
const
Button
:
ComponentStyleConfig
=
{
baseStyle
:
{
baseStyle
:
{
fontWeight
:
'
normal
'
,
fontWeight
:
'
normal
'
,
borderRadius
:
'
base
'
,
},
},
variants
,
variants
,
sizes
:
{
sizes
:
{
...
...
theme/components/Table.ts
View file @
7d046cb2
...
@@ -45,8 +45,8 @@ const Table: ComponentMultiStyleConfig = {
...
@@ -45,8 +45,8 @@ const Table: ComponentMultiStyleConfig = {
},
},
table
:
{
table
:
{
tableLayout
:
'
fixed
'
,
tableLayout
:
'
fixed
'
,
borderTopLeftRadius
:
'
md
'
,
borderTopLeftRadius
:
'
base
'
,
borderTopRightRadius
:
'
md
'
,
borderTopRightRadius
:
'
base
'
,
overflow
:
'
hidden
'
,
overflow
:
'
hidden
'
,
fontVariant
:
'
normal
'
,
fontVariant
:
'
normal
'
,
},
},
...
...
theme/components/Tabs.ts
View file @
7d046cb2
...
@@ -3,21 +3,23 @@ import type { ComponentStyleConfig } from '@chakra-ui/theme';
...
@@ -3,21 +3,23 @@ import type { ComponentStyleConfig } from '@chakra-ui/theme';
import
type
{
import
type
{
PartsStyleFunction
,
PartsStyleFunction
,
}
from
'
@chakra-ui/theme-tools
'
;
}
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
variantSoftRounded
:
PartsStyleFunction
<
typeof
parts
>
=
(
props
)
=>
{
const
{
colorScheme
:
c
,
theme
}
=
props
;
return
{
return
{
tab
:
{
tab
:
{
borderRadius
:
'
12px
'
,
borderRadius
:
'
base
'
,
fontWeight
:
'
semibold
'
,
fontWeight
:
'
600
'
,
color
:
'
gray.600
'
,
color
:
mode
(
'
blue.700
'
,
'
gray.400
'
)(
props
)
,
_selected
:
{
_selected
:
{
color
:
getColor
(
theme
,
`
${
c
}
.700`
),
color
:
mode
(
'
blue.700
'
,
'
gray.50
'
)(
props
),
bg
:
getColor
(
theme
,
`
${
c
}
.50`
),
bg
:
mode
(
'
blue.50
'
,
'
gray.800
'
)(
props
),
_hover
:
{
color
:
mode
(
'
blue.700
'
,
'
gray.50
'
)(
props
),
},
},
},
_hover
:
{
_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) => {
...
@@ -10,7 +10,7 @@ const variantGray: PartsStyleFunction<typeof parts> = (props) => {
return
{
return
{
container
:
{
container
:
{
bg
:
mode
(
'
gray.200
'
,
'
gray.6
00
'
)(
props
),
bg
:
mode
(
'
blackAlpha.100
'
,
'
whiteAlpha.4
00
'
)(
props
),
color
:
mode
(
'
gray.600
'
,
'
gray.50
'
)(
props
),
color
:
mode
(
'
gray.600
'
,
'
gray.50
'
)(
props
),
...
transitionProps
,
...
transitionProps
,
},
},
...
@@ -27,7 +27,7 @@ const Tag: ComponentStyleConfig = {
...
@@ -27,7 +27,7 @@ const Tag: ComponentStyleConfig = {
display
:
'
inline-block
'
,
display
:
'
inline-block
'
,
overflow
:
'
hidden
'
,
overflow
:
'
hidden
'
,
textOverflow
:
'
ellipsis
'
,
textOverflow
:
'
ellipsis
'
,
borderRadius
:
'
md
'
,
borderRadius
:
'
sm
'
,
},
},
},
},
variants
,
variants
,
...
...
theme/foundations/borders.ts
View file @
7d046cb2
...
@@ -2,8 +2,8 @@ const borders = {
...
@@ -2,8 +2,8 @@ const borders = {
radii
:
{
radii
:
{
none
:
'
0
'
,
none
:
'
0
'
,
sm
:
'
4px
'
,
sm
:
'
4px
'
,
md
:
'
8px
'
,
base
:
'
8px
'
,
base
:
'
12px
'
,
md
:
'
12px
'
,
lg
:
'
24px
'
,
lg
:
'
24px
'
,
full
:
'
9999px
'
,
full
:
'
9999px
'
,
},
},
...
...
ui/navigation/AccountNavLink.tsx
View file @
7d046cb2
...
@@ -28,7 +28,7 @@ const AccountNavLink = ({ text, pathname, icon }: Props) => {
...
@@ -28,7 +28,7 @@ const AccountNavLink = ({ text, pathname, icon }: Props) => {
color=
{
isActive
?
colors
.
text
.
active
:
colors
.
text
.
default
}
color=
{
isActive
?
colors
.
text
.
active
:
colors
.
text
.
default
}
bgColor=
{
isActive
?
colors
.
bg
.
active
:
colors
.
bg
.
default
}
bgColor=
{
isActive
?
colors
.
bg
.
active
:
colors
.
bg
.
default
}
_hover=
{
{
color
:
isActive
?
colors
.
text
.
active
:
colors
.
text
.
hover
}
}
_hover=
{
{
color
:
isActive
?
colors
.
text
.
active
:
colors
.
text
.
hover
}
}
borderRadius=
"
md
"
borderRadius=
"
base
"
>
>
<
HStack
spacing=
{
3
}
>
<
HStack
spacing=
{
3
}
>
<
Icon
as=
{
icon
}
boxSize=
"30px"
/>
<
Icon
as=
{
icon
}
boxSize=
"30px"
/>
...
...
ui/navigation/MainNavLink.tsx
View file @
7d046cb2
...
@@ -28,7 +28,7 @@ const MainNavLink = ({ text, pathname, icon }: Props) => {
...
@@ -28,7 +28,7 @@ const MainNavLink = ({ text, pathname, icon }: Props) => {
color=
{
isActive
?
colors
.
text
.
active
:
colors
.
text
.
default
}
color=
{
isActive
?
colors
.
text
.
active
:
colors
.
text
.
default
}
bgColor=
{
isActive
?
colors
.
bg
.
active
:
colors
.
bg
.
default
}
bgColor=
{
isActive
?
colors
.
bg
.
active
:
colors
.
bg
.
default
}
_hover=
{
{
color
:
isActive
?
colors
.
text
.
active
:
colors
.
text
.
hover
}
}
_hover=
{
{
color
:
isActive
?
colors
.
text
.
active
:
colors
.
text
.
hover
}
}
borderRadius=
"
md
"
borderRadius=
"
base
"
>
>
<
HStack
spacing=
{
3
}
>
<
HStack
spacing=
{
3
}
>
<
Icon
as=
{
icon
}
boxSize=
"30px"
/>
<
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