add border around normal button
Signed-off-by: Tobias Erbshäußer <tobias@tesoft.dev>
This commit is contained in:
@@ -9,8 +9,10 @@
|
|||||||
button, a {
|
button, a {
|
||||||
align-content: center;
|
align-content: center;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
border-color: var(--light-gray);
|
||||||
border-radius: var(--button-border-radius);
|
border-radius: var(--button-border-radius);
|
||||||
border-style: none;
|
border-style: solid;
|
||||||
|
border-width: 0.1rem;
|
||||||
color: var(--light-gray);
|
color: var(--light-gray);
|
||||||
display: grid;
|
display: grid;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -21,8 +23,13 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:host([transparent]) button, :host([transparent]) a {
|
||||||
|
border-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
:host([selected]) button, :host([selected]) a {
|
:host([selected]) button, :host([selected]) a {
|
||||||
background-color: var(--light-gray);
|
background-color: var(--light-gray);
|
||||||
|
border-style: none;
|
||||||
color: var(--gray);
|
color: var(--gray);
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<slot>
|
<slot>
|
||||||
</slot>
|
</slot>
|
||||||
<tesoft-button class="small-menu">
|
<tesoft-button class="small-menu" transparent>
|
||||||
<span></span>
|
<span></span>
|
||||||
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<tesoft-button class="prev" disabled>
|
<tesoft-button class="prev" disabled transparent>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" height="2.4rem" viewBox="0 -960 960 960" width="2.4rem" fill="#000000">
|
<svg xmlns="http://www.w3.org/2000/svg" height="2.4rem" viewBox="0 -960 960 960" width="2.4rem" fill="#000000">
|
||||||
<path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/>
|
<path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/>
|
||||||
</svg>
|
</svg>
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
<div class="cur-page">
|
<div class="cur-page">
|
||||||
1
|
1
|
||||||
</div>
|
</div>
|
||||||
<tesoft-button class="next" disabled>
|
<tesoft-button class="next" disabled transparent>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" height="2.4rem" viewBox="0 -960 960 960" width="2.4rem" fill="#000000">
|
<svg xmlns="http://www.w3.org/2000/svg" height="2.4rem" viewBox="0 -960 960 960" width="2.4rem" fill="#000000">
|
||||||
<path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/>
|
<path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<tesoft-nav>
|
<tesoft-nav>
|
||||||
{% for item in [{title: "Blog", href: "/blog"}, {title: "About me", href: "/about"}] %}
|
{% for item in [{title: "Blog", href: "/blog"}, {title: "About me", href: "/about"}] %}
|
||||||
<tesoft-button href="{{ item.href }}" {% if item.title == title %}selected{% endif %}>
|
<tesoft-button transparent href="{{ item.href }}" {% if item.title == title %}selected{% endif %}>
|
||||||
{{ item.title }}
|
{{ item.title }}
|
||||||
</tesoft-button>
|
</tesoft-button>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user