aboutsummaryrefslogtreecommitdiff
path: root/static/css/pages/lesson.css
blob: 4468d565c5fccd0128ce65cf13909efc74551c8c (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#left,
#output,
#editor {
  min-height: 200px;
  overflow-y: auto;
  border-bottom: 2px solid var(--color-divider);
  margin: 0;
  overflow-wrap: break-word;
}

#left> :first-child {
  margin-top: 0;
}

#editor {
  position: relative;
}

@media (min-width: 600px) {
  #playground {
    position: fixed;
    top: var(--navbar-height);
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 0;
  }

  #left,
  #right {
    width: 50vw;
    position: absolute;
    top: 0;
    bottom: 0;
  }

  #left {
    border-right: 2px solid var(--color-divider);
  }

  #right {
    right: 0;
  }

  #right> :first-child {
    height: 62%;
  }

  #right> :last-child {
    height: 38%;
  }
}

#left,
#output>*,
#editor .codeflask__flatten {
  padding: var(--gap);
}

#output>* {
  margin: 0;
  white-space: pre-wrap;
}

.error,
.warning {
  border-width: var(--gap);
  border-style: solid;
  border-top: 0;
  border-bottom: 0;
}

.error {
  border-color: var(--brand-error);
}

.warning {
  border-color: var(--brand-warning);
}

.prev-next {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--gap);
  gap: 0.5em;
}

.prev-next span {
  opacity: 0.5;
}

.mb-0 {
  margin-bottom: 0;
}

.content-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}