Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
blob: db477904921d0aca933731e6783b1f353ed0db8a (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
body {
  text-align: center;
  max-width: 100vw;
}

.container {
  padding: 0;
  max-width: 586.033px;
  max-height: 586.033px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid steelblue;
  background-color: gray;
}

img, object {
  touch-action: none;
}

img {
  max-width: 100%;
  border: 1px solid silver;
  transform: scale(0.9);
}

.container object, .container.switch img {
  display: block;
}

.container img, .container.switch object {
  display: none;
}

button .button-text.raster, button.switch .button-text.svg {
  display: none;
}

button.switch .button-text.raster {
  display: inline;
}