summaryrefslogtreecommitdiff
path: root/openstack_dashboard/themes/material/static/horizon/_styles.scss
blob: 8b0775727129245e1c2cf95c8c2a3afd9ad9a31c (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
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
// NOTE(e0ne): it's temporary workaround to until specified function will
// be supported by pyScss. We need to define this function before any MDI
// usage.
@if not function-exists("selector-append") {
  @function selector-append($selector, $to-append) {
    @return append-selector($selector, $to-append);
  }
}

@import "animations";
@import "icons";
@import "components/checkboxes";
@import "components/context_selection";
@import "components/datepicker";
@import "components/dropdowns";
@import "components/hamburger";
@import "components/help_panel";
@import "components/loader_circular_example";
@import "components/loader_line_example";
@import "components/loader_spinner";
@import "components/magic_search";
@import "components/messages";
@import "components/navbar";
@import "components/progress_bars";
@import "components/radiobuttons";
@import "components/selects";
@import "components/sidebar";
@import "components/spinners";
@import "components/trees";

.login .splash-logo {
  width: 215px;
}

#content_body {
  transition: padding-left $sidebar-animation;
  display: block;

  @media (max-width: $screen-lg) {
    padding-left: 0;
  }
}

#main_content {
  display: block;
  min-width: unset;
  width: 100%;
}


// Border radius is unattractive here
.navbar {
  border-radius: 0;

  // Must adhere to the bootstrap standards, so navbar elements must
  // inherit from respective navbar-link color.
  &-default {
    .navbar-brand {
      svg {
        fill: $navbar-default-link-active-color;
      }
    }

    .md-hamburger-layer {
      background: $navbar-default-link-color;

      &:hover {
        background: $navbar-default-link-hover-color;
      }
    }
  }

  &-inverse {
    .navbar-brand {
      svg {
        fill: $navbar-inverse-link-active-color;
      }
    }

    .md-hamburger-layer {
      background: $navbar-inverse-link-color;

      &:hover {
        background: $navbar-inverse-link-hover-color;
      }
    }

    @media (max-width: $screen-sm) {
      .dropdown-header {
        color: $navbar-inverse-link-color;
      }
    }
  }
}

.navbar-brand {
  svg {
    height: $navbar-height - $padding-small-horizontal*2;
    margin-top: $padding-small-horizontal;
    display: inline-block;
  }
}

// Hamburger menu only shows on smaller screen sizes
.navbar-header .md-hamburger {
  display: none;

  @media (max-width: $screen-lg) {
    display: inline-block;
    float: left;

    & > button {
      padding: $navbar-padding-vertical $navbar-padding-horizontal;
      height: $navbar-height;
    }
  }
}

// The mask that the hamburger menu uses to apply an opacity
// to the entire page when in smaller screen
#md-hamburger-mask {
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  transform: translateZ(0);
  visibility: hidden;
  opacity: 0;
  width: 100%;
  z-index: 2;
  transition: all $hamburger-transition;

  @media (max-width: $screen-lg) {
    &.active {
      visibility: visible;
      opacity: 1;
    }
  }
}