diff --git a/WebApplication/LoginPage.cpp b/WebApplication/LoginPage.cpp index 927a979..cbe3e63 100644 --- a/WebApplication/LoginPage.cpp +++ b/WebApplication/LoginPage.cpp @@ -7,11 +7,10 @@ LoginPage::LoginPage(Wt::Auth::AbstractUserDatabase &users, Wt::Auth::Login &login) { auto app = Amass::Singleton::instance(); - auto authWidget = std::make_unique(app->authService(), users, login); + auto authWidget = addNew(app->authService(), users, login); authWidget->setInternalBasePath("/wt"); authWidget->model()->addPasswordAuth(&app->passwordService()); authWidget->setRegistrationEnabled(true); authWidget->processEnvironment(); // setAttributeValue("style", "transform: translateY(-100px);"); - addWidget(std::move(authWidget)); } diff --git a/resources/app.css b/resources/app.css index 7960c94..9dae004 100644 --- a/resources/app.css +++ b/resources/app.css @@ -1,7 +1,104 @@ - .WtCenterContainer { display: flex; flex: 1; justify-content: center; align-items: center; +} + +.Wt-itemview .Wt-headerdiv { + overflow: hidden; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + width: 100% +} + +.Wt-itemview .Wt-tv-rh { + cursor: col-resize; + float: right; + width: 4px +} + +.Wt-itemview .Wt-tv-rh:hover { + background-color: #999 +} + +.Wt-tableview .Wt-tv-br { + border-right: 1px solid #ddd +} + +.Wt-itemview th, +.Wt-itemview th .Wt-tv-br { + overflow: hidden +} + + +.Wt-tableview .Wt-plaintable .Wt-tv-br { + border-right: 0 +} + + +.Wt-itemview .Wt-header .Wt-label { + font-weight: 700; + height: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap +} + +.Wt-tableview .Wt-plaintable td, +.Wt-tableview .Wt-plaintable th, +.Wt-tableview .Wt-tv-contents .Wt-tv-c { + overflow: hidden; + padding: 0 3px; + text-overflow: ellipsis +} + +.Wt-hrh2, +.Wt-vsh2 { + cursor: row-resize +} + +.Wt-hsh2, +.Wt-vrh2 { + cursor: col-resize +} + +.Wt-hrh2:hover, +.Wt-hsh2, +.Wt-vrh2:hover, +.Wt-vsh2 { + background-color: #999 +} + + + +.Wt-hrh2 { + background: url(icons/splitter-v.png) no-repeat 50% 50%; +} + +.Wt-vrh2 { + background: url(icons/splitter-h.png) no-repeat 50% 50%; +} + + + +.Wt-itemview .Wt-tv-sh { + cursor: pointer; + float: right; + height: 16px; + padding-bottom: 6px; + width: 16px +} + +.Wt-itemview .Wt-tv-sh-none { + background: url(icons/sort-arrow-none.gif) no-repeat 0 6px +} + +.Wt-itemview .Wt-tv-sh-up { + background: url(icons/sort-arrow-up.gif) no-repeat 0 6px +} + +.Wt-itemview .Wt-tv-sh-down { + background: url(icons/sort-arrow-down.gif) no-repeat 0 6px } \ No newline at end of file diff --git a/resources/auth_css_theme.xml b/resources/auth_css_theme.xml index 42132a9..3700a54 100644 --- a/resources/auth_css_theme.xml +++ b/resources/auth_css_theme.xml @@ -12,7 +12,7 @@ -