aboutsummaryrefslogtreecommitdiff
path: root/dist/css/main.css
blob: 2b5cbee0c5a192ae5f9c8d9f9f8c345e6d51db48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/* #region    --- Base */

* {
  /* best practice for application */
  box-sizing: border-box;
  /* To allow flex/grid box to shrink smaller than content. 
		see: https://stackoverflow.com/a/36247448/686724 */
  min-width: 0;
  min-height: 0;
  /* layout normalization */
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  /* make sure the canvas is the browser window */
}

html {
  overflow: hidden;
  /* prevent the browser 'bounce' (but will prevent screen scroll as well)*/
}

/* #endregion --- Base */

div.hello {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  padding: .5rem .5rem;
  border: solid 1px #dedede;
  color: #888;
  font-size: 1.rem;
}

counter-button {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  border: solid 1px hsl(210, 78%, 37%);
  border-radius: 5px;
  background: hsl(210, 90%, 76%);
  padding: .875rem 3rem;
  font-size: 1.5rem;
}

counter-button:active {
  background: hsl(210, 90%, 84%);
}

counter-result {
  border: solid 1px #dedede;
  font-size: 1.5rem;
  padding: 1.5rem 1rem;
}

backend-ping {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border-radius: 3rem;
  width: 1rem;
  height: 1rem;
  background-color: hsl(217, 100%, 50%);
  transition: scale .125s;
}

backend-ping.on {
  scale: 1.25;
  background-color: hsl(120, 100%, 32%);
}