aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/video-add.component.scss
blob: 39673b4b7c7b22129d11e02b4b07b081b5060a95 (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
.upload-video-container {
  border-radius: 3px;
  background-color: #F7F7F7;
  border: 3px solid #EAEAEA;
  width: 100%;
  height: 440px;
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;

  .upload-video {
    display: flex;
    flex-direction: column;
    align-items: center;

    .icon.icon-upload {
      @include icon(90px);
      margin-bottom: 25px;
      cursor: default;

      background-image: url('../../../assets/images/video/upload.svg');
    }

    .button-file {
      position: relative;
      overflow: hidden;
      display: inline-block;
      margin-bottom: 70px;

      @include peertube-button;
      @include orange-button;

      input[type=file] {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 100%;
        min-height: 100%;
        font-size: 100px;
        text-align: right;
        filter: alpha(opacity=0);
        opacity: 0;
        outline: none;
        background: white;
        cursor: inherit;
        display: block;
      }
    }

    select {
      @include peertube-select(auto);

      display: inline-block;
      font-size: 15px
    }
  }
}

p-progressBar {
  /deep/ .ui-progressbar {
    margin-top: 25px !important;
    margin-bottom: 40px !important;
    font-size: 15px !important;
    color: #fff !important;
    height: 30px !important;
    line-height: 30px !important;
    border-radius: 3px !important;
    background-color: rgba(11, 204, 41, 0.16) !important;

    .ui-progressbar-value {
      background-color: #0BCC29 !important;
    }

    .ui-progressbar-label {
      text-align: left;
      padding-left: 18px;
      margin-top: 0 !important;
    }
  }

  &.processing {
    /deep/ .ui-progressbar-label {
      // Same color as background to hide "100%"
      color: rgba(11, 204, 41, 0.16) !important;

      &::before {
        content: 'Processing...';
        color: #fff;
      }
    }
  }
}