Skip to content

Commit

Permalink
🍅修改默认主题
Browse files Browse the repository at this point in the history
  • Loading branch information
Deali-Axy committed Jul 22, 2024
1 parent f2441c7 commit 1fad8e1
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
4 changes: 2 additions & 2 deletions src/config/settings/components/simpleui.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from config.settings.components.common import URL_PREFIX

# SimpleUI 配置
SIMPLEUI_DEFAULT_THEME = 'admin.lte.css' # 默认主题
SIMPLEUI_DEFAULT_THEME = 'purple.css' # 默认主题
# SIMPLEUI_LOGO = f'/{URL_PREFIX}static/admin/images/custom_logo.png'
SIMPLEUI_HOME_PAGE = f'/{URL_PREFIX}django-starter/admin/extend_home/'
SIMPLEUI_HOME_ICON = 'fa fa-home'
Expand All @@ -11,7 +11,7 @@
SIMPLEUI_ANALYSIS = False # 关闭使用分析
SIMPLEUI_STATIC_OFFLINE = True # 离线模式
SIMPLEUI_ICON = {
'Core': 'fa fa-cat',
'示例应用': 'fa fa-cat',
'令牌': 'fa fa-lock',
'认证令牌': 'fa fa-lock',
}
90 changes: 45 additions & 45 deletions src/static/css/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,10 @@ input[type="range"]::-ms-fill-lower {
margin-bottom: 1.25rem;
}

.-mr-1 {
margin-right: -0.25rem;
}

.mb-1 {
margin-bottom: 0.25rem;
}
Expand All @@ -1115,10 +1119,22 @@ input[type="range"]::-ms-fill-lower {
margin-bottom: 0.5rem;
}

.mb-3 {
margin-bottom: 0.75rem;
}

.mb-5 {
margin-bottom: 1.25rem;
}

.mb-6 {
margin-bottom: 1.5rem;
}

.ml-2 {
margin-left: 0.5rem;
}

.ml-3 {
margin-left: 0.75rem;
}
Expand All @@ -1143,22 +1159,6 @@ input[type="range"]::-ms-fill-lower {
margin-top: 1rem;
}

.-mr-1 {
margin-right: -0.25rem;
}

.mb-3 {
margin-bottom: 0.75rem;
}

.mb-6 {
margin-bottom: 1.5rem;
}

.ml-2 {
margin-left: 0.5rem;
}

.block {
display: block;
}
Expand Down Expand Up @@ -1489,6 +1489,11 @@ input[type="range"]::-ms-fill-lower {
padding-right: 0.5rem;
}

.px-3 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}

.px-4 {
padding-left: 1rem;
padding-right: 1rem;
Expand All @@ -1514,11 +1519,6 @@ input[type="range"]::-ms-fill-lower {
padding-bottom: 0.75rem;
}

.px-3 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}

.pb-3 {
padding-bottom: 0.75rem;
}
Expand All @@ -1543,6 +1543,16 @@ input[type="range"]::-ms-fill-lower {
text-align: center;
}

.text-2xl {
font-size: 1.5rem;
line-height: 2rem;
}

.text-3xl {
font-size: 1.875rem;
line-height: 2.25rem;
}

.text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
Expand All @@ -1558,32 +1568,22 @@ input[type="range"]::-ms-fill-lower {
line-height: 1.75rem;
}

.text-2xl {
font-size: 1.5rem;
line-height: 2rem;
}

.text-3xl {
font-size: 1.875rem;
line-height: 2.25rem;
.font-bold {
font-weight: 700;
}

.font-medium {
font-weight: 500;
}

.font-semibold {
font-weight: 600;
}

.font-bold {
font-weight: 700;
}

.font-normal {
font-weight: 400;
}

.font-semibold {
font-weight: 600;
}

.leading-6 {
line-height: 1.5rem;
}
Expand Down Expand Up @@ -1626,14 +1626,14 @@ input[type="range"]::-ms-fill-lower {
color: rgb(17 24 39 / var(--tw-text-opacity));
}

.text-white {
.text-green-800 {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
color: rgb(3 84 63 / var(--tw-text-opacity));
}

.text-green-800 {
.text-white {
--tw-text-opacity: 1;
color: rgb(3 84 63 / var(--tw-text-opacity));
color: rgb(255 255 255 / var(--tw-text-opacity));
}

.opacity-0 {
Expand Down Expand Up @@ -1715,14 +1715,14 @@ input[type="range"]::-ms-fill-lower {
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
}

.hover\:bg-white:hover {
.hover\:bg-green-800:hover {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
background-color: rgb(3 84 63 / var(--tw-bg-opacity));
}

.hover\:bg-green-800:hover {
.hover\:bg-white:hover {
--tw-bg-opacity: 1;
background-color: rgb(3 84 63 / var(--tw-bg-opacity));
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.hover\:text-blue-600:hover {
Expand Down

0 comments on commit 1fad8e1

Please sign in to comment.