BigW Consortium Gitlab

zen.scss 1.6 KB
Newer Older
1
.zennable {
2
  .zen-toggle-comment {
3 4 5 6
    display: none;
  }

  .zen-enter-link {
7
    color: $gl-gray;
8
    position: absolute;
9
    top: 0px;
10
    right: 4px;
11
    line-height: 40px;
12 13 14 15
  }

  .zen-leave-link {
    display: none;
16
    color: $gl-text-color;
17 18 19 20 21 22 23 24 25 26 27
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px;
    font-size: 36px;

    &:hover {
      color: #111;
    }
  }

28
  // Hide the Enter link when we're in Zen mode
29 30 31 32
  input:checked ~ .zen-backdrop .zen-enter-link {
    display: none;
  }

33
  // Show the Leave link when we're in Zen mode
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
  input:checked ~ .zen-backdrop .zen-leave-link {
    display: block;
    position: absolute;
    top: 0;
  }

  input:checked ~ .zen-backdrop {
    background-color: white;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1031;

    textarea {
      border: none;
      box-shadow: none;
      border-radius: 0;
      color: #000;
      font-size: 20px;
      line-height: 26px;
      padding: 30px;
      display: block;
      outline: none;
      resize: none;
      height: 100vh;
      max-width: 900px;
      margin: 0 auto;
    }
  }

66 67 68
  // Make the color of the placeholder text in the Zenned-out textarea darker,
  // so it becomes visible

69
  input:checked ~ .zen-backdrop textarea::-webkit-input-placeholder {
70
    color: #A8A8A8;
71 72 73
  }

  input:checked ~ .zen-backdrop textarea:-moz-placeholder {
74
    color: #A8A8A8;
75 76 77 78
    opacity: 1;
  }

  input:checked ~ .zen-backdrop textarea::-moz-placeholder {
79
    color: #A8A8A8;
80 81 82 83
    opacity: 1;
  }

  input:checked ~ .zen-backdrop textarea:-ms-input-placeholder {
84
    color: #A8A8A8;
85 86
  }
}