File: compat.less

package info (click to toggle)
icinga-php-library 0.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 21,152 kB
  • sloc: php: 48,616; javascript: 9,318; makefile: 9
file content (149 lines) | stat: -rw-r--r-- 2,768 bytes parent folder | download | duplicates (2)
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
87
88
89
90
91
92
93
94
95
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// General input styles

.icinga-controls {
  .uploaded-files {
    background-color: var(--default-input-bg, @default-input-bg);
  }
}

// Icinga Web < 2.13
.button-link[aria-disabled="true"]:hover {
  background: none;
}

form.icinga-form {
  .uploaded-files {
    flex: 1 1 auto;
    width: 0;
  }
}

.icinga-controls {
  .uploaded-files {
    font-size: inherit;
    padding: .5em;
  }
}

.icinga-controls {
  .required-hint {
    font-weight: bold;
    color: var(--default-text-color-light, @default-text-color-light);
  }
}


// Button styles

// The `form` selector is only required to overrule the hover effect applied by Icinga Web.
// It's not required if done by Icinga Web itself, only here because this is applied earlier
// as it's part of a library.
form.icinga-controls {
  button[type="submit"].remove-uploaded-file {
    all: unset;
  }
}

// Schedule Element styles

.icinga-form > .schedule-element,
.icinga-form > .schedule-element > fieldset {
  margin-top: 1em;

  > .control-group:first-child {
    margin-top: 0;
  }
}

.icinga-form .schedule-element {
  .control-group > fieldset > .weekly,
  .control-group > .ordinal,
  .control-group > .monthly,
  .control-group > .annually {
    flex: 1 1 auto;
  }

  // TODO: This effectively restricts the weekly fields to always be aligned to the right,
  //  regardless of the using an icinga-form or not. So this should be removed once we
  //  have re-implemented the decorators.
  .control-group > fieldset > .weekly {
    margin-left: 14em;
  }
}

form.icinga-form .control-group {
  > .monthly,
  > .ordinal {
    margin-right: 2em;
  }

  > .ordinal.annually {
    margin-right: 1em;
  }
}

// TermInput styles

form.icinga-form .control-group {
  > .term-input-area {
    flex: 1 1 auto;

    width: auto;
    &.vertical {
      width: 0;
    }

    input[type="text"] {
      flex: unset;
      width: 100%;
    }
  }
}

// suggestion-element style
form.icinga-form .suggestion-element-group {
  flex: 1 1 auto;

  .suggestion-element {
    border-radius: 0 0.25em 0.25em 0;
  }
}

.module-icingadb {
  // Icinga DB Web (legacy) table header layout (e.g. in group details)
  > .controls {
    > .table-row {
      display: flex;
      gap: .5em;

      > .col.title {
        margin-right: auto;
      }
    }
  }

  // Icinga DB Web (legacy) object grid layout
  > .content > .item-table.group-grid:has(.col.title) {
    grid-template-columns: repeat(auto-fit, 15em) !important;

    > .group-grid-cell {
      display: revert;

      &::before, &::after {
        display: none !important;
      }

      > .col.title {
        border: none;

        > .column-content {
          overflow: hidden;

          > * {
            .text-ellipsis();
          }
        }
      }
    }
  }
}