_static-pages.scss 2.61 KB
Newer Older
1 2 3 4 5 6 7 8
.static-pages {
  .new-static-page-button {
    @include grey-button;
    display: block;
    text-align: center;
    padding: 12px 0;
  }

9
  .unit-body {
10
    padding: 0;
11 12 13 14 15 16 17 18

    .details {
      display: block !important;

      h2 {
        margin: 0 0 5px 0;
      }
    }
19 20
  }

21 22 23 24 25
  .component-editor {
    border: none;
    border-radius: 0;
  }

26
  .components > li {
27 28 29 30 31 32
    margin: 0;
    border-radius: 0;

    &.new-component-item {
      margin-top: 20px;
    }
33 34 35
  }

  .component {
36 37 38 39 40 41
    border: 1px solid $mediumGrey;
    border-top: none;

    &:first-child {
      border-top: 1px solid $mediumGrey;
    }
42 43

    &:hover {
44 45 46 47 48 49
      border: 1px solid $mediumGrey;
      border-top: none;

      &:first-child {
        border-top: 1px solid $mediumGrey;
      }
50 51

      .drag-handle {
52
        background: url(../img/drag-handles.png) center no-repeat #fff;
53 54 55 56 57 58 59 60 61
      }
    }

    .drag-handle {
      top: 0;
      right: 0;
      z-index: 11;
      width: 35px;
      border: none;
62
      background: url(../img/drag-handles.png) center no-repeat #fff;
63 64

      &:hover {
65
        background: url(../img/drag-handles.png) center no-repeat #fff;
66 67 68 69 70 71 72 73 74 75
      }
    }

    .component-actions {
      top: 26px;
      right: 44px;
    }
  }

  .component.editing {
76 77 78
    border-left: 1px solid $mediumGrey;
    border-right: 1px solid $mediumGrey;

79 80 81 82 83
    .xmodule_display {
      display: none;
    }
  }

84 85 86 87
  .new .xmodule_display {
    background: $yellow;
  }

88 89 90 91
  .xmodule_display {
    padding: 20px 20px 22px;
    font-size: 24px;
    font-weight: 300;
92
    background: #fff;
93
    @include transition(background-color 3s);
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 140 141 142 143 144 145 146 147 148 149 150 151
  .static-page-item {
    position: relative;    
    margin: 10px 0;
    padding: 22px 20px;
    border: 1px solid $darkGrey;
    border-radius: 3px;
    background: #fff;    
    @include box-shadow(0 1px 2px rgba(0, 0, 0, .1));

    .page-name {
      font-size: 19px;
      font-weight: 700;
    }

    .item-actions {
      margin-top: 19px;
      margin-right: 12px;
    }
  }
}

.edit-static-page {
  .main-wrapper {
    margin-top: 40px;
  }

  .static-page-details {
    @extend .window;
    padding: 32px 40px;

    .row {
      border: none;
    }
  }

  .page-display-name-input {
    width: 100%;
    font-size: 20px;
  }

  .page-contents {
    @include box-sizing(border-box);
    width: 100%;
    height: 360px;
    padding: 15px;
    border: 1px solid #b0b6c2;
    border-radius: 2px;
    @include linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, .3));
    background-color: #edf1f5;
    @include box-shadow(0 1px 2px rgba(0, 0, 0, .1) inset);
    font-family: Monaco, monospace;
    font-size: 13px;
    color: #3c3c3c;
    outline: 0;
  }
}