Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/BFBAN/bfban-website
Browse files Browse the repository at this point in the history
  • Loading branch information
B1397KB committed Dec 31, 2024
2 parents f5ea651 + df96a1a commit e0266ba
Show file tree
Hide file tree
Showing 40 changed files with 4,952 additions and 1 deletion.
2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "BFBAN",
"version": "2.9.16",
"version": "2.9.17",
"private": true,
"scripts": {
"serve:development-legacyProvider-windows": "set NODE_OPTIONS=--openssl-legacy-provider && npm run serve:development",
Expand Down
12 changes: 12 additions & 0 deletions front/public/config/themes.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@
},
"src": ""
},
{
"type": "local",
"name": "miside",
"img": "public/theme/miside/main.png",
"themeColor": "#cd5951",
"version": "0.2",
"authorInfo": {
"authorName": "cabbagelol",
"authorUpdate": "2024-12-31"
},
"src": ""
},
{
"type": "local",
"name": "KarmaBlue",
Expand Down
105 changes: 105 additions & 0 deletions front/public/theme/miside/alert.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
@alert-prefix-cls: ~"@{css-prefix}alert";
@icon-prefix-cls: ~"@{css-prefix}icon";
@alert-text-color: @text-color;
@alert-title-color: @title-color;

.@{alert-prefix-cls}{
position: relative;
padding: 8px 48px 8px 16px;
border-radius: @border-radius-small;
color: @alert-text-color;
font-size: @font-size-base;
line-height: 16px;
margin-bottom: 10px;

&&-with-icon{
padding: 8px 48px 8px 38px;
}

&-icon {
font-size: @font-size-large;
top: 6px;
left: 12px;
position: absolute;
}

&-desc {
font-size: @font-size-base;
color: @alert-text-color;
opacity: .5;
line-height: 21px;
display: none;
text-align: justify;
}

&-success {
border: @border-width-base @border-style-base ~`colorPalette("@{success-color}", 3)`;
background-color: fade(@success-color, 10%);
.@{alert-prefix-cls}-icon {
color: @success-color;
}
}

&-info {
border: @border-width-base @border-style-base ~`colorPalette("@{primary-color}", 10)`;
background-color: fade(@primary-color, 10%);
.@{alert-prefix-cls}-icon {
color: @primary-color;
}
}

&-warning {
border: @border-width-base @border-style-base ~`colorPalette("@{warning-color}", 3)`;
background-color: fade(@warning-color, 10%);
.@{alert-prefix-cls}-icon {
color: @warning-color;
}
}

&-error {
border: @border-width-base @border-style-base ~`colorPalette("@{error-color}", 20)` !important;
background-color: fade(@error-color, 10%);
.@{alert-prefix-cls}-icon {
color: @error-color;
}
}

&-close {
.content-close(-3px);
}

&-with-desc {
padding: 16px;
position: relative;
border-radius: @border-radius-small;
margin-bottom: 10px;
color: @alert-text-color;
line-height: 1.5;
}

&-with-desc&-with-icon{
padding: 16px 16px 16px 69px;
}

&-with-desc &-desc{
display: block;
}

&-with-desc &-message {
font-size: @font-size-large;
color: @alert-title-color;
display: block;
margin-bottom: 4px;
}

&-with-desc &-icon {
top: 50%;
left: 24px;
margin-top: -24px;
font-size: 28px;
}

&-with-banner{
border-radius: 0;
}
}
201 changes: 201 additions & 0 deletions front/public/theme/miside/button.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
@btn-prefix-cls: ~"@{css-prefix}btn";

.@{btn-prefix-cls} {
.btn;
.btn-default;

&-long{
width: 100%;
}

& > .ivu-icon + span, & > span + .ivu-icon{
margin-left: 4px;
}

&-primary {
.btn-primary;
color: @text-color;

.@{btn-prefix-cls}-group:not(.@{btn-prefix-cls}-group-vertical) &:not(:first-child):not(:last-child) {
border-right-color: @btn-group-border;
border-left-color: @btn-group-border;
}

.@{btn-prefix-cls}-group:not(.@{btn-prefix-cls}-group-vertical) &:first-child {
&:not(:last-child) {
border-right-color: @btn-group-border;
&[disabled] {
border-right-color: @btn-default-border;
}
}
}

.@{btn-prefix-cls}-group:not(.@{btn-prefix-cls}-group-vertical) &:last-child:not(:first-child),
.@{btn-prefix-cls}-group:not(.@{btn-prefix-cls}-group-vertical) & + .@{btn-prefix-cls} {
border-left-color: @btn-group-border;
&[disabled] {
border-left-color: @btn-default-border;
}
}

.@{btn-prefix-cls}-group-vertical &:not(:first-child):not(:last-child) {
border-top-color: @btn-group-border;
border-bottom-color: @btn-group-border;
}

.@{btn-prefix-cls}-group-vertical &:first-child {
&:not(:last-child) {
border-bottom-color: @btn-group-border;
&[disabled] {
border-top-color: @btn-default-border;
}
}
}

.@{btn-prefix-cls}-group-vertical &:last-child:not(:first-child),
.@{btn-prefix-cls}-group-vertical & + .@{btn-prefix-cls} {
border-top-color: @btn-group-border;
&[disabled] {
border-bottom-color: @btn-default-border;
}
}
}

&-dashed{
.btn-dashed;
}

&-text{
.btn-text;
}

&-success {
.btn-color(@success-color);
}

&-warning {
.btn-color(@warning-color);
}

&-error {
.btn-color(@error-color);
}

&-info {
.btn-color(@info-color);
}

&-circle,
&-circle-outline {
.btn-circle(@btn-prefix-cls);
}

&:before {
position: absolute;
top: -1px;
left: -1px;
bottom: -1px;
right: -1px;
background: #fff;
opacity: 0.35;
content: '';
border-radius: inherit;
z-index: 1;
transition: opacity @transition-time;
pointer-events: none;
display: none;
}

&&-loading {
pointer-events: none;
position: relative;

&:before {
display: block;
}
}

&-group {
.btn-group(@btn-prefix-cls);
}

&-group-vertical {
.btn-group-vertical(@btn-prefix-cls);
}

// The new ghost in 3.0
&-ghost{
color: #fff;
background: transparent;
&:hover{
background: transparent;
}
}
&-ghost, &-dashed, &-ghost&-default{
color: #fff;
border-color: #fff;
background-color: transparent !important;

&:hover{
color: tint(@primary-color, 20%);
border-color: tint(@primary-color, 20%);
}
}
&-ghost&-primary{
color: @primary-color;
&:hover{
color: tint(@primary-color, 20%);
background: fade(tint(@primary-color, 95%), 50%);
}
}
&-ghost&-info{
color: @info-color;
&:hover{
color: tint(@info-color, 20%);
background: fade(tint(@info-color, 95%), 50%);
}
}
&-ghost&-success{
color: @success-color;
&:hover{
color: tint(@success-color, 20%);
background: fade(tint(@success-color, 95%), 50%);
}
}
&-ghost&-warning{
color: @warning-color;
&:hover{
color: tint(@warning-color, 20%);
background: fade(tint(@warning-color, 95%), 50%);
}
}
&-ghost&-error{
color: @error-color;
&:hover{
color: tint(@error-color, 20%);
background: fade(tint(@error-color, 95%), 50%);
}
}

&-ghost&-default[disabled], &-ghost&-dashed[disabled], &-ghost&-primary[disabled], &-ghost&-info[disabled], &-ghost&-success[disabled], &-ghost&-warning[disabled], &-ghost&-error[disabled]{
background: transparent !important;
color: fade(#fff, 25%);
border-color: @btn-disable-border;
}
&-ghost&-text[disabled]{
background: transparent;
color: fade(#fff, 25%);
}
}

a.@{btn-prefix-cls} {
padding-top: 0.1px;
line-height: @btn-height-base - 2px;

&-large {
line-height: @btn-height-large - 2px;
}
&-small {
line-height: @btn-height-small - 2px;
}
}
47 changes: 47 additions & 0 deletions front/public/theme/miside/card.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@card-background: tint(@primary-color, 95%);

.@{tabs-prefix-cls} {
color: @text-color;

&&-card > &-bar &-tab {
border: 1px solid transparent;
background: @card-background !important;
}

&&-card > &-bar &-tab-active {
background: transparent;
border-color: @card-background;
color: @card-background;
}
}

.@{select-dropdown-prefix-cls} {
background-color: @card-background !important;
}

@card-prefix-cls: ~"@{css-prefix}card";

.@{card-prefix-cls} {
background: @card-background;

&:hover {
border-color: #000;
}
}

@tag-prefix-cls: ~"@{css-prefix}tag";

.@{tag-prefix-cls} {
background: @background-color-base;

&-dot {
background: #2d2c2c !important;
}
}

.@{modal-prefix-cls} {
&-content {
position: relative;
background-color: #373838 !important;
}
}
Loading

0 comments on commit e0266ba

Please sign in to comment.