styling: update button styling

adding proper primary and secondary button styles.
OFF0 1 year ago
parent 9fe697f2b7
commit 83248e803f
Signed by: offbyn
GPG Key ID: 94A2F643C51F37FA

@ -24,8 +24,8 @@
<legend>write a new note</legend> <legend>write a new note</legend>
<textarea name="message" rows="1"></textarea> <textarea name="message" rows="1"></textarea>
<div class="buttons"> <div class="buttons">
<button type="submit" id="publish" disabled>send</button> <button type="submit" id="publish" class="primary" disabled>send</button>
<button type="button" name="back">back</button> <button type="button" name="back" class="primary">back</button>
</div> </div>
<small id="sendstatus" class="form-status"></small> <small id="sendstatus" class="form-status"></small>
</fieldset> </fieldset>
@ -42,7 +42,7 @@
<input type="url" name="picture" id="profile_picture" placeholder="https://your.domain/image.png"> <input type="url" name="picture" id="profile_picture" placeholder="https://your.domain/image.png">
<div class="buttons"> <div class="buttons">
<small id="profilestatus" class="form-status" hidden></small> <small id="profilestatus" class="form-status" hidden></small>
<button type="submit" name="publish" tabindex="0" disabled>publish</button> <button type="submit" name="publish" class="primary" tabindex="0" disabled>publish</button>
</div> </div>
</form> </form>
<form action="#" name="options"> <form action="#" name="options">
@ -86,8 +86,8 @@
<input type="password" id="privatekey" autocomplete="off"> <input type="password" id="privatekey" autocomplete="off">
<div class="buttons"> <div class="buttons">
<small id="keystatus" class="form-status" hidden></small> <small id="keystatus" class="form-status" hidden></small>
<button type="button" name="generate" tabindex="0">new</button> <button type="button" name="generate" class="primary" tabindex="0">new</button>
<button type="button" name="import" tabindex="0" disabled>save</button> <button type="button" name="import" class="primary" tabindex="0" disabled>save</button>
</div> </div>
</form> </form>
<footer class="text"> <footer class="text">

@ -117,16 +117,15 @@ form .buttons,
.buttons img, .buttons img,
.buttons small, .buttons small,
.buttons span { .buttons span {
font-weight: normal;
vertical-align: middle; vertical-align: middle;
} }
button { button {
--bg-color: var(--bgcolor-accent); background-color: transparent;
--border-color: var(--bgcolor-accent); border: none;
background-color: var(--bg-color);
border: 0.2rem solid var(--border-color);
border-radius: .2rem;
cursor: pointer; cursor: pointer;
font-weight: bold;
outline-offset: 1px; outline-offset: 1px;
word-break: normal; word-break: normal;
} }
@ -137,7 +136,12 @@ button:active {
.primary, .primary,
.secondary { .secondary {
padding: .8rem 2.4rem; border: 0.2rem solid var(--bgcolor-accent);
border-radius: .2rem;
padding: .9rem 2rem .7rem 2rem;
}
.primary {
background-color: var(--bgcolor-accent);
} }
.secondary { .secondary {
background-color: transparent; background-color: transparent;

Loading…
Cancel
Save