aboutsummaryrefslogtreecommitdiff
path: root/examples/react-fast-refresh-test/src/index.css
blob: c4514199cd5957377458fefbd48596c02f814bdb (plain) (blame)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
@import "./colors.css";

:root {
  --heading-font: "Space Mono", system-ui;
  --body-font: "IBM Plex Sans", system-ui;

  --color-brand: #02ff00;
  --color-brand-muted: rgb(2, 150, 0);

  --padding-horizontal: 90px;

  --page-background: black;
  --page-background-alpha: rgba(0, 0, 0, 0.8);

  --result__background-color: black;
  --result__primary-color: var(--color-brand);
  --result__foreground-color: white;
  --result__muted-color: rgb(165, 165, 165);

  --card-width: 352px;

  --page-width: 1152px;

  --snippets_container-background-unfocused: #171717;
  --snippets_container-background-focused: #0017e9;
  --snippets_container-background: var(
    --snippets_container-background-unfocused
  );
  --snippets_container-muted-color: rgb(153, 153, 153);
}

body {
  color: white;
  margin: 0;

  padding: 0;
  font-family: var(--body-font);
  background-color: var(--page-background);
  color: var(--result__muted-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

#reactroot,
#__next,
body,
html {
  height: 100%;
}

.RenderCounter {
  border: 10px solid var(--snippets_container-background-focused);
  margin: 10px;
  padding: 10px;
  animation: flash 0.2s linear;
  animation-fill-mode: forwards;
}

.RenderCounter-meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: -10px;
  padding: 10px;
  background-color: #111;
}

.RenderCounter-lastRender,
.RenderCounter-title {
  white-space: nowrap;
  color: rgb(153, 153, 153);
}

@keyframes flash {
  from {
    border-color: var(--snippets_container-background-focused);
  }

  to {
    border-color: var(--snippets_container-background-unfocused);
  }
}

.Button {
  display: block;

  border: 1px solid rgb(20, 180, 0);
  background-color: rgb(2, 150, 0);
  color: white;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  text-align: center;
  width: fit-content;
  cursor: pointer;
}