_textbook.scss 4.28 KB
Newer Older
1
div.book-wrapper {
2 3 4
  max-width: 1150px;
  margin: 0 auto;
  width: 100%;
Dave St.Germain committed
5
  /*background-color: $white;*/
6

7 8 9 10
  #open_close_accordion {
    display: none;
  }

11 12 13 14 15 16 17 18 19
  .pdfbook-wrap {
    display: table;
    width: 100%;
  }

  .pdfbook-wrap-inner {
    display: table-row;
  }

20
  section.book-sidebar {
21
    @extend .sidebar;
22
    @extend .tran;
23
    @include box-sizing(border-box);
24
    padding: ($baseline/2) 0;
25
    border-radius: 3px 0 0 3px;
26
    border: 1px solid $gray-l3;
27
    border-right: none;
Dave St.Germain committed
28
    width: 180px;
29

30
    ul#booknav {
31
      font-size: em(14);
32

33 34 35 36 37 38 39 40 41
      .chapter-number {
      }

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

42 43
      .page-number {
        float: right;
44
        width: 12%;
45
        font-size: .8em;
46 47
        line-height: 2.1em;
        text-align: right;
48
        color: #9a9a9a;
49
        opacity: 0.0;
50
        @include transition(opacity .15s linear 0s);
51 52
      }

53
      li {
54
        background: none;
55
        border-bottom: 0;
56
        padding-left: ($baseline/2);
57 58

        a {
59
          @include clearfix();
60 61 62
          padding: 0;
          color: $link-color;
          cursor: pointer;
63

64
          &:hover, &:focus {
65
            background-color: transparent;
66
            color: $link-hover;
67 68

            .page-number {
69
              opacity: 1.0;
70
            }
71 72
          }
        }
73 74

        div.hitarea {
75
          background-image: url('#{$static-path}/images/treeview-default.gif');
76

77 78 79
          position: relative;
          top: 4px;

80
          &:hover, &:focus {
81
            filter: alpha(opacity=60);
82
            opacity: 0.6;
83 84 85 86 87
          }
        }

        ul {
          background: none;
88 89 90 91
          margin-top: lh(.25);
          padding-top: lh(.25);

          li {
92
            padding-bottom: ($baseline/2);
93
          }
94
        }
95
      }
96

97
      > li {
98
        padding: ($baseline/4) 6px;
99
        margin: ($baseline/4) ($baseline/2);
100
      }
101
    }
102 103
  }

Dave St.Germain committed
104
  .book {
105
    @extend .content;
106 107
    padding: 0;
    width:76%;
108 109

    nav {
110
      @extend .clearfix;
111

112 113
      a {
        @extend .block-link;
Kyle Fiedler committed
114
        padding: 0 lh();
115 116
      }

117 118 119
      ul {
        @extend .clearfix;

120
        li {
121 122 123
          position: absolute;
          height: 100%;
          width: flex-grid(2, 8);
124
          z-index: 1;
125 126

          a {
127 128
            background-color: rgba(#000, .7);
            background-position: center;
129 130 131 132
            background-repeat: no-repeat;
            @include box-sizing(border-box);
            display: table;
            height: 100%;
133
            opacity: 0.0;
134
            filter: alpha(opacity=0);
135
            text-indent: -9999px;
136
            @include transition(none);
137 138
            vertical-align: middle;
            width: 100%;
139

140
            &:hover, &:focus {
141 142
              opacity: 1.0;
            }
143

144 145 146 147
            &.is-disabled {
              display:none;
            }
          }
148

149
          &.last {
150
            left: 0;
151 152

            a {
153
              background-image: url('#{$static-path}/images/textbook/textbook-left.png');
154
            }
155 156 157
          }

          &.next {
158
            right: 0;
159 160

            a {
161
              background-image: url('#{$static-path}/images/textbook/textbook-right.png');
162
            }
163
          }
164

165 166
        }
      }
167 168 169

      &.bottom-nav {
        border-bottom: 0;
170 171
        margin-bottom: -(lh());
        margin-top: lh();
172
      }
173
    }
174

175
    section.page {
176
      border-left: 1px solid $border-color;
177
      background-color: $white;
178 179
      position: relative;
      text-align: center;
180
      border-radius: 0 3px 3px 0;
181

182
      img {
183
        max-width: 100%;
184
      }
185

186 187 188 189
      #viewer {
        padding: $baseline;
      }

190 191
      div {
        text-align: left;
marco committed
192
      	line-height: 1.6em;
193
      	margin: ($baseline/4);
194

195
	.Paragraph, h2 {
196
	   margin-top: ($baseline/2);
197
	}
198
      }
199
    }
200
  }
201 202 203 204 205 206 207 208 209

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

      header#open_close_accordion {
        padding: 0;

        a {
210
          background-image: url('#{$static-path}/images/slide-right-icon.png');
211 212 213
        }

        h2 {
214
          padding: 0;
215 216 217 218 219 220
          visibility: hidden;
          width: 10px;
        }
      }

      ul#booknav {
221 222 223
        max-height: 100px;
        overflow: hidden;
        padding: 0;
224 225 226 227 228 229 230 231 232
        visibility: hidden;
        width: 10px;
      }
    }

    section.course-content {
      width: flex-grid(11.5) + flex-gutter();
    }
  }
233
}
234 235 236