_amplifier.scss 5.76 KB
Newer Older
1 2 3 4 5 6
// JM MOSFET AMPLIFIER
section.tool-wrapper {
  @extend .clearfix;
  background: #073642;
  border-bottom: 1px solid darken(#002b36, 10%);
  border-top: 1px solid darken(#002b36, 10%);
7
  box-shadow: inset 0 0 0 4px darken(#094959, 2%);
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
  color: #839496;
  display: table;
  margin: lh() (-(lh())) 0;

  div#graph-container {
    background: none;
    @include box-sizing(border-box);
    display: table-cell;
    padding: lh();
    vertical-align: top;
    width: flex-grid(4.5, 9) + flex-gutter(9);

    .ui-widget-content {
      background: none;
      border: none;
23
      border-radius: 0;
24 25 26 27 28 29 30 31 32
    }

    canvas {
      width: 100%;
    }

    ul.ui-tabs-nav {
      background: darken(#073642, 2%);
      border-bottom: 1px solid darken(#073642, 8%);
33
      border-radius: 0;
34 35 36 37 38 39 40 41
      margin: (-(lh())) (-(lh())) 0;
      padding: 0;
      position: relative;
      width: 110%;

      li {
        background: none;
        border: none;
42
        border-radius: 0;
43
        color: $white;
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
        margin-bottom: 0;

        &.ui-tabs-selected {
          background-color: #073642;
          border-left: 1px solid darken(#073642, 8%);
          border-right: 1px solid darken(#073642, 8%);

          &:first-child {
            border-left: none;
          }

          a {
            color: #eee8d5;
          }
        }

        a {
          border: none;
          color: #839496;
          font: bold 12px $body-font-family;
          letter-spacing: 1px;
          text-transform: uppercase;

67
          &:hover, &:focus {
68 69 70 71 72 73 74 75 76 77 78
            color: #eee8d5;
          }
        }
      }
    }
  }

  div#controlls-container {
    @extend .clearfix;
    background: darken(#073642, 2%);
    border-right: 1px solid darken(#002b36, 6%);
79
    box-shadow: 1px 0 0 lighten(#002b36, 6%), inset 0 0 0 4px darken(#094959, 6%);
80 81 82 83 84 85 86 87 88 89 90
    @include box-sizing(border-box);
    display: table-cell;
    padding: lh();
    vertical-align: top;
    width: flex-grid(4.5, 9);

    div.graph-controls {

      div.music-wrapper {
        @extend .clearfix;
        border-bottom: 1px solid darken(#073642, 10%);
91
        box-shadow: 0 1px 0 lighten(#073642, 2%);
92 93 94 95 96 97 98 99 100
        margin-bottom: lh();
        padding: 0 0 lh();

        input#playButton {
          border-color: darken(#002b36, 6%);
          @include button(simple, lighten( #586e75, 5% ));
          display: block;
          float: right;
          font: bold 14px $body-font-family;
101
          margin-top: 19px;
102 103

          &:active {
104
            box-shadow: none;
105 106 107 108 109 110 111
          }

          &[value="Stop"] {
            @include button(simple, darken(#268bd2, 30%));
            font: bold 14px $body-font-family;

            &:active {
112
              box-shadow: none;
113 114 115 116 117 118 119 120
            }
          }
        }
      }

      div.inputs-wrapper {
        @extend .clearfix;
        border-bottom: 1px solid darken(#073642, 10%);
121
        box-shadow: 0 1px 0 lighten(#073642, 2%);
122
        @include clearfix();
123 124 125 126 127 128 129
        margin-bottom: lh();
        margin-bottom: lh();
        padding: 0 0 lh();
      }

      p {
        font-weight: bold;
130
        display: inline-block;
131 132 133
        margin: 0;
        text-shadow: 0 -1px 0 darken(#073642, 10%);
        -webkit-font-smoothing: antialiased;
134
        color: #839496;
135 136 137
      }

      ul {
138
        display: inline-block;
139 140 141
        margin-bottom: 0;

        li {
142
          display: inline-block;
143 144 145
          margin-bottom: 0;

          input {
146
            margin-right: ($baseline/4);
147 148 149 150 151 152 153 154
          }
        }
      }

      div#graph-listen {
        display: block;
        float: left;
        margin-bottom: 0;
155
        margin-right: $baseline;
156 157 158 159 160 161
        margin-top: 8px;
        text-align: right;
      }
    }

    label {
162
      border-radius: 2px;
163
      color: $white;
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
      font-weight: bold;
      padding: 3px;
      -webkit-font-smoothing: antialiased;
    }

    //MOSFET AMPLIFIER
    label[for="vinCheckbox"], label[for="vinRadioButton"]{
      color: desaturate(#00bfff, 50%);
    }

    label[for="voutCheckbox"], label[for="voutRadioButton"]{
      color: darken(#ffcf48, 20%);
    }

    label[for="vrCheckbox"], label[for="vrRadioButton"]{
      color: desaturate(#1df914, 40%);
    }

    //RC Filters
    label[for="vcCheckbox"], label[for="vcRadioButton"]{
      color: darken(#ffcf48, 20%);
    }

    //RLC Series
    label[for="vlCheckbox"], label[for="vlRadioButton"]{
      color: desaturate(#d33682, 40%);
    }

    div.schematic-sliders {
      div.top-sliders {
        @extend .clearfix;
        border-bottom: 1px solid darken(#073642, 10%);
196
        box-shadow: 0 1px 0 lighten(#073642, 2%);
197 198 199 200 201
        margin-bottom: lh();
        padding: 0 0 lh();

        select#musicTypeSelect {
          font: 16px $body-font-family;
202
          display: inline-block;
203 204 205 206 207
          margin-bottom: 0;
        }

        p {
          font-weight: bold;
208
          display: inline-block;
209
          margin: 0 lh(0.5) lh() 0;
210
          color: #839496;
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
          text-shadow: 0 -1px 0 darken(#073642, 10%);
          -webkit-font-smoothing: antialiased;
        }
      }

      div.slider-label {
        font-weight: bold;
        margin-bottom: lh(0.5);
        text-shadow: 0 -1px 0 darken(#073642, 10%);
        -webkit-font-smoothing: antialiased;
      }

      div.slider {
        margin-bottom: lh(1);

        &.ui-slider-horizontal {
          background: darken(#002b36, 2%);
          border: 1px solid darken(#002b36, 8%);
229
          box-shadow: none;
230 231 232 233
          height: 0.4em;
        }

        .ui-slider-handle {
234
          background: lighten( #586e75, 5% ) url('#{$static-path}/images/amplifier-slider-handle.png') center no-repeat;
235
          border: 1px solid darken(#002b36, 8%);
236
          box-shadow: inset 0 1px 0 lighten( #586e75, 20% );
237 238
          margin-top: -.3em;

239
          &:hover, &:active, &:focus {
240 241 242 243 244 245 246
            background-color: lighten( #586e75, 10% );
          }
        }
      }
    }
  }
}