Add support for touch active

This commit is contained in:
Mu-An Chiou 2020-04-23 17:25:10 -04:00
parent b02cb0035f
commit 0cf8f9623c
No known key found for this signature in database
GPG key ID: CD0B1EEC7A35239E
5 changed files with 24 additions and 2 deletions

View file

@ -133,6 +133,14 @@ button:not(:disabled):active {
inset 2px 2px #808080;
}
@media (not(hover)) {
button:not(:disabled):hover {
box-shadow: inset -1px -1px #ffffff,
inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf,
inset 2px 2px #808080;
}
}
button:focus {
outline: 1px dotted #000000;
outline-offset: -4px;

View file

@ -133,6 +133,14 @@ button:not(:disabled):active {
inset 2px 2px #808080;
}
@media (not(hover)) {
button:not(:disabled):hover {
box-shadow: inset -1px -1px #ffffff,
inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf,
inset 2px 2px #808080;
}
}
button:focus {
outline: 1px dotted #000000;
outline-offset: -4px;

View file

@ -18,7 +18,7 @@
<link rel="stylesheet" href="docs.css"></style>
<link rel="stylesheet" href="vs.css"></style>
</head>
<body>
<body ontouchstart>
<aside>
<ul class="tree-view">
<li><a href="#intro">Intro</a></li>

View file

@ -18,7 +18,7 @@
<link rel="stylesheet" href="docs.css"></style>
<link rel="stylesheet" href="vs.css"></style>
</head>
<body>
<body ontouchstart>
<aside>
<ul class="tree-view">
<li><a href="#intro">Intro</a></li>

View file

@ -133,6 +133,12 @@ button:not(:disabled):active {
box-shadow: var(--border-sunken-outer), var(--border-sunken-inner);
}
@media (not(hover)) {
button:not(:disabled):hover {
box-shadow: var(--border-sunken-outer), var(--border-sunken-inner);
}
}
button:focus {
outline: 1px dotted #000000;
outline-offset: -4px;