_base.scss 6.08 KB
Newer Older
1 2
// -------------------------------------
//
3
//	Universal
4 5 6 7
//
// -------------------------------------

body {
Calen Pennington committed
8 9 10 11 12 13
    min-width: 980px;
    background: #f3f4f5;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #3c3c3c;
14 15 16
}

a {
Calen Pennington committed
17 18
    text-decoration: none;
    color: $blue;
Tom Giannattasio committed
19
    @include transition(color .15s);
20

Calen Pennington committed
21 22 23
    &:hover {
        color: #cb9c40;
    }
24 25 26
}

h1 {
Tom Giannattasio committed
27
    float: left;
Calen Pennington committed
28 29
    font-size: 28px;
    margin: 36px 6px;
30 31
}

32 33 34 35
.waiting {
    opacity: 0.1;
}

Tom Giannattasio committed
36 37 38 39 40
.page-actions {
    float: right;
    margin-top: 42px;
}

41
.main-wrapper {
Calen Pennington committed
42 43
    position: relative;
    margin: 0 40px;
44 45 46
}

.inner-wrapper {
Calen Pennington committed
47 48 49
    position: relative;
    max-width: 1280px;
    margin: auto;
Tom Giannattasio committed
50 51 52 53

    > article {
        clear: both;
    }
54 55 56
}

.window {
Calen Pennington committed
57 58 59
    background: #fff;
    border: 1px solid $darkGrey;
    border-radius: 3px;
Tom Giannattasio committed
60
    @include box-shadow(0 1px 2px rgba(0, 0, 0, .1));
61 62 63
}

.sidebar {
Calen Pennington committed
64 65
    float: right;
    width: 28%;
66 67
}

68
.left {
Calen Pennington committed
69
    float: left;
70 71
}

72
.right {
Calen Pennington committed
73
    float: right;
74 75
}

76
footer {
Calen Pennington committed
77 78
    clear: both;
    height: 100px;
79 80
}

Tom Giannattasio committed
81 82 83
input[type="text"],
input[type="email"],
input[type="password"] {
Calen Pennington committed
84
    padding: 6px 8px 8px;
Tom Giannattasio committed
85
    @include box-sizing(border-box);
Calen Pennington committed
86 87
    border: 1px solid #b0b6c2;
    border-radius: 2px;
Tom Giannattasio committed
88 89 90
    @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);
Calen Pennington committed
91 92 93 94 95
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: #3c3c3c;
    outline: 0;

Tom Giannattasio committed
96 97 98
    &::-webkit-input-placeholder,
    &:-moz-placeholder,
    &:-ms-input-placeholder {
Calen Pennington committed
99 100
        color: #979faf;
    }
101 102
}

103
input.search {
Calen Pennington committed
104
    padding: 6px 15px 8px 30px;
Tom Giannattasio committed
105
    @include box-sizing(border-box);
Calen Pennington committed
106 107 108 109 110 111
    border: 1px solid $darkGrey;
    border-radius: 20px;
    background: url(../img/search-icon.png) no-repeat 8px 7px #edf1f5;
    font-family: 'Open Sans', sans-serif;
    color: #3c3c3c;
    outline: 0;
112

Calen Pennington committed
113 114 115
    &::-webkit-input-placeholder {
        color: #979faf;
    }
116 117
}

118
label {
Calen Pennington committed
119
    font-size: 12px;
120 121
}

Tom Giannattasio committed
122 123 124 125 126 127 128
code {
    padding: 0 4px;
    border-radius: 3px;
    background: #eee;
    font-family: Monaco, monospace;
}

129
.text-editor {
Calen Pennington committed
130 131 132
    width: 100%;
    min-height: 80px;
    padding: 10px;
Tom Giannattasio committed
133
    @include box-sizing(border-box);
Calen Pennington committed
134
    border: 1px solid #b0b6c2;
Tom Giannattasio committed
135 136 137
    @include linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3));
    background-color:  #edf1f5;
    @include box-shadow(0 1px 2px rgba(0, 0, 0, 0.1) inset);
Calen Pennington committed
138
    font-family: Monaco, monospace;
