Add support for touch active
This commit is contained in:
parent
b02cb0035f
commit
0cf8f9623c
5 changed files with 24 additions and 2 deletions
|
|
@ -133,6 +133,14 @@ button:not(:disabled):active {
|
||||||
inset 2px 2px #808080;
|
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 {
|
button:focus {
|
||||||
outline: 1px dotted #000000;
|
outline: 1px dotted #000000;
|
||||||
outline-offset: -4px;
|
outline-offset: -4px;
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,14 @@ button:not(:disabled):active {
|
||||||
inset 2px 2px #808080;
|
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 {
|
button:focus {
|
||||||
outline: 1px dotted #000000;
|
outline: 1px dotted #000000;
|
||||||
outline-offset: -4px;
|
outline-offset: -4px;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
<link rel="stylesheet" href="docs.css"></style>
|
<link rel="stylesheet" href="docs.css"></style>
|
||||||
<link rel="stylesheet" href="vs.css"></style>
|
<link rel="stylesheet" href="vs.css"></style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body ontouchstart>
|
||||||
<aside>
|
<aside>
|
||||||
<ul class="tree-view">
|
<ul class="tree-view">
|
||||||
<li><a href="#intro">Intro</a></li>
|
<li><a href="#intro">Intro</a></li>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
<link rel="stylesheet" href="docs.css"></style>
|
<link rel="stylesheet" href="docs.css"></style>
|
||||||
<link rel="stylesheet" href="vs.css"></style>
|
<link rel="stylesheet" href="vs.css"></style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body ontouchstart>
|
||||||
<aside>
|
<aside>
|
||||||
<ul class="tree-view">
|
<ul class="tree-view">
|
||||||
<li><a href="#intro">Intro</a></li>
|
<li><a href="#intro">Intro</a></li>
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,12 @@ button:not(:disabled):active {
|
||||||
box-shadow: var(--border-sunken-outer), var(--border-sunken-inner);
|
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 {
|
button:focus {
|
||||||
outline: 1px dotted #000000;
|
outline: 1px dotted #000000;
|
||||||
outline-offset: -4px;
|
outline-offset: -4px;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue