summaryrefslogtreecommitdiff
path: root/openstack_dashboard/static/dashboard/scss/_util.scss
blob: 53960672e06f3990fde17ec62257910fedafd450 (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
/* Some utility classes useful everywhere */
@import "/horizon/lib/bootstrap_scss/scss/bootstrap/mixins";

.row .horizontal-center,
.horizontal-center {
  @include horizontal-center();
}

.vertical-center {
  @include vertical-center();
}

/* new clearfix */
.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

.clear {
  clear: both;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
}

.header_rule {
  margin-top: 0;
}

input::-ms-clear, input::-ms-reveal {
  display: none;
}

// Used to x-scroll to Pre-formatted text.
.pre_scrollable {
  display: table;
  table-layout: fixed;
  width: 100%;

  pre {
    word-wrap: normal;
  }
}

// Set on an element that you would like to word wrap to container size
.word-wrap {
  word-wrap: break-word;
}

.truncate {
  display: block;
  @include text-overflow();
}

// Add functionality for a horizontal Bootstrap toggle element
.collapsing.width {
  @include transition-property(width, visibility);
  width: 0;
  height: auto;
}

[ng-click] {
  cursor: pointer;
}