Skip to content
Snippets Groups Projects
Verified Commit c9ccad1e authored by Jakob Moser's avatar Jakob Moser
Browse files

Add style for button with text, rename "btn" to "button"

parent f70f3aab
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ a {
);
}
a.btn {
.button {
height: 10em;
width: 10em;
......@@ -112,15 +112,38 @@ a.btn {
text-decoration: none;
}
a.btn > i {
.small.button {
height: 3em;
width: 3em;
}
.button > i {
font-size: 200%;
}
a.btn:active {
.small.button > i {
font-size: 120%;
}
.button:active,
a:active .button {
margin: var(--shadow-width) 0 0 var(--shadow-width);
box-shadow: none;
}
a.button-and-text {
text-decoration: none;
display: grid;
grid-auto-flow: column;
align-items: center;
column-gap: 0.5em;
}
a.button-and-text .text {
color: white;
}
input {
padding: 0.4em 0.7em;
border-radius: 0.5em;
......@@ -376,7 +399,7 @@ a.detail:hover {
}
@media (max-width: 480px) {
a.btn {
.button {
width: 8em;
height: 8em;
}
......
......@@ -7,7 +7,7 @@ export const BoxedButton = {
{
href: vnode.attrs.href,
target: vnode.attrs.sameTab ? "" : "_blank",
class: "box btn",
class: "box button",
},
[
m("i", {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment