aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.scss
blob: 67a0e532cb5052fcf8088a7ae3e0e15b05fb0453 (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
@import "../../globalCssVariables";
.collectionfreeformview {
  position: inherit;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: left top;
  pointer-events: none;
}
.collectionfreeformview-container {
  .collectionfreeformview > .jsx-parser {
    position: inherit;
    height: 100%;
    width: 100%;
  }

  //nested freeform views
  // .collectionfreeformview-container {
    // background-image: linear-gradient(to right, $light-color-secondary 1px, transparent 1px),
    //   linear-gradient(to bottom, $light-color-secondary 1px, transparent 1px);
    // background-size: 30px 30px;
  // }

  border-width: $COLLECTION_BORDER_WIDTH;
  box-shadow: $intermediate-color 0.2vw 0.2vw 0.8vw;
  border-color:  $light-color-secondary;
  border-style: solid; 
  border-radius: $border-radius;
  box-sizing: border-box;
  position: absolute;
  overflow: hidden;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.collectionfreeformview-overlay {
  .collectionfreeformview > .jsx-parser {
    position: inherit;
    height: 100%;
  }
  .formattedTextBox-cont {
    background: $light-color-secondary;
    overflow: visible;
  }
 
  opacity: 0.99;
  border-width: 0; 
  border-color: transparent;
  border-style: solid; 
  border-radius: $border-radius;
  box-sizing: border-box;
  position: absolute;
  overflow: hidden;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  .collectionfreeformview {
    .formattedTextBox-cont {
        background:yellow;
    }
  }
}

// selection border...?
.border {
  border-style: solid;
  box-sizing: border-box;
  width: 98%;
  height: 98%;
  border-radius: $border-radius;
}

//this is an animation for the blinking cursor!
@keyframes blink {
  0% {
    opacity: 0;
  }
  49% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

#prevCursor {
  animation: blink 1s infinite;
}