_textbook.scss 3.5 KB
Newer Older
1
div.book-wrapper {
2
  @extend .table-wrapper;
3

4 5 6 7
  #open_close_accordion {
    display: none;
  }

8
  section.book-sidebar {
9
    @extend .sidebar;
10
    @extend .tran;
11
    @include box-sizing(border-box);
12 13 14
    padding: 10px 0;
    border-radius: 3px 0 0 3px;
    border-right: 1px solid #ccc;
15

16
    ul#booknav {
17
      font-size: em(14);
18

19 20 21 22 23 24 25 26 27
      .chapter-number {
      }

      .chapter {
        float: left;
        width: 87%;
        line-height: 1.4em;
      }

28 29
      .page-number {
        float: right;
30
        width: 12%;
31
        font-size: .8em;
32 33
        line-height: 2.1em;
        text-align: right;
34
        color: #9a9a9a;
35 36
        opacity: 0;
        @include transition(opacity .15s);
37 38
      }

39
      li {
40
        background: none;
41
        border-bottom: 0;
42
        padding-left: lh();       
43 44 45

        a {
          padding: 0;
46
          @include clearfix;
47 48 49

          &:hover {
            background-color: transparent;
50 51 52 53

            .page-number {
              opacity: 1;
            }
54 55
          }
        }
56 57

        div.hitarea {
58
          background-image: url('../images/treeview-default.gif');
59
          
60 61 62 63 64
          position: relative;
          top: 4px;

          &:hover {
            filter: alpha(opacity=60);
65
            opacity: 0.6;
66 67 68 69 70
          }
        }

        ul {
          background: none;
71 72 73 74
          margin-top: lh(.25);
          padding-top: lh(.25);

          li {
75
            padding-bottom: 10px;
76
          }
77
        }
78
      }
79

80
      > li {
81 82
        padding: 5px 6px;
        margin: 0 16px 5px 25px;
83
      }
84
    }
85 86 87
  }

  section.book {
88
    @extend .content;
89 90

    nav {
91
      @extend .clearfix;
92

93 94
      a {
        @extend .block-link;
Kyle Fiedler committed
95
        padding: 0 lh();
96 97
      }

98 99 100
      ul {
        @extend .clearfix;

101
        li {
102 103 104 105 106
          position: absolute;
          height: 100%;
          width: flex-grid(2, 8);

          a {
107 108
            background-color: rgba(#000, .7);
            background-position: center;
109 110 111 112
            background-repeat: no-repeat;
            @include box-sizing(border-box);
            display: table;
            height: 100%;
113 114
            opacity: 0;
            filter: alpha(opacity=0);
115
            text-indent: -9999px;
116 117 118
            @include transition;
            vertical-align: middle;
            width: 100%;
119 120 121 122 123 124

            &:hover {
              opacity: 1;
              filter: alpha(opacity=100);
            }
          }
125

126
          &.last {
127
            left: 0;
128 129 130 131

            a {
              background-image: url('../images/textbook/textbook-left.png');
            }
132 133 134
          }

          &.next {
135
            right: 0;
136 137 138 139

            a {
              background-image: url('../images/textbook/textbook-right.png');
            }
140
          }
141

142 143
        }
      }
144 145 146

      &.bottom-nav {
        border-bottom: 0;
147 148
        margin-bottom: -(lh());
        margin-top: lh();
149
      }
150
    }
151

152
    section.page {
153
      border: 1px solid $border-color;
154 155
      position: relative;
      text-align: center;
156

157
      img {
158
        max-width: 100%;
159 160
      }
    }
161
  }
162 163 164 165 166 167 168 169 170

  &.closed {
    section.book-sidebar {
      width: flex-grid(.6);

      header#open_close_accordion {
        padding: 0;

        a {
171
          background-image: url('../images/slide-right-icon.png');
172 173 174
        }

        h2 {
175
          padding: 0;
176 177 178 179 180 181
          visibility: hidden;
          width: 10px;
        }
      }

      ul#booknav {
182 183 184
        max-height: 100px;
        overflow: hidden;
        padding: 0;
185 186 187 188 189 190 191 192 193
        visibility: hidden;
        width: 10px;
      }
    }

    section.course-content {
      width: flex-grid(11.5) + flex-gutter();
    }
  }
194
}