_custom.scss 10.2 KB
Newer Older
1
2
// Generic custom css (anything longer than a screen view should have its own component file)

Jen Zajac's avatar
Jen Zajac committed
3
4
5
6
7
8
9
10
11
12
13
14
#exportgeneration {
    text-align: center;
}

#progress-iframe { // old style progress bars, e.g. portfolio export
    border: 1px solid $gray;
    height: 40px;
    width: 100%;
    max-width: 650px;
    margin: 20px 0;
}

15
16
17
.task-item .link-block .icon {
    margin-left: -8px; //correct alignment
}
18

19
20
21
22
23
24
25
26
.no-results {
    @extend .lead;
    clear: both;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

27
28
29
30
31
.no-results-small {
    @extend .no-results;
    padding: 15px 0;
}

32
33
34
35
36
37
38
39
40
.wysiwyg {
    label {
        display:block;
    }
    label  + .mce-tinymce {
        width:100%;
    }
}

41
42
43
44
.wysiwyg.view-description {
    width: 70%;
}

45
46
47
48
.toolbar-affix.affix {
    position: fixed;
    top: 70px;
    z-index: 1;
49
50
51
    @media (max-width: $screen-sm-min) {
        top: 0;
    }
52
53
54
}

.layoutthumb {
55
56
    rect.layout1 {
        fill: darken($panel-default-heading-bg, 10%);
57
        stroke: $panel-default-border;
58
59
60
61
    }

    rect.layout0 {
        fill: darken($panel-default-heading-bg, 15%);
62
        stroke: $panel-default-border;
63
    }
64
65
66
67
68
69

    svg {
        @media (max-width: $screen-sm-min) {
           zoom: 0.8;
       }
    }
70
}
Pat Kira's avatar
Pat Kira committed
71

72
73
74
75
76
// Show that layout thumbnails can be clicked (Bug 1543358)
.layoutoption > .thumbnail {
    cursor: pointer;
}

Pat Kira's avatar
Pat Kira committed
77
78
79
.blocktype-radio {
    display: none;
}
Naomi Guyer's avatar
Naomi Guyer committed
80
81
82

// see emaillist.tpl
.email-list {
83
    padding-bottom: 20px;
Naomi Guyer's avatar
Naomi Guyer committed
84
    display: block;
85
86
87
    .validation-message {
        padding: 8px 0 15px 15px
    }
Naomi Guyer's avatar
Naomi Guyer committed
88
89
90
91
92
93
94
95
    @media (min-width: $screen-sm-min) {
        display: inline-block;
        width: 420px;
    }
    @media (min-width: $screen-lg-min) {
        width: 500px;
    }
}
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

// Styles for select2 in forms
// overriding select2 default styles
.select2-container-multi {
    max-width: 85% !important;
    display: inline-block;
    @media (min-width: $screen-sm-min) {
        width: 420px !important;
    }
    @media (min-width: $screen-lg-min) {
        width: 500px !important;
    }
    &.select2-dropdown-open {
        .select2-choices {
            border-radius: 4px 4px 0 0;
        }
    }
    .select2-choices {
        @include box-shadow(0 1px 1px rgba(0, 0, 0, 0.075) inset);
        border-radius: 4px;
        background-color: #fff;
        border: 1px solid #ccc;
        background-image: none;
        width: 100%;
        .select2-search-choice {
            border: none;
        }
    }
}
Pat Kira's avatar
Pat Kira committed
125

126
127
128
129
130
131
132
133
// Specific panel-secondary styling for the edit page layout
.panel-secondary.blockinstance > .panel-heading > .blockinstance-header {
    display: block;
    padding-left: 10px;
    padding-right: 80px;
    word-break: normal;
}

134
135
// Style label institution selection
.institutionselector {
136
137
138
139
140
141
142
143
144
145
146
147
    .select {
        margin-bottom: 15px;
    }
    label {
        font-weight: bold;
    }
    @media (min-width: $screen-sm-min) {
        float: right;
        width: 50%;
        .form-group {
            float: right;
        }
148
        label {
149
150
151
152
153
154
            display: table-cell;
            width: auto;
        }
        .picker {
            width: auto;
            display: table-cell;
155
        }
156
157
    }
}
158
159
160
161
162
163
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

// Reset checkout boxes inside col in portfolio export page
.portfolio-export {
    .heading {
        margin-top: 15px;
    }
    .heading-exportable-pages {
        margin-top: 0;
        float: left;
    }
    .btn-group {
        float: right;
    }
}
.exportable-artefacts {
    .row {
        :first-child {
            clear: both;
        }
        border-bottom: 1px solid $list-group-border;
    }
    .checkbox input[type=checkbox] {
        margin-left: 0;
    }
    label {
        margin-bottom: 10px;
    }
}
.exportable-artefact-container {
    padding: 15px 15px 0;
    background-color: rgba($brand-default, 0.2);
}
190

Liam Sharpe's avatar
Liam Sharpe committed
191
192
193
194
195
// reset the padding when the individual font file is collapsed in font install
.individualfiles.form-group {
    padding: 0;
    border-bottom: 0 none;
}
196
197
198
199
200

// Login panel
.login-externallink {
    display: inline-block;
}
201

202
203
204
205
206
207
208
209
210
.login-related-links {
  .register-link{
    padding-right: 2px;
  }
  .forgotpass-link {
    padding-left: 5px;
  }
}

211
212
213
214
215
216
217
218
219
.progress-bar {
    position: relative;
    &.small-progress span {
        display: block;
        left: 100%;
        padding-left: 5px;
        position: absolute;
    }
}
220

221
222
223
224
225
226
227
.progress-bar .decompress-link {
    color: $progress-bar-color;
    text-decoration: underline;
    display: inline-block;
    margin-top: 8px;
}

228
229
// Admin user search page (advanced options)
// limit the size of dynamic to match select box above
230
231
232
233
234
235
236
237
238
.userserach-filter {
    margin-bottom: 15px;
    .loggedindate-container {
        margin-top: 10px;
        max-width: 250px;
    }
    .duplicateemail-filter {
        margin-top: 10px;
    }
239
240
}

241
242
243
244
245
246
247
248
// Puts the date picker in form-condensed fields on the next line
.form-condensed {
    .picker {
        &.first {
            margin-left: 270px;
        }
    }
}
249

250
251
252
253
254
255
256
257
258
259
260
261
// Gallery thumbnails
// override bootstrap thumbnails styling
.thumbnails {
    padding-top: 20px;
    .thumb {
        margin: 5px;
    }
}
.thumbnail {
    margin: 0 15px 0 0;
    .panel-body & {
        margin-bottom: 10px;
262
263
    }
}
264

265
266
267
268
269
270
.user-thumbnails {
    .user-icon {
        margin: 5px;
    }
}

271
272
273
274
275
276
277
278
279
//Google apps
.google-app {
    font-style: normal;
    img {
        height: 20px;
    }
    a {
        color: #245dc1;
    }
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
}

// Choose skin
.layoutoptions-container {
    @extend .clearfix;
    margin-top: 15px;
}
.layoutoption,
.skin {
    float: left;
    margin-bottom: 10px;
}

.objectionable-message {
    padding: 0 0 10px 0;
}
Pat Kira's avatar
Pat Kira committed
296
297
298
299
300
301
302
303
304
305
306
307
308

// Other social media input
#editprofileform_profiletype_other {
    @extend .form-control;
    width: 250px !important;
    margin-top: 10px;
    @media (min-width: $screen-xs-min) {
        margin-left: 10px;
    }
    @media (min-width: $screen-sm-min) {
        margin-top: 0;
    }
}
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323

