aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss
blob: e11b9be5af78e94d4137d25ae91b50680c3a4888 (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
@import '_variables';
@import '_mixins';

form {
  margin-bottom: 30px;
}

.avatar-and-textarea {
  display: flex;
  margin-bottom: 10px;

  my-account-avatar {
    vertical-align: top;
    margin-right: 10px;
  }

  .form-group {
    flex-grow: 1;
    margin: 0;
    position: relative;

    $peertube-textarea-height: 60px;
    $markdown-icon-height: 18px;
    $markdown-icon-width: 30px;

    .markdown-guide {
      position: absolute;
      top: 5px;
      right: 9px;

      ::ng-deep .help-tooltip-button {
        my-global-icon {
          height: $markdown-icon-height;
          width: $markdown-icon-width;

          svg {
            color: #C6C6C6;
            fill: #C6C6C6;
            border-radius: 3px;
          }
        }

        &:focus, &:active, &:hover {
          my-global-icon svg {
            background-color: #C6C6C6;
            color: pvar(--mainBackgroundColor);
            fill: pvar(--mainBackgroundColor);
          }
        }
      }
    }

    textarea {
      @include peertube-textarea(100%, $peertube-textarea-height);
      @include button-focus(pvar(--mainColorLightest));

      min-height: calc(#{$peertube-textarea-height} - 15px * 2);
      padding-right: $markdown-icon-width + 15px !important;

      @media screen and (max-width: 600px) {
        padding-right: $markdown-icon-width + 19px  !important;
      }

      &:focus::placeholder {
        opacity: 0;
      }
    }
  }
}

.comment-buttons {
  display: flex;
  justify-content: flex-end;

  button {
    @include peertube-button;
    @include disable-outline;
    @include disable-default-a-behaviour;

    &:not(:last-child) {
      margin-right: .5rem;
    }

    &:last-child {
      @include orange-button;
    }
  }

  .cancel-button {
    @include tertiary-button;

    font-weight: $font-semibold;
    display: inline-block;
    padding: 0 10px 0 10px;
    white-space: nowrap;
    background: transparent;
  }
}

.emoji-flex {
  display: flex;
  flex-flow: row wrap;
  align-items: center;

  .emoji-flex-item {
    text-align: left;
    margin: auto;
    min-width: 227px;
    flex: 1;

    code {
      display: inline-block;
      vertical-align: middle;
      margin-left: 5px;
    }
  }
}

@media screen and (max-width: 600px) {
  textarea, .comment-buttons button {
    font-size: 14px !important;
  }

  textarea {
    padding: 5px !important;
  }
}

.modal-body {
  .btn {
    @include peertube-button;
    @include orange-button;
  }

  span {
    float: left;
    margin-bottom: 20px;
  }
}