Skip to content

Commit

Permalink
Better login page & css correction (#1368)
Browse files Browse the repository at this point in the history
* Update custom.css

* Update login.html

* Update inbounds.html

* Update custom.css

* Update custom.css
  • Loading branch information
TaraRostami authored and MHSanaei committed Dec 14, 2023
1 parent 653e26d commit b9b7413
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 15 deletions.
52 changes: 51 additions & 1 deletion web/assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,13 @@ style attribute {
user-select: none;
}

.ant-calendar-date,
.ant-calendar-year-panel-year,
.ant-calendar-decade-panel-decade,
.ant-calendar-month-panel-month {
border-radius: 5px;
}

.ant-calendar-date:hover {
background-color: rgb(232 244 242);
}
Expand Down Expand Up @@ -908,7 +915,7 @@ li.ant-select-dropdown-menu-item:empty:after {
.ant-select-dropdown.ant-select-dropdown--multiple
.ant-select-dropdown-menu-item-selected:hover
.ant-select-selected-icon {
color: #3c89e8;
color: #008771;
}
.ant-select-selection:hover,
.ant-input-number-focused,
Expand Down Expand Up @@ -1049,3 +1056,46 @@ li.ant-select-dropdown-menu-item:empty:after {
.ant-input-number {
overflow: clip;
}

.ant-modal-body,
.ant-collapse-content>.ant-collapse-content-box {
overflow-x: auto;
}

.ant-calendar-year-panel-year:hover,
.ant-calendar-decade-panel-decade:hover,
.ant-calendar-month-panel-month:hover,
.ant-dropdown-menu-item:hover,
.ant-dropdown-menu-submenu-title:hover,
.ant-select-dropdown-menu-item-active:not(.ant-select-dropdown-menu-item-disabled),
.ant-select-dropdown-menu-item:hover:not(.ant-select-dropdown-menu-item-disabled),
.ant-table-tbody
> tr.ant-table-row-hover:not(.ant-table-expanded-row):not(
.ant-table-row-selected
)
> td,
.ant-table-tbody
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
> td,
.ant-table-thead
> tr.ant-table-row-hover:not(.ant-table-expanded-row):not(
.ant-table-row-selected
)
> td,
.ant-table-thead
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
> td {
background-color: rgb(232 244 242);
}

.dark .ant-dropdown-menu-item:hover,
.dark .ant-dropdown-menu-submenu-title:hover,
.dark .ant-select-dropdown-menu-item-active:not(.ant-select-dropdown-menu-item-disabled),
.dark .ant-select-dropdown-menu-item:hover:not(.ant-select-dropdown-menu-item-disabled) {
background-color: #313f5a;
}

.ant-popover-inner-content {
max-height: 400px;
overflow-y: auto;
}
18 changes: 6 additions & 12 deletions web/html/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,23 @@
.wave {
opacity: 0.6;
position: absolute;
bottom: 40%;
left: 50%;
top: 80%;
left: 60%;
width: 6000px;
height: 6000px;
background-color: rgba(0, 135, 113, 0.08);
margin-left: -3000px;
transform-origin: 50% 48%;
border-radius: 46%;
transform-origin: 50% 50%;
pointer-events: none;
rotate: 125deg;
rotate: 115deg;
}
.wave2 {
opacity: 0.4;
rotate: 70deg;
rotate: 105deg;
}
.wave3 {
opacity: 0.2;
rotate: 90deg;
rotate: 62deg;
}
.under {
background-color: #dbf5ed;
Expand All @@ -98,11 +97,6 @@
}

.ant-btn-primary-login {
color: #008771;
background-color: #e8f4f2;
border-color: #a2d3cb;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
box-shadow: none;
width: 100%;
}
.ant-btn-primary-login:focus,
Expand Down
4 changes: 2 additions & 2 deletions web/html/xui/inbounds.html
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@
:columns="isMobile ? innerMobileColumns : innerColumns"
:data-source="getInboundClients(record)"
:pagination=pagination(getInboundClients(record))
style="margin: -12px -6px -13px;">
style="margin: -12px 2px -13px;">
{{template "client_table"}}
</a-table>
</template>
Expand Down Expand Up @@ -1310,4 +1310,4 @@
{{template "clientsBulkModal"}}

</body>
</html>
</html>
1 change: 1 addition & 0 deletions web/html/xui/xray.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{{template "head" .}}
<link rel="stylesheet" href="{{ .base_path }}assets/codemirror/codemirror.css">
<link rel="stylesheet" href="{{ .base_path }}assets/codemirror/fold/foldgutter.css">
<link rel="stylesheet" href="{{ .base_path }}assets/codemirror/xq.css?{{ .cur_ver }}">
<link rel="stylesheet" href="{{ .base_path }}assets/codemirror/lint/lint.css">

<script src="{{ .base_path }}assets/js/model/outbound.js"></script>
Expand Down

0 comments on commit b9b7413

Please sign in to comment.