// Editgroup membership modal
// see editgroupmemship.tpl
.editgroup-container {
    padding-bottom: 20px;
    margin-bottom: 20px;
    &:last-child {
        border-bottom-width: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .heading {
        margin: 0;
    }
}
324
325
326
327
328
329
330
331
332
333

// Used to make the forum settings look like it should
@media (min-width: 768px) {
    #edit_interaction_weight_container {
        padding-left: 265px;
        label, span.description {
            margin-left: -265px;
        }
    }
}
334
335
336
337

.panel-secondary > .panel-heading {
    font-size: 18px;
}
338
339
340
341
342
343
344

.table thead {
    a::after {
        font-family: 'FontAwesome';
        position: relative;
        top: -3px;
        margin-left: 3px;
345
        color: $gray-light;
346
    }
347
    .asc > a::after {
348
349
        content: '\f0dd';
    }
350
351
    .desc > a::after,
    .sorted > a::after {
352
353
354
355
        content: '\f0de';
        top: 2px;
    }
}
356

357
.containobjectionable {
358
    background-color: $state-danger-bg;
359
}
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376

.permissions-table {
    display: inline-block;
    .editpermissions.table {
        width: auto;
        background-color: rgba(255,255,255,0);
        thead tr th {
            font-weight: 400;
            font-size: 12px;
            padding: 2px 8px 8px;
        }
        thead tr,
        tbody td {
            min-width: 50px;
        }
    }
}
377

