Skip to content

Commit 746d5e7

Browse files
alisonmahersvgeesus
authored andcommitted
clean ups + add style.css
1 parent e78172f commit 746d5e7

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

css-color-adjust-1/Overview.bs

+7-6
Original file line numberDiff line numberDiff line change
@@ -1143,14 +1143,15 @@ Automation {#color-adjust-automation}
11431143
The [=remote end steps=], given <em>session</em>, <em>URL
11441144
variables</em> and <em>parameters</em> are:
11451145

1146-
1. If <em>parameters</em> is not a JSON [=Object=], return a WebDriver [=error=] with
1147-
WebDriver [=error code=] [=invalid argument=].
1146+
1. If <em>parameters</em> is not a JSON [=Object=], return a WebDriver [=error=]
1147+
with WebDriver [=error code=] [=invalid argument=].
11481148

1149-
2. Let <em>theme</em> be the result of [=getting a property=] named <code>"theme"</code> from
1150-
<em>parameters</em>.
1149+
2. Let <em>theme</em> be the result of [=getting a property=] named
1150+
<code>"theme"</code> from <em>parameters</em>.
11511151

1152-
3. If <em>theme</em> is [=undefined=] or is not a member of {{ForcedColorsModeAutomationTheme}},
1153-
return a WebDriver [=error=] with WebDriver [=error code=] [=invalid argument=].
1152+
3. If <em>theme</em> is [=undefined=] or is not a member of
1153+
{{ForcedColorsModeAutomationTheme}}, return a WebDriver [=error=] with
1154+
WebDriver [=error code=] [=invalid argument=].
11541155

11551156
4. Set the [=current forced colors mode automation theme=] to <em>theme</em>.
11561157

css-color-adjust-1/style.css

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.swatch {
2+
position: relative;
3+
z-index: 1;
4+
display: inline-block;
5+
vertical-align: calc(-.1em - 3px);
6+
padding: .6em;
7+
background-color: var(--color);
8+
border: 3px solid white;
9+
border-radius: 3px;
10+
box-shadow: 1px 1px 1px rgba(0,0,0,.15);
11+
forced-color-adjust: none;
12+
}
13+
14+
.swatch.oog {
15+
border: 2px solid red;
16+
}
17+
18+
.swatch:hover,
19+
.swatch:focus {
20+
transform: scale(3);
21+
border-radius: 2px;
22+
transition: .4s;
23+
z-index: 2;
24+
}

0 commit comments

Comments
 (0)