Swiches Client Web app from Blazor to ASP.NET Core MVC

This commit is contained in:
BinaryAlley committed 2024-10-02 22:19:14 +03:00
1 parent cf94676666
commit 9a7d4c607d
35 files changed
+4066 -1853

No files matched your search

@@ -1,61 +0,0 @@
#blazor-error-ui {
background: lightyellow;
bottom: 0;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
display: none;
left: 0;
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
position: fixed;
width: 100%;
z-index: 1000;
}
#blazor-error-ui .dismiss {
cursor: pointer;
position: absolute;
right: 0.75rem;
top: 0.5rem;
}
.blazor-error-boundary {
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
padding: 1rem 1rem 1rem 3.7rem;
color: white;
}
.blazor-error-boundary::after {
content: "An error has occurred."
}
.loading-progress {
position: relative;
display: block;
width: 8rem;
height: 8rem;
margin: 20vh auto 1rem auto;
}
.loading-progress circle {
fill: none;
stroke: #e0e0e0;
stroke-width: 0.6rem;
transform-origin: 50% 50%;
transform: rotate(-90deg);
}
.loading-progress circle:last-child {
stroke: #1b6ec2;
stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
position: absolute;
text-align: center;
font-weight: bold;
inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}
.loading-progress-text:after {
content: var(--blazor-load-percentage-text, "Loading");
}
@@ -0,0 +1,161 @@
.abort-button {
text-decoration: none;
border-radius: 4px;
border: solid 1px;
border-color: #006666 #004030 #003020 #006666;
background: linear-gradient(to bottom, #90AEA6 0%, #336659 50%, #004030 50%, #004030 100%);
color: #999999;
position: relative;
overflow: hidden;
transition: all 0.3s;
cursor: pointer;
outline: none;
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
z-index: 1;
}
.abort-button:before {
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 50%;
background: radial-gradient(circle at center, #00FF00, transparent);
background-size: 120% 100%;
transform: translateY(100%);
background-position: center;
transition: transform 0.3s, opacity 0.8s;
pointer-events: none;
opacity: 0;
filter: blur(8px);
}
.abort-button:hover {
color: #fff;
}
.abort-button:hover:before {
transform: translateY(50%);
opacity: 1;
}
.abort-button:active {
background: #CC009F58;
font-style: italic;
}
.abort-button:disabled {
background: #333333;
border-color: #333333;
color: #777;
cursor: not-allowed;
}
.abort-button:disabled:hover:before {
transform: translateY(100%);
opacity: 0;
}
.abort-button:disabled:active {
font-style: normal;
}
.abort-button[disabled] {
background: #333333;
border-color: #333333;
color: #777;
cursor: not-allowed;
pointer-events: none;
text-decoration: none;
}
.abort-button[disabled]:hover:before {
transform: translateY(100%);
opacity: 0;
}
.abort-button[disabled]:active {
font-style: normal;
}
.confirm-button {
text-decoration: none;
border-radius: 4px;
border: solid 1px;
border-color: #363636 #000 #000 #363636;
background: linear-gradient(to bottom, #AAAAAA 0%, #363636 50%, #000 50%, #000 100%);
color: #AAAAAA;
position: relative;
overflow: hidden;
transition: all 0.3s;
cursor: pointer;
outline: none;
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
z-index: 1;
}
.confirm-button:before {
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 50%;
background: radial-gradient(circle at center, #00FF8B, transparent);
background-size: 120% 100%;
transform: translateY(100%);
background-position: center;
transition: transform 0.3s, opacity 0.8s;
pointer-events: none;
opacity: 0;
filter: blur(8px);
}
.confirm-button:hover {
color: #fff;
}
.confirm-button:hover:before {
transform: translateY(50%);
opacity: 1;
}
.confirm-button:active {
background: #CC000000;
font-style: italic;
}
.confirm-button:disabled {
background: #333333;
border-color: #333333;
color: #777;
cursor: not-allowed;
}
.confirm-button:disabled:hover:before {
transform: translateY(100%);
opacity: 0;
}
.confirm-button:disabled:active {
font-style: normal;
}
confirm-button[disabled] {
background: #333333;
border-color: #333333;
color: #777;
cursor: not-allowed;
pointer-events: none;
text-decoration: none;
}
.confirm-button[disabled]:hover:before {
transform: translateY(100%);
opacity: 0;
}
.confirm-button[disabled]:active {
font-style: normal;
}
@@ -0,0 +1,6 @@
namespace Lumina.Presentation.Web.wwwroot.css
{
public class checkbox
{
}
}
@@ -0,0 +1,154 @@
.enlightenment-combobox {
position: relative;
font-family: Arial, sans-serif;
padding: 0;
margin: 0;
box-sizing: border-box;
}
.enlightenment-toggle-checkbox {
display: none;
}
.enlightenment-toggle {
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
font-family: Arial, sans-serif;
font-size: 14px;
border-radius: 3px;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
color: #6DCBFE;
padding: 3px 24px 3px 18px;
width: 100%;
border: none;
outline: none;
appearance: none;
border-top: #989898 1px solid;
border-bottom: #151515 1px solid;
border-left: #878787 1px solid;
border-right: #202020 1px solid;
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%225%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20d%3D%22M2%2C0L6%2C4L10%2C0%22%2F%3E%3C%2Fsvg%3E'), url('../images/ui/scrollbar_dots_v.png'), linear-gradient(180deg, #606060, #555555, #4C4C4C, #414141);
background-repeat: no-repeat, no-repeat, repeat;
background-position: right 10px top 50%, left 7px top 50%, 0 0;
background-size: 12px 6px, 3px auto, 100%;
user-select: none;
box-sizing: border-box;
}
.enlightenment-toggle:hover {
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%225%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20d%3D%22M2%2C0L6%2C4L10%2C0%22%2F%3E%3C%2Fsvg%3E'), url('../images/ui/scrollbar_dots_lit_v.png'), linear-gradient(180deg, #606060, #555555, #4C4C4C, #414141);
background-repeat: no-repeat, no-repeat, repeat;
background-position: right 10px top 50%, left 7px top 50%, 0 0;
background-size: 12px 6px, 3px auto, 100%;
}
.enlightenment-selected-text {
flex: 1;
text-align: right;
}
.enlightenment-dropdown {
display: none;
position: absolute;
top: 100%;
left: 0;
width: 100%;
box-sizing: border-box;
background-image: url('../images/ui/metal-plate.png'), linear-gradient(180deg, #505050, #464646, #404040, #363636);
background-repeat: repeat, no-repeat;
background-position: 3px 3px, 0 0; /* offset the metal-plate image by 3 pixels from the top and left */
background-clip: content-box, border-box; /* clip the metal-plate image to the content box */
border-top: #989898 1px solid;
border-bottom: #151515 1px solid;
border-left: #878787 1px solid;
border-right: #202020 1px solid;
padding: 3px;
z-index: 999;
max-height: none;
overflow-y: auto;
}
.enlightenment-dropdown > .shine-effect:first-child {
top: -4px;
}
.enlightenment-item {
display: block;
border-left: 1px solid #232323;
border-right: 1px solid #777777;
border-top: 1px solid #232323;
border-bottom: 1px solid #777777;
color: #FFFFFF;
padding: 5px 10px;
width: 100%;
box-sizing: border-box;
user-select: none;
cursor: pointer;
}
.enlightenment-item.first-item {
border-top: 1px solid #232323;
margin-top: -1px;
}
.enlightenment-item.last-item {
border-bottom: 1px solid #777777;
}
.enlightenment-item.disabled {
color: #AAAAAA;
}
.enlightenment-item:hover {
background-image: none;
background: linear-gradient(to bottom, #505050, #464646, #404040, #363636);
color: #1D8AF9;
box-shadow: inset 1px 0 0 0 #777777, inset -1px 0 0 0 #232323, inset 0 1px 0 0 #989898, inset 0 -1px 0 0 #151515;
}
.enlightenment-combobox.open .enlightenment-dropdown {
display: block;
}
.enlightenment-combobox > .shine-effect:first-child {
top: 1px;
opacity: 0;
transition: opacity 0.5s;
}
.enlightenment-combobox:hover > .shine-effect:first-child {
opacity: 1;
}
.enlightenment-combobox > .shine-effect::before,
.enlightenment-combobox > .shine-effect::after {
content: "";
position: absolute;
top: -1px;
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.5s;
}
.enlightenment-combobox > .shine-effect::before {
width: 3px;
height: 2px;
border-radius: 5px 5px 0 0;
background-color: #FFFFFF;
}
.enlightenment-combobox > .shine-effect::after {
width: 10px;
height: 3px;
border-radius: 5px 5px 0 0;
background-color: #FFFFFF;
filter: blur(3px);
}
.enlightenment-combobox:hover > .shine-effect::before,
.enlightenment-combobox:hover > .shine-effect::after {
opacity: 1;
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,78 @@
.tree-node {
padding: 2px 0;
}
.node-content {
display: flex;
align-items: flex-start;
cursor: pointer;
padding: 0px;
border-radius: 2px;
border: 1px solid transparent;
flex-wrap: wrap;
min-width: 100%;
display: inline-block;
white-space: nowrap;
}
.node-content:hover {
background-color: #131313;
border-top: 1px solid var(--border-color-light);
border-left: 1px solid var(--border-color-light);
border-right: 1px solid var(--border-color-dark);
background-color: var(--container-background);
}
.node-content.selected {
background-color: #131313;
border-bottom: 1px solid var(--border-color-light);
border-right: 1px solid var(--border-color-light);
border-left: 1px solid var(--border-color-dark);
background-color: var(--container-background);
}
.node-icon {
margin-right: 5px;
width: 16px;
text-align: center;
flex-shrink: 0;
}
.node-icon, .expand-button {
flex-shrink: 0;
align-self: center;
}
.child-nodes {
padding-left: 20px;
border-left: 1px dotted #ccc;
margin-left: 7px;
}
.expand-button {
display: inline-flex;
width: 10px;
height: 10px;
margin-right: 5px;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%231E90FF' d='M6 4l4 4-4 4z'/></svg>");
background-size: contain;
transition: transform 0.2s ease;
}
.expand-button.expanded {
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23f00' d='M6 4l4 4-4 4z'/></svg>");
transform: rotate(90deg);
}
.spacer {
display: inline-block;
width: 15px;
}
.node-name {
margin-left: 3px;
overflow-wrap: break-word;
word-break: break-all;
flex: 1;
align-self: end;
}
@@ -0,0 +1,344 @@
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
visibility: hidden;
transition: opacity 0.50s, visibility 0.50s, height 0.50s;
-webkit-transition: opacity 0.50s, visibility 0.50s, height 0.50s;
overflow: hidden;
background: black;
z-index: -1;
}
#hamburger-input {
display: none;
}
#hamburger-menu {
cursor: pointer;
position: fixed;
border-radius: 4px;
border: 1px solid #777777;
border-bottom-color: #000000;
border-right-color: #000000;
top: 10px;
left: 10px;
width: 46px;
height: 46px;
display: none;
z-index: 2;
padding: 5px 0;
margin: 0px;
font-family: 'Cabin', Sans-serif;
background: linear-gradient(to top, #424343 0%, #505050 50%, #5E5D5D 100%);
}
#hamburger-menu > span {
display: block;
width: 30px;
height: 4px;
margin: 6px auto;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
border-radius: 2px;
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.2);
}
#hamburger-menu:hover {
background: linear-gradient(to top, #505050 0%, #5E5D5D 50%, #6A6969 100%);
}
#hamburger-menu:hover > span {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3);
}
#hamburger-menu #mobile-menu {
visibility: hidden;
position: fixed;
margin: 0px;
top: 0;
left: -100%;
width: 100%;
border: 1px solid #777777;
border-bottom-color: #000000;
border-right-color: #000000;
overflow: auto;
color: #6DCBFE;
text-align: center;
background: #4F4F4F;
transition: 0.50s;
-webkit-transition: 0.50s;
padding: 0px 10px;
box-sizing: border-box;
}
#mobile-menu-content {
border: 1px solid #777777;
border-top-color: #000000;
border-left-color: #000000;
margin-top: 4px;
margin-left: -6px;
margin-right: -5px;
margin-bottom: 3px;
color: #6DCBFE;
text-align: center;
font-size: 18px;
font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
font-weight: bold;
text-shadow: 0px 0px 2px rgba(0,0,0,1);
/*background: #000 url(../images/metal-plate.png);*/
}
.mobile-menu-heading {
height: 35px;
font-size: 28px;
background: rgb(10, 11, 11);
border: 1px solid #777777;
border-bottom-color: #000000;
border-right-color: #000000;
width: 100%;
background-image: linear-gradient(180deg, #505050, #464646, #404040, #363636);
}
#hamburger-menu ul {
margin-left: 0px;
margin-top: 0px;
margin-bottom: 0px;
padding: 0px;
width: 100%;
}
#hamburger-menu li {
width: 100%;
list-style-type: none;
line-height: 2rem;
display: flex;
font-weight: normal;
font-size: 10px;
text-shadow: none;
text-align: left;
border: 1px solid #333333;
border-bottom-color: #000000;
border-right-color: #000000;
}
#hamburger-menu li:nth-child(even) {
background-color: #191E21;
}
#hamburger-menu li:nth-child(odd) {
background-color: #28292B;
}
#hamburger-menu a {
padding-left: 5px;
width: 100%;
color: #6DCBFE;
font-weight: normal;
font-size: 18px;
font-family: 'Arial';
text-decoration: none;
display: inline-block;
margin-left: 0.3em;
}
#hamburger-menu a:focus,
#hamburger-menu a:active {
color: #7CACF8;
}
#hamburger-menu a:hover {
color: #FFFFFF;
background: rgb(10, 11, 11);
background-image: linear-gradient(180deg, #505050, #464646, #404040, #363636);
}
#hamburger-input:checked + #hamburger-menu {
background: linear-gradient(to bottom, #424343 0%, #505050 50%, #5E5D5D 100%);
border: 1px solid #777777;
border-top: 1px solid #000000;
border-left: 1px solid #000000;
}
#hamburger-input:checked + #hamburger-menu #mobile-menu {
visibility: visible;
left: 0;
top: 71px;
}
#hamburger-input:checked + #hamburger-menu {
z-index: 2;
}
#hamburger-input:checked ~ .overlay {
visibility: visible;
opacity: 0.5;
z-index: 1;
}
.menubar {
background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% );
padding: 0;
position: fixed;
top: 0px;
left: 0px;
width: 100%;
z-index: 900;
}
.menubar ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.menubar > ul > li {
display: inline-block;
position: relative;
}
.menubar label,
.menubar a {
display: block;
padding: 2px 10px;
text-decoration: none;
cursor: default;
color: #6DCBFE;
position: relative;
user-select: none;
border: 1px solid transparent;
}
.menubar > ul > li > label:hover,
.menubar > ul > li > a:hover {
background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% );
border-left: 1px solid #777777;
border-right: 1px solid #000000;
border-top: 1px solid #505050;
border-bottom: 1px solid #222222;
color: #FFFFFF;
}
.menubar input[type="radio"] {
display: none;
}
.menubar ul ul {
display: none;
position: absolute;
top: 100%;
left: 0;
min-width: 150px;
background: #4F4F4F;
border: 1px solid #777777;
border-bottom-color: #000000;
border-right-color: #000000;
padding-top: 4px;
padding-left: 4px;
padding-bottom: 4px;
padding-right: 4px;
}
.menubar ul ul li {
background: #232323;
border-left: 1px solid #000000;
border-right: 1px solid #777777;
position: relative;
}
.menubar ul ul li:first-child {
border-top: 1px solid #000000;
}
.menubar ul ul li:last-child {
border-bottom: 1px solid #777777;
}
.menubar ul ul li > label:hover,
.menubar ul ul li > a:hover {
background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% );
border: 1px solid #777777;
border-right-color: #000000;
border-bottom-color: #000000;
color: #FFFFFF;
}
.menubar ul ul ul {
left: 100%;
top: 0;
}
.menubar li:focus-within > ul {
display: block;
outline: none;
}
.menubar > ul > li:focus-within > label,
.menubar > ul > li:focus-within > a {
background-color: #28292B;
background: radial-gradient( 115% 115% at 68% 70%, #30303088 0%, #20202044 50%, #101010 100% );
border: 1px solid #777777;
border-top: 1px solid #000000;
border-left: 1px solid #000000;
color: #FFFFFF;
}
.menubar .has-submenu > label::after,
.menubar .has-submenu > a::after {
content: " ▶";
font-size: 0.6em;
position: absolute;
right: 5px;
top: 50%;
transform: translateY(-50%);
transition: transform 0.3s ease;
}
.menubar .has-submenu:focus-within > label,
.menubar .has-submenu:focus-within > a {
background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% );
border: 1px solid #777777;
border-right-color: #000000;
border-bottom-color: #000000;
}
.menubar .has-submenu:focus-within > label::after,
.menubar .has-submenu:focus-within > a::after {
content: " ▼";
color: #FF0000;
transform: translateY(-50%) rotate(0deg);
}
.menubar .has-submenu:focus-within > label,
.menubar .has-submenu:focus-within > a {
color: #7CACF8;
}
/* For phones */
@media only screen and (max-width: 768px) {
.menubar {
visibility: hidden;
}
#hamburger-menu {
display: block;
}
#mobile-menu {
height: calc(100% - 70px);
}
}
/* For desktop: */
@media only screen and (min-width: 768px) {
.menubar {
visibility: visible;
}
.overlay {
visibility: hidden !important;
}
}
@@ -0,0 +1,106 @@
.notification-container {
position: fixed;
bottom: 10px;
left: 20px;
z-index: 1000;
width: 300px;
max-height: calc(100vh - 40px); /* full viewport height minus 40px */
overflow-y: auto; /* add vertical scrollbar if content exceeds max-height */
}
.notification {
border-radius: 4px;
margin-bottom: 10px;
margin-right: 10px;
display: flex;
flex-direction: row; /* stack content horizontally */
align-items: flex-start; /* align items to the top */
background: linear-gradient(135deg, #404040, #232323) !important;
border-top: 1px solid #505050 !important;
border-left: 1px solid #505050 !important;
border-right: 1px solid #000 !important;
border-bottom: 1px solid #000 !important;
box-shadow: 5px 5px 5px var(--shadow-color);
animation: fadeIn 0.3s, fadeOut 0.3s 4.7s;
flex-direction: column;
flex-wrap: nowrap;
align-items: stretch;
justify-content: flex-start;
position: relative;
}
.notification-body {
padding: 15px;
display: flex;
flex-direction: row; /* stack content horizontally */
align-items: flex-start; /* align items to the top */
word-wrap: break-word; /* allow long words to break and wrap */
overflow-wrap: break-word; /* modern browsers */
word-break: break-word; /* for very long words or URLs */
}
.notification-message {
flex-grow: 1; /* allow message to take up available space */
margin-right: 3px; /* add some space between message and close button */
overflow-wrap: break-word; /* modern browsers */
word-break: break-word; /* for very long words or URLs */
hyphens: auto; /* enable automatic hyphenation */
white-space: pre-wrap; /* preserve line breaks */
font-family: monospace;
}
.close-button {
background: none;
color: var(--text-foreground);
border: none;
font-size: 20px;
cursor: pointer;
padding: 0;
line-height: 1;
flex-shrink: 0; /* prevent button from shrinking */
}
.shine-effect {
background: linear-gradient(to right, transparent, #fff, transparent);
width: 100%;
top: -1px;
height: 1px;
flex-shrink: 0;
pointer-events: none; /* ensure it doesn't interfere with interactions */
}
.info {
color: #2196F3;
}
.success {
color: #4CAF50;
}
.warning {
color: #FFC107;
}
.error {
color: #F44336;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@@ -52,6 +52,7 @@ main {
}
#modal-background {
display: none;
z-index: 998;
position: absolute;
top: 0px;
@@ -1244,4 +1245,4 @@ main {
/* For desktop: */
@media only screen and (min-width: 768px) {
}
}
@@ -0,0 +1,56 @@
.enlightenment-input {
font-size: 14px;
padding: 5px;
border: 1px solid;
border-color: var(--border-color-dark) var(--border-color-light) var(--border-color-light) var(--border-color-dark);
border-radius: 3px;
background: linear-gradient(0deg, #90c247, #509c00);
transition: background 0.3s, color 0.3s;
color: #000;
outline: none;
position: relative;
box-sizing: border-box;
}
.enlightenment-input:hover {
background: var(--window-button-over-color);
}
.enlightenment-input:not(:focus) {
background: linear-gradient(0deg, #6b7579, #576b65);
color: #000;
}
.enlightenment-input:focus {
font-style: italic;
color: #333;
background: linear-gradient(0deg, #6AAFF8, #82E9F7);
box-shadow: inset 4px 6px 8px rgba(0,0,0,0.6);
border-color: var(--border-color-dark) var(--border-color-light) var(--border-color-light) var(--border-color-dark);
outline: none;
}
.enlightenment-input::placeholder {
color: #999;
}
.enlightenment-input:disabled {
color: #999;
background: var(--container-background);
}
.enlightenment-input[readonly] {
color: #999;
background: var(--container-background);
border-color: var(--border-color-light) var(--border-color-dark) var(--border-color-dark) var(--border-color-light);
}
.enlightenment-input[data-has-error="true"] {
border-color: #f00;
color: #FFF;
background: #700;
}
textarea {
resize: none;
}