Skip to content

Commit 4a86c4b

Browse files
committed
coding style corrections
1 parent dbcd3a4 commit 4a86c4b

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

blocks/button/button.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@
6464

6565
.button:hover,
6666
.button:focus {
67-
--a: calc(var(--button--mouse-shadow-left) - (0.5 * var(--button--width)));
67+
--a:
68+
calc(
69+
var(--button--mouse-shadow-left) - (0.5 * var(--button--width))
70+
);
6871

6972
background-image:
7073
var(--_add-background),
@@ -96,7 +99,8 @@
9699
)
97100
center,
98101
var(--_c1) 0,
99-
transparent calc(0.007 * var(--a) * var(--a) * 1px + 0.1 * var(--_w))
102+
transparent
103+
calc(var(--a) * var(--a) * 0.007px + 0.1 * var(--_w))
100104
);
101105
box-shadow: 0 0 calc(0.015 * var(--_w)) 0 var(--_c0);
102106
outline: none;

blocks/page/Page.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,19 @@ class Page extends MC {
4949
'--page--mouse-shadow-left': hover[0],
5050
'--page--mouse-shadow-top': hover[1],
5151
'--page--center': Math.max(
52-
Math.abs(args.event.clientX - 0.5 * rect.width),
52+
Math.abs(args.event.clientX - 0.5 * rect.width),
5353
Math.abs(args.event.clientY - 0.5 * rect.height)),
5454
'--page--center-v': Math.abs(args.event.clientY - 0.5 * rect.height)
5555
};
5656
}
5757

58+
/**
59+
* nothing happens after calculating the mouse shadow
60+
* @returns {void}
61+
*/
5862
_postShadowFunction() {
5963

6064
}
6165
}
6266

63-
new Page().mousemoveEventShadow();
67+
new Page().mousemoveEventShadow();

blocks/page/page.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ html,
4545

4646
background-color: var(--c0);
4747
background-image:
48-
radial-gradient(
49-
circle at
50-
calc(
51-
var(--page--mouse-shadow-left, -10000) * 1px
52-
)
53-
calc(
54-
var(--page--mouse-shadow-top, -10000) * 1px
55-
),
56-
var(--c1) 0,
57-
var(--c0) calc(var(--page--center) * 0.05vw)
58-
);
48+
radial-gradient(
49+
circle at
50+
calc(
51+
var(--page--mouse-shadow-left, -10000) * 1px
52+
)
53+
calc(
54+
var(--page--mouse-shadow-top, -10000) * 1px
55+
),
56+
var(--c1) 0,
57+
var(--c0) calc(var(--page--center) * 0.05vw)
58+
);
5959
color: var(--c1);
6060
font-family: "Manrope", Arial, Verdana, Tahoma, sans-serif;
6161
height: 100vh;

0 commit comments

Comments
 (0)