378
379
380
381
382
#needprotocolspro {
    padding-left: 10px;
}

#needprotocolsreq {
383
384
    padding-left: 10px;
}
385

386
387
.secreturls .list-group-item,
.iframesources .buttonscell {
388
389
390
391
392
393
394
    .collapse-indicator.open .icon-chevron-down {
        transform: rotate(-180deg);
        transition-duration: 0.3s;
    }
    .collapse-indicator.closed .icon-chevron-down {
        transform: rotate(0deg);
        transition-duration: 0.3s;
395
396
    }
}
397

398
.secreturls .list-group-item {
399
400
    .secret-url {
        word-wrap: break-word;
401
402
    }
}
403
404
405
.iframesources .buttonscell a {
    font-size: 12px;
}
406
407
408
409

// Remove the link colour from a comment that has an attachement
@media (min-width: 992px) {
    .viewfooter .comment-item .comment-attachment .panel.collapsible h4 a.collapsed {
410
        color: $text-color;
411
412
    }
}
413
414
415

#inboxblock .link-block.unread {
    font-weight: bold;
416
417
418
419
420
421
422
}

// Preview image in popup modal
#previewimg {
    display: block;
    margin: 0 auto;
}
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443

// Edit/add skin page
// See templates/skin/index.tpl
.row.skins {
    margin-top: 30px;
    .skin {
        position: relative;
        min-height: 1px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        float: none;
        @media screen and (min-width: $screen-xs-min) {
            float: left;
            width: 50%;
        }
        @media screen and (min-width: $screen-sm-min) {
            width: 33.333333%;
        }
    }
}
444
.manage-skins-btn {
445
446
447
  margin-top: 10px;
  margin-bottom: 20px;
}
448
449
450
451

#auth_config_institutionidp {
    width: 90%;
}
452

453
454
455
456
457
.defaultskin {
    margin-top: 10px;
    margin-bottom: 20px;
}

458
459
460
461
462
463
464
465
.authInstance .authitem {
    padding:5px;
    &.inactive {
        background: $state-warning-bg;
        color: $state-warning-text;
    }
}

466
467
.btn-search.btn.btn-primary.admin-groups.button.btn {
    margin-left: -13px;
468
    margin-top: 2px;
469
470
    vertical-align: text-top;
}
471
472
473
474

.connections button {
    margin-top: 10px;
}
Robert Lyon's avatar
Robert Lyon committed
475
476
477
478
479

.emptybtnspace {
    display: inline-block;
    width: 30px;
}
480
481
482
483
484
485
486
487

// Make the other license text box align correctly on files page
.fileuploadlicense input[type=text].secondary-textbox,
.fileedittable input[type=text].secondary-textbox {
    @media (min-width: $screen-lg-min) {
        margin-left: 100px;
    }
}
488
489
490
491
492
493
494

// fix responsive layout for pages and collections grid where sidebar overlaps
.grouppageswrap.view-container:after {
  clear: both;
  content: "";
  display: table;
}
495
496
497
498

.notification-parent .bulk-actions label.btn-default {
  padding-bottom: 3px;
}
499
500
501
502

.forassessment label {
  display: inline-block !important;
  margin-top: -25px;
503
504
}

505
506
.accessurl-button {
    margin-bottom: 15px;
507
}
508

509
510
511
#reportconfigform {
    fieldset {
        margin-top: 10px;
512
    }
513
514
    .checkbox.form-group {
        padding: 10px 0;
515
516
517
518
519
520
521
        label {
            padding-left: 20px;
            display: inline;
        }
        input[type=checkbox] {
            float: left;
        }
522
523
    }
}
524

525
526
527
.reportsettings {
    margin-top: -5px;
}
528
529
530
531
532
533
534
535
536
537
538

.statinfoblock {
    width: 360px;

    h3 {
        margin-top: 0;
    }

    float: left;
    margin-right: 15px;
    padding: 5px;
539
540
541
542
}

.ownersubtab {
    padding: 4px 0;
543
544
545
546
547
548
549
550
}

.deletion-message {
    float: right;
    position: relative;
    padding: 5px;
    clear: right;
}
551
552
553
554
555

// Used to remove the second border around the legal information
#agreetoprivacy .panel {
    border: 0;
}