diff --git a/sass/style.scss b/sass/style.scss index eef0c99..53e1962 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -14,7 +14,7 @@ $button_color: color.adjust($accent_color, $hue: 90); %button-base { cursor: default; - // color: black; + color: black; font-size: 0.9rem; text-decoration: none; border: 1px solid black; @@ -51,6 +51,8 @@ body { #topnav { @include navbar($accent_color); + justify-content: space-between; + align-items: center; } #bottomnav { @@ -63,6 +65,11 @@ body { background-color: $dark_bg; } +.site-title { + display: inline; + padding-right: 30px; +} + .thread-title { margin: 0; } @@ -138,6 +145,15 @@ button, input[type="submit"], .linkbutton { color: white; @include button(red); } + + &.warn { + @include button(#fbfb8d); + } +} + +// not sure why this one has to be separate, but if it's included in the rule above everything breaks +input[type="file"]::file-selector-button { + @include button($button_color); } .pagebutton { @@ -158,3 +174,7 @@ button, input[type="submit"], .linkbutton { min-width: 20px; text-align: center; } + +.modform { + display: inline; +} diff --git a/static/style.css b/static/style.css index af40f2d..94cd026 100644 --- a/static/style.css +++ b/static/style.css @@ -1,6 +1,7 @@ /* src: */ -.currentpage, .pagebutton, button.critical, input[type=submit].critical, .linkbutton.critical, button, input[type=submit], .linkbutton { +.currentpage, .pagebutton, input[type=file]::file-selector-button, button.warn, input[type=submit].warn, .linkbutton.warn, button.critical, input[type=submit].critical, .linkbutton.critical, button, input[type=submit], .linkbutton { cursor: default; + color: black; font-size: 0.9rem; text-decoration: none; border: 1px solid black; @@ -20,6 +21,8 @@ body { display: flex; justify-content: end; background-color: #c1ceb1; + justify-content: space-between; + align-items: center; } #bottomnav { @@ -35,6 +38,11 @@ body { background-color: rgb(143.7039271654, 144.3879625984, 142.8620374016); } +.site-title { + display: inline; + padding-right: 30px; +} + .thread-title { margin: 0; } @@ -119,6 +127,25 @@ button.critical:hover, input[type=submit].critical:hover, .linkbutton.critical:h button.critical:active, input[type=submit].critical:active, .linkbutton.critical:active { background-color: rgb(149.175, 80.325, 80.325); } +button.warn, input[type=submit].warn, .linkbutton.warn { + background-color: #fbfb8d; +} +button.warn:hover, input[type=submit].warn:hover, .linkbutton.warn:hover { + background-color: rgb(251.8, 251.8, 163.8); +} +button.warn:active, input[type=submit].warn:active, .linkbutton.warn:active { + background-color: rgb(198.3813559322, 198.3813559322, 154.4186440678); +} + +input[type=file]::file-selector-button { + background-color: rgb(177, 206, 204.5); +} +input[type=file]::file-selector-button:hover { + background-color: rgb(192.6, 215.8, 214.6); +} +input[type=file]::file-selector-button:active { + background-color: rgb(166.6881496063, 178.0118503937, 177.4261417323); +} .pagebutton { background-color: rgb(177, 206, 204.5); @@ -143,3 +170,7 @@ button.critical:active, input[type=submit].critical:active, .linkbutton.critical min-width: 20px; text-align: center; } + +.modform { + display: inline; +} diff --git a/views/base.etlua b/views/base.etlua index 5bf0b94..2b0fbcb 100644 --- a/views/base.etlua +++ b/views/base.etlua @@ -7,7 +7,8 @@ <% else %>
This user is a guest. They signed up on <%= os.date("%c", user.created_at) %>.
- <% else %> <% --[[ user is not guest ]] %>This user signed up on <%= os.date("%c", user.created_at) %> and was confirmed on <%= os.date("%c", user.confirmed_on) %>.
<% if user.permission < me.permission then %> - <% end %> <% if me:is_admin() and not user:is_mod() then %> - - <% elseif user.permission < me.permission then %> - <% end %> <% end %>