Merge pull request 'fix remote interaction form style' (#542) from denys/akkoma:style-remote-interaction into develop

Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/542
This commit is contained in:
floatingghost 2023-05-22 21:35:51 +00:00
commit 4e969758e5

View file

@ -14,13 +14,13 @@ input {
padding: 10px; padding: 10px;
margin-top: 5px; margin-top: 5px;
margin-bottom: 10px; margin-bottom: 10px;
background-color: var(--background-color); background-color: transparent;
color: var(--primary-text-color); color: inherit;
border: 0; border: 0;
transition-property: border-bottom; transition-property: border-bottom;
transition-duration: 0.35s; transition-duration: 0.35s;
border-bottom: 2px solid #2a384a; border-bottom: 2px solid var(--faint);
font-size: 14px; font: inherit;
width: inherit; width: inherit;
box-sizing: border-box; box-sizing: border-box;
} }
@ -91,26 +91,22 @@ [type="checkbox"]:checked+label:before {
a.button, a.button,
button { button {
width: 100%; width: 100%;
background-color: #1c2a3a; background-color: var(--btn);
color: var(--primary-text-color); color: var(--btnText);
border-radius: 4px; border-radius: 4px;
border: none; border: none;
padding: 10px 16px; padding: 10px 16px;
margin-top: 20px; margin-top: 20px;
margin-bottom: 20px; margin-bottom: 20px;
text-transform: uppercase; text-transform: uppercase;
font-size: 16px; box-shadow: var(--btnShadow);
box-shadow: 0px 0px 2px 0px black, font: inherit;
0px 1px 0px 0px rgba(255, 255, 255, 0.2) inset,
0px -1px 0px 0px rgba(0, 0, 0, 0.2) inset;
} }
a.button:hover, a.button:hover,
button:hover { button:hover {
cursor: pointer; cursor: pointer;
box-shadow: 0px 0px 0px 1px var(--brand-color), box-shadow: var(--btnHoverShadow);
0px 1px 0px 0px rgba(255, 255, 255, 0.2) inset,
0px -1px 0px 0px rgba(0, 0, 0, 0.2) inset;
} }
.actions { .actions {
@ -156,3 +152,20 @@ .account-header__nickname {
font-size: 14px; font-size: 14px;
color: var(--muted-text-color); color: var(--muted-text-color);
} }
.oauth {
/* Remote interaction /main/ostatus has such hierarchy, and its header and
* content do not pad themselves:
* (.panel.oauth (h2)
* (form (input)
* (button))) */
padding: 1px 1em;
}
.oauth .container__content {
/* Frontend selection /oauth/authorize needs an inverse because its heading
* and content have their own background and padding:
* (.panel.oauth (form (.container__content (.panel-heading)
* (.panel-content)))) */
margin: -1px -1em;
}