aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-03-14 15:03:06 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-03-14 15:05:03 +1300
commitcfd46efffefcfd9c0e77edcc75b69f2709c22352 (patch)
treeba2371090f47899ba4223acb893f98756917ee47
parent9800abe02202e18574e248930fb76b21f999df37 (diff)
downloadpetrichor-cfd46efffefcfd9c0e77edcc75b69f2709c22352.tar.xz
Correct alignment of power confirm button box
-rw-r--r--index.html2
-rw-r--r--petrichor.css22
2 files changed, 14 insertions, 10 deletions
diff --git a/index.html b/index.html
index 689641b..67d8d7d 100644
--- a/index.html
+++ b/index.html
@@ -22,7 +22,7 @@
<span id="message-label"></span>
</div>
<a id="mask" href="#" onclick="hide_element('power-confirm');hide_element('mask');"></a>
- <div id="power-confirm">
+ <div id="power-confirm" onclick="document.getElementById('mask').click();">
<ul>
<li>
<a class="button" href="#" onclick="lightdm.shutdown();">
diff --git a/petrichor.css b/petrichor.css
index 2e1d078..8954763 100644
--- a/petrichor.css
+++ b/petrichor.css
@@ -20,36 +20,40 @@ body,html
#mask
{
+ text-align: center;
transition: visibility 0s linear 0.15s, opacity 0.15s linear;
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
- background-color: rgba(0,0,0,0.6);
+ background-color: rgba(0,0,0,0.7);
visibility: hidden;
opacity: 0;
}
#power-confirm
{
- transition: visibility 0s linear 0.15s, opacity 0.15s linear;
- text-align: center;
- height: 150px;
- margin-top: -75px;
- width: 100%;
position: absolute;
- left: 0;
- top: 50%;
+ left: 50%;
+ bottom: 50px;
visibility: hidden;
opacity: 0;
}
+#power-confirm > ul
+{
+ display: inline-block;
+ margin: 0px 0px 0px -50%;
+}
+
#power-confirm li
{
+ text-align: center;
list-style: none;
display: inline-block;
- margin: 2em;
+ margin-left: 2em;
+ margin-right: 2em;
}
#power-confirm li a