xref: /openbmc/phosphor-webui/app/server-control/styles/power-operations.scss (revision 4b366b5aeb97b35ab3612bfe1dc7d93a1f8a6e79)
1cd789508SIftekharul Islam// Power Operations SCSS
2cd789508SIftekharul Islam
3*e368108fSDixsie Wolmers.power-operations {
43bf7b0c8Sdixsie  // Power Current status wrapper
5cd789508SIftekharul Islam  .power__current-status {
66f7ec80eSYoshie Muranaka    border-bottom: 1px solid $border-color-01;
746f0a1f8SMichael Davis    margin: 1.3em 0 1.2em 0;
8cd789508SIftekharul Islam  }
9cd789508SIftekharul Islam
10cd789508SIftekharul Islam  // Power state indicator on/off
11cd789508SIftekharul Islam  .power__state {
12cd789508SIftekharul Islam    font-weight: 700;
13*e368108fSDixsie Wolmers    margin-top: -0.3em;
14cd789508SIftekharul Islam  }
15cd789508SIftekharul Islam
16cd789508SIftekharul Islam  // Power bar indicator
17cd789508SIftekharul Islam  .power__indicator-bar {
18cd789508SIftekharul Islam    font-weight: bold;
1984e114a4SGunnar Mills    width: 100%;
20*e368108fSDixsie Wolmers    padding: 1em 2em 0.7em;
2146f0a1f8SMichael Davis    margin-bottom: 3em;
22cd789508SIftekharul Islam    background-size: 200% 100%;
236f7ec80eSYoshie Muranaka    background-image: linear-gradient(to right, darken($background-02, 3%) 50%, $accent-02--02 50%);
24cd789508SIftekharul Islam    background-position: 0;
25cd789508SIftekharul Islam    transition: background-position 2s ease;
26cd789508SIftekharul Islam    overflow: hidden;
27cdc3deb7SMichael Davis    display: flex;
28cdc3deb7SMichael Davis    justify-content: space-between;
29cdc3deb7SMichael Davis    align-items: center;
30cd789508SIftekharul Islam    p {
31cd789508SIftekharul Islam      padding: 0;
32cd789508SIftekharul Islam      margin: 0;
33cdc3deb7SMichael Davis      font-size: 1.2em;
34cd789508SIftekharul Islam    }
35cd789508SIftekharul Islam    &.power__state-on {
36cd789508SIftekharul Islam      background-position: -100%;
37cd789508SIftekharul Islam    }
38cd789508SIftekharul Islam    &.power__state-off {
39cd789508SIftekharul Islam      background-position: 0;
406f7ec80eSYoshie Muranaka      color: $primary-dark;
41cd789508SIftekharul Islam    }
42cd789508SIftekharul Islam    &.power__state-indet {
436f7ec80eSYoshie Muranaka      color: $text-02;
44cd789508SIftekharul Islam      @include indeterminate-bar;
45cd789508SIftekharul Islam    }
463490c0fcSCamVan Nguyen    &.power__state-error {
473490c0fcSCamVan Nguyen      background-position: 0;
486f7ec80eSYoshie Muranaka      color: $primary-dark;
493490c0fcSCamVan Nguyen    }
50cd789508SIftekharul Islam  }
51cd789508SIftekharul Islam
52*e368108fSDixsie Wolmers  .boot-options,
53*e368108fSDixsie Wolmers  .boot-operations {
54*e368108fSDixsie Wolmers    margin-bottom: 1em;
55cd789508SIftekharul Islam  }
56*e368108fSDixsie Wolmers
57*e368108fSDixsie Wolmers  .boot-options {
58*e368108fSDixsie Wolmers    .control-check {
59*e368108fSDixsie Wolmers      padding-top: 4px;
60*e368108fSDixsie Wolmers    }
61*e368108fSDixsie Wolmers    .boot-checkbox {
62*e368108fSDixsie Wolmers      padding-left: 2em;
63*e368108fSDixsie Wolmers      text-transform: none;
64*e368108fSDixsie Wolmers      font-weight: 400;
65*e368108fSDixsie Wolmers      font-size: 16px;
66*e368108fSDixsie Wolmers      color: $primary-dark;
67cd789508SIftekharul Islam    }
68cd789508SIftekharul Islam  }
69cd789508SIftekharul Islam
70*e368108fSDixsie Wolmers  .boot-options-wrapper {
71*e368108fSDixsie Wolmers    padding: 0 2em 2em 0;
72*e368108fSDixsie Wolmers  }
73*e368108fSDixsie Wolmers
74*e368108fSDixsie Wolmers  .operations-wrapper {
75*e368108fSDixsie Wolmers    .reboot__operations,
76*e368108fSDixsie Wolmers    .shutdown__operations {
77*e368108fSDixsie Wolmers      margin-bottom: 1.5em;
78*e368108fSDixsie Wolmers      .control-radio {
79*e368108fSDixsie Wolmers        padding: 0.3em 1em 0 2em;
80*e368108fSDixsie Wolmers        text-transform: none;
81*e368108fSDixsie Wolmers        font-weight: 400;
82*e368108fSDixsie Wolmers        font-size: 16px;
83*e368108fSDixsie Wolmers        color: $primary-dark;
84*e368108fSDixsie Wolmers      }
85*e368108fSDixsie Wolmers    }
86*e368108fSDixsie Wolmers
87*e368108fSDixsie Wolmers    .alert-warning {
88*e368108fSDixsie Wolmers      border: 1px solid $accent-03--01;
89*e368108fSDixsie Wolmers      padding: 1em;
90*e368108fSDixsie Wolmers      margin-bottom: 1em;
91*e368108fSDixsie Wolmers      display: flex;
92*e368108fSDixsie Wolmers      align-items: center;
93*e368108fSDixsie Wolmers      .pending-icon {
94*e368108fSDixsie Wolmers        padding: 0 1em 0 0;
95*e368108fSDixsie Wolmers      }
96*e368108fSDixsie Wolmers      .alert-pending {
97*e368108fSDixsie Wolmers        margin-top: 0.3em;
98*e368108fSDixsie Wolmers        margin-bottom: 0;
99*e368108fSDixsie Wolmers      }
100*e368108fSDixsie Wolmers    }
101*e368108fSDixsie Wolmers  }
102*e368108fSDixsie Wolmers
103*e368108fSDixsie Wolmers  .boot-settings-form {
104*e368108fSDixsie Wolmers    background-color: $base-02--06;
105*e368108fSDixsie Wolmers    padding: 2em;
106*e368108fSDixsie Wolmers    .boot-form-actions {
107*e368108fSDixsie Wolmers      margin-bottom: 4em;
108*e368108fSDixsie Wolmers    }
109*e368108fSDixsie Wolmers    .btn {
110*e368108fSDixsie Wolmers      display: block;
111*e368108fSDixsie Wolmers      float: right;
112*e368108fSDixsie Wolmers      margin: 0.5em 0 0 1em;
113*e368108fSDixsie Wolmers    }
114*e368108fSDixsie Wolmers  }
115*e368108fSDixsie Wolmers
116*e368108fSDixsie Wolmers  .control-radio .control__indicator-on {
117*e368108fSDixsie Wolmers    width: 20px;
118*e368108fSDixsie Wolmers    height: 20px;
119*e368108fSDixsie Wolmers    top: 3px;
120*e368108fSDixsie Wolmers    left: 3px;
121*e368108fSDixsie Wolmers  }
122*e368108fSDixsie Wolmers
123*e368108fSDixsie Wolmers  .control-radio .control__indicator-on:after {
124*e368108fSDixsie Wolmers    top: 3px;
125*e368108fSDixsie Wolmers    left: 3px;
126*e368108fSDixsie Wolmers    width: 10px;
127*e368108fSDixsie Wolmers    height: 10px;
128*e368108fSDixsie Wolmers  }
129cd789508SIftekharul Islam} //end power-operations
130