139 140
}

141
.new-unit-item,
142 143
.new-subsection-item,
.new-policy-item {
Calen Pennington committed
144 145 146 147
    @include grey-button;
    margin: 5px 8px;
    padding: 3px 10px 4px 10px;
    font-size: 10px;
148

Calen Pennington committed
149
    .new-folder-icon,
150
    .new-policy-icon,
Calen Pennington committed
151 152 153 154
    .new-unit-icon {
        position: relative;
        top: 2px;
    }
155 156
}

157
.item-actions {
Calen Pennington committed
158 159 160
    position: absolute;
    top: 5px;
    right: 5px;
161

Calen Pennington committed
162 163 164 165 166 167 168
    .edit-button,
    .delete-button,
    .visibility-toggle {
        float: left;
        margin-right: 13px;
        color: #a4aab7;
    }
169 170 171
}

.item-details {
Calen Pennington committed
172 173
    float: left;
    padding: 10px 0;
174 175
}

176
.window {
Calen Pennington committed
177 178 179 180 181 182 183 184 185 186
    margin-bottom: 20px;

    .window-contents {
        padding: 20px;
    }

    h4 {
        padding: 6px 14px;
        border-bottom: 1px solid #cbd1db;
        border-radius: 3px 3px 0 0;
Tom Giannattasio committed
187 188 189
        @include linear-gradient(top, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 70%);
        background-color: #edf1f5;
        @include box-shadow(0 1px 0 rgba(255, 255, 255, .7) inset);
Calen Pennington committed
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
        font-size: 14px;
        font-weight: 600;
    }

    label {
        display: block;
        margin-bottom: 6px;
        font-weight: 700;

        &.inline-label {
            display: inline;
        }

        .description {
            display: block;
            font-size: 11px;
            font-weight: 400;
            font-style: italic;
            line-height: 1.3;
            color: #999;
        }
    }

    .row {
214 215
        margin-bottom: 10px;
        padding-bottom: 10px;
Calen Pennington committed
216 217 218 219
        border-bottom: 1px solid #cbd1db;
    }
}

220 221 222 223 224 225
body.hide-wip {
    .wip, .wip-box {
        display: none !important;
    }
}

Tom Giannattasio committed
226 227 228 229
body.show-wip {
    .wip {
        outline: 1px solid #f00 !important;
        position: relative;
Calen Pennington committed
230 231
    }

Tom Giannattasio committed
232 233 234 235 236 237 238 239 240 241 242
    .wip-box {
        @extend .wip;
        &:after {
            content: "WIP";
            font-size: 8px;
            padding: 2px;
            background: #f00;
            color: #fff;
            @include position(absolute, 0px 0px 0 0);
        }
    }
243 244
}

245 246 247
.waiting {
    
}
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
.toast-notification {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  max-width: 350px;
  padding: 15px 20px 17px;
  border-radius: 3px;
  border: 1px solid #333;
  @include linear-gradient(top, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0));
  background-color: rgba(30, 30, 30, .92);
  @include box-shadow(0 1px 3px rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 255, 255, .1) inset);
  font-size: 13px;
  text-align: center;
  color: #fff;
  @include transition(all .2s);

  p, span {
    color: #fff;
  }

  strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
  }

  .close-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 27px;
    height: 27px;
    font-size: 22px;
    font-weight: 700;
    line-height: 25px;
    color: #aaa;
    text-align: center;

    .close-icon {
      font-size: 16px;
      font-weight: 700;
    }
  }

  .action-button {
    @include blue-button;
    @include box-sizing(border-box);
    width: 100%;
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
  }
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
}

.waiting {
    position: relative;

    &:before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 999998;
        width: 100%;
        height: 100%;
        border-radius: inherit;
        background: rgba(255, 255, 255, .9);
    }

    &:after {
        content: '';
        @extend .spinner-icon;
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -10px;
        margin-top: -10px;
        z-index: 999999;
    }
}

.waiting-inline {
    &:after {
        content: '';
        @extend .spinner-icon;
    }
Tom Giannattasio committed
340
}