fix btn transparent, add shadows (#45)

This commit is contained in:
Geometrically 2023-04-22 12:18:09 -07:00 committed by GitHub
parent 6794da0738
commit 9d92b8cc6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,6 @@
import { resolve } from 'path'
import svgLoader from 'vite-svg-loader'
import eslintPlugin from 'vite-plugin-eslint'
export default {
title: 'Omorphia',
@ -66,6 +67,7 @@ export default {
],
},
}),
eslintPlugin(),
],
resolve: {
alias: {

View File

@ -315,6 +315,11 @@ a,
margin: auto;
}
}
&.transparent {
background: none;
box-shadow: none;
}
}
.btn-group {

View File

@ -56,7 +56,6 @@ input[type='number'],
textarea {
border-radius: var(--radius-md);
box-sizing: border-box;
border: 2px solid transparent;
// safari iOS rounds inputs by default
// set the appearance to none to prevent this
appearance: none !important;
@ -64,9 +63,9 @@ textarea {
color: var(--color-base);
padding: 0.5rem 1rem;
font-weight: var(--font-weight-medium);
outline: 2px solid transparent;
transition: box-shadow 0.1s ease-in-out;
min-height: 40px;
box-shadow: var(--shadow-inset-sm), 0 0 0 0 transparent;
&:focus,
&:focus-visible {

View File

@ -188,6 +188,7 @@ export default {
cursor: pointer;
user-select: none;
border-radius: var(--radius-md);
box-shadow: var(--shadow-inset-sm), 0 0 0 0 transparent;
&.disabled {
cursor: not-allowed;

View File

@ -1,7 +1,7 @@
{
"name": "omorphia",
"type": "module",
"version": "0.4.10",
"version": "0.4.11",
"files": [
"dist"
],