Skip to content

Commit

Permalink
ncp-web: re-style poweroff menu
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Feb 18, 2018
1 parent 7d03e84 commit 648f53b
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 5 deletions.
62 changes: 62 additions & 0 deletions ncp-web/img/reboot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions ncp-web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,12 @@
</div>

<div id="poweroff-dialog" class='dialog primary hidden'>
<button id='poweroff-option_shutdown' class='primary'>shut down</button>
<button id='poweroff-option_reboot' class='primary'>reboot</button>
<div id='poweroff-option_shutdown' class='button big-button'>
<img class="wizard-btn" src="img/poweroff.svg">&nbsp;&nbsp;shut down
</div>
<div id='poweroff-option_reboot' class='button big-button'>
<img class="wizard-btn" src="img/reboot.svg">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reboot&nbsp;&nbsp;&nbsp;
</div>
</div>

<div id='overlay' class="hidden"></div>
Expand Down
26 changes: 23 additions & 3 deletions ncp-web/ncp.css
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,10 @@ select {
background-image: url('img/poweroff.svg');
}

.icon-reboot-white {
background-image: url('img/reboot.svg');
}

.icon-wizard-white {
background-image: url('img/wizard.svg');
}
Expand Down Expand Up @@ -1181,6 +1185,22 @@ a#versionlink{
margin:0px auto;
}

.big-button {
display:block;
background: #0082c9;
width:100%;
margin:0px auto;
color: white;
cursor: pointer;
-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)';
opacity:1
}
.big-button:hover {
border-color: white !important;
-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=75)';
opacity:0.75
}

#close-wizard {
position: absolute;
top: 5px;
Expand All @@ -1200,12 +1220,11 @@ a#versionlink{

#poweroff-dialog {
display: flex;
flex-direction: row;
flex-direction: column;
flex-wrap: nowrap;
justify-content: space-around;
align-items: center;
width: 300px;
height: 60px;
width: 200px;
background-color: white;
position: fixed;
top: 50%;
Expand All @@ -1214,6 +1233,7 @@ a#versionlink{
text-align: center;
z-index: 1;
line-height: 60px;
border-radius: 3px;
}

#poweroff-dialog button {
Expand Down

0 comments on commit 648f53b

Please sign in to comment.