summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/modal.scss
blob: 32b9894ae04e0a9ad95f7014c2b31b4b1b3e91b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
.modal-header {
  background-color: $modal-body-bg;
  padding: #{3 * $grid-size} #{2 * $grid-size};

  .page-title {
    margin-top: 0;
  }
}

.modal-body {
  background-color: $modal-body-bg;
  line-height: $line-height-base;
  min-height: $modal-body-height;
  position: relative;
  padding: #{3 * $grid-size} #{2 * $grid-size};
  text-align: left;

  .form-actions {
    margin: #{2 * $grid-size} #{-2 * $grid-size} #{-2 * $grid-size};
  }

  .text-danger {
    font-weight: $gl-font-weight-bold;
  }
}

.modal-footer {
  display: flex;
  flex-direction: row;

  .btn + .btn {
    margin-left: $grid-size;
  }

  @media (max-width: $screen-xs-max) {
    flex-direction: column;

    .btn + .btn {
      margin-left: 0;
      margin-top: $grid-size;
    }
  }

  @media (min-width: $screen-sm-min) {
    .btn:first-of-type {
      margin-left: auto;
    }
  }
}

body.modal-open {
  overflow: hidden;
}

.modal-no-backdrop {
  @extend .modal-dialog;

  .modal-content {
    box-shadow: none;
  }
}

@media (min-width: $screen-lg-min) {
  .modal-full {
    width: 98%;
  }
}

.modal {
  background-color: $black-transparent;
  z-index: 2100;

  @media (min-width: $screen-md-min) {
    .modal-dialog {
      margin: 30px auto;
    }
  }
}

.recaptcha-modal .recaptcha-form {
  display: inline-block;

  .recaptcha {
    margin: 0;
  }
}