aboutsummaryrefslogtreecommitdiff
path: root/client/src/components/Editor/Editor.module.css
blob: 1ea51ff5c8838309b25a03c671d9df3139798006 (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
.container {
  width: 100vw;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.editor {
  display: flex;
  flex-direction: row;
  flex: 1;
  overflow: hidden;
  padding: 20px 70px 0 0px;
  border-top: 1px solid #3c3836;
}

.codespace {
  position: relative;
  display: flex;
  flex: 1;
  margin-left: 10px;
}

.codespace__textarea {
  caret-color: var(--color-light);
  background: transparent;
  position: absolute;
  color: transparent;
  left: 0;
  top: 0;
  width: calc(100% - 60.8px);
  height: 100%;
  font-size: 1rem;
  line-height: 1.5rem;
  resize: none;
  border: none;
  outline: none;
  padding: 0 0 0 60.8px;
}

.codespace__code {
  word-break: break-word;
}

.btn__save {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  height: 6rem;
  width: 6rem;
  background-color: var(--color-yellow);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1;
  &:hover {
    transform: scale(1.1);
  }
}

.btn__icon {
  height: 3rem;
  width: 3rem;
  filter: invert(11%) sepia(0%) saturate(0%) hue-rotate(158deg) brightness(100%)
    contrast(88%);
}

@media screen and (max-width: 768px) {
  .editor {
    padding: 20px 20px 0 0px;
  }

  .btn__save {
    bottom: 2rem;
    right: 2rem;
    height: 4rem;
    width: 4rem;
  }

  .btn__icon {
    height: 2rem;
    width: 2rem;
  }
}