summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2014-08-08 22:46:03 +0200
committerTails developers <amnesia@boum.org>2014-08-08 22:53:35 +0200
commitb66c295407621711466703d841680b9c378b5ac0 (patch)
tree7a837be80d87966b8e7d20836e918e0eeff5971b
parent17893d398834f7709ce14d82af31739cb51e66c8 (diff)
Add prototype for sidebar submenusweb/7257-sidebar-submenus
-rw-r--r--wiki/src/local.css65
-rw-r--r--wiki/src/sidebar.mdwn22
2 files changed, 83 insertions, 4 deletions
diff --git a/wiki/src/local.css b/wiki/src/local.css
index efd9245..e302794 100644
--- a/wiki/src/local.css
+++ b/wiki/src/local.css
@@ -263,6 +263,59 @@ parentlinks {
/* Sidebar */
+.ac-container label{
+ background: transparent url('lib/arrow_down.png') no-repeat center right 10%;
+ border-top: 1px solid #DDDDDD;
+ background-color:#EEEEEE;
+ color:#888888;
+ display: block;
+ font-size: 1.429em;
+ padding: 0.12em 0.7em;
+ text-decoration: none;
+ cursor: pointer;
+ z-index: 20;
+ position: relative;
+ display: block;
+}
+.ac-container label:hover{
+ background: #fff;
+ border-left: 2px solid #0a0;
+ background: #fff url('lib/arrow_down.png') no-repeat center right 10%;
+}
+.ac-container input:checked + label,
+.ac-container input:checked + label:hover{
+ background: url('lib/arrow_up.png') no-repeat center right 10%;
+ background-color:#F5F5F5;
+ color: #000000;
+ border-left:2px solid #000000;
+}
+.ac-container label:hover:after,
+.ac-container input:checked + label:hover:after{
+ content: '';
+ position: absolute;
+ background-image: transparent url('lib/arrow_down.png') no-repeat center right 10%;
+ background: #f5f5f5;
+}
+.ac-container input:checked + label:hover:after{
+ background-image: url('lib/arrow_up.png');
+}
+.ac-container input{
+ display: none;
+}
+.ac-container article{
+ background: rgba(255, 255, 255, 0.5);
+ overflow: hidden;
+ height: 0px;
+ position: relative;
+ z-index: 10;
+}
+article.ac-small a {
+ font-size: 1.077em !important;
+}
+.ac-container input:checked ~ article.ac-small{
+ height: auto;
+}
+
.sidebar {
font-family: "Source Sans Pro Regular", "DejaVu Sans", "Verdana", sans-serif;
position: relative;
@@ -277,7 +330,6 @@ parentlinks {
.sidebar .button a, .sidebar .button .selflink, .sidebar .links {
width: 100%;
display: block;
- margin-bottom: 1em;
-moz-box-shadow: 1px 1px 5px rgba(5, 5, 5, 0.2);
-webkit-box-shadow: 1px 1px 5px rgba(5, 5, 5, 0.2);
box-shadow: 1px 1px 5px rgba(5, 5, 5, 0.2);
@@ -289,6 +341,12 @@ parentlinks {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
+.sidebar .download.button {
+ margin-bottom: 1em;
+}
+.sidebar .donate.button {
+ margin-top: 1em;
+}
.sidebar .button a, .sidebar .button .selflink {
text-decoration: none;
@@ -341,13 +399,12 @@ parentlinks {
.sidebar .links ul {
list-style: none;
margin: 0;
- padding: 3px 0;
}
.sidebar .links li a, .sidebar .links li .selflink {
font-size: 1.429em; /* 14×1.429=20px */
display: block;
- padding: 0.25em 0.7em; /* 5px 14px */
+ padding: 0.2em 0.7em; /* 4px 14px */
border-top: 1px #ddd solid;
text-decoration: none;
letter-spacing: 0.05em;
@@ -356,7 +413,7 @@ parentlinks {
.sidebar .links li a:hover {
background: #f5f5f5;
border-left: 2px solid #0a0;
- padding: 0.25em 0.7em; /* 5px 14px */
+ padding: 0.2em 0.7em; /* 4px 14px */
padding-left: 0.6em; /* 20×0.6=12px=padding-border */
}
diff --git a/wiki/src/sidebar.mdwn b/wiki/src/sidebar.mdwn
index 0d972ec..b82f0c6 100644
--- a/wiki/src/sidebar.mdwn
+++ b/wiki/src/sidebar.mdwn
@@ -12,6 +12,28 @@
<li>[[Help &amp; Support|support]]</li>
<li>[[Contribute]]</li>
<li>[[News|news]]</li>
+ <section class="ac-container">
+ <div>
+ <input id="ac-1" name="accordion-1" type="checkbox" />
+ <label for="ac-1">Quick Links</label>
+ <article class="ac-small">
+ <div class="links">
+ <ul>
+ <li><a href="https://labs.riseup.net/code/projects/tails/roadmap">Roadmap</a></li>
+ <li>[[Design document|contribute/design]]</li>
+ <li>[[Known issues|support/known_issues]]</li>
+ <li>[[Report an issue|doc/first_steps/bug_reporting]]</li>
+ <li>[[Request a feature|news]]</li>
+ <li><a href="https://labs.riseup.net/code/projects/tails/issues?query_id=111">Next release changes</a></li>
+ <li><a href="https://tor.stackexchange.com/questions/tagged/tails">Q&A <span style="font-size:12px;">(external website)</span></a></li>
+ <li>[[Git repositories|contribute/git]]</li>
+ <li>[[Mailing list|support/tails-support]]</li>
+ <li>[[License|doc/about/license]]</li>
+ <ul>
+ </div>
+ </article>
+ </div>
+ </section>
</ul>
</div>