forked from amazingfate/help
Module & languages menus were not shown on screen widths < 960. Changed module & languages menu background to span the whole width, when on mobile. An arrow function was used in help2.js, which means it was broken on IE. Moved all src .js files to head and used defer for all. Moved inline Piwik & system info JS into help2.js and added a test for onlineness targeting the first meta element in the body. Change-Id: Ic1a928b53ce9029f9f655117977cd511b7e3246d Reviewed-on: https://gerrit.libreoffice.org/69005 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
880 lines
19 KiB
CSS
880 lines
19 KiB
CSS
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* This file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
*/
|
|
/*
|
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
+ LIBREOFFICE HELP IN BROWSER +
|
|
+ DEFAULT STYLESHEET +
|
|
+ WESTERN LANGUAGES +
|
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
We use px as the unit for navigation elements and fonts because we do
|
|
not want them to scale with browser-set font size.
|
|
We use rem as the unit for article and footer contents because they
|
|
do not break anything related to layout by scaling.
|
|
|
|
*/
|
|
|
|
body,
|
|
p,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
.listitem,
|
|
.listitemintable,
|
|
.tablecontent {
|
|
font-family: -apple-system, system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", "DejaVu Sans", "Lucida Grande", "Helvetica Neue", Helvetica, Arial, sans-serif, FreeSerif, NanumGothic, "Noto Sans Tibetan", Taprom;
|
|
}
|
|
.input {
|
|
background-color: rgba(0,0,0,0.04);
|
|
transition-property: background-color;
|
|
transition-duration: 150ms;
|
|
border-bottom: 1px dashed rgba(0,0,0,0.1);
|
|
font-family: Menlo, Consolas, "DejaVu Sans Mono", "Nimbus Mono L", "Lucida Sans Typewriter", "Courier New", Courier, Monaco, monospace;
|
|
}
|
|
[data-tooltip]{
|
|
position:relative;
|
|
}
|
|
[data-tooltip]::before {
|
|
content: "";
|
|
position: absolute;
|
|
top:-6px;
|
|
left:50%;
|
|
transform: translateX(-50%);
|
|
border-width: 4px 6px 0 6px;
|
|
border-style: solid;
|
|
border-color: rgba(0,0,0,0.7) transparent transparent transparent;
|
|
z-index: 100;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
[data-tooltip]::after {
|
|
content: attr(data-tooltip);
|
|
position: absolute;
|
|
left:50%;
|
|
top:-6px;
|
|
transform: translateX(-50%) translateY(-100%);
|
|
background: rgba(0,0,0,0.7);
|
|
text-align: center;
|
|
color: #fff;
|
|
padding:4px 2px;
|
|
font-size: 12px;
|
|
min-width: 80px;
|
|
border-radius: 5px;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
[data-tooltip]:hover:before, [data-tooltip]:hover:after {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
body {
|
|
background-color: #F7F8F7;
|
|
margin: 0;
|
|
line-height: normal;
|
|
}
|
|
::selection {
|
|
background: #BFFFB7;
|
|
}
|
|
a {
|
|
text-decoration: none;
|
|
color: #0379BC;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
color: #0499EE;
|
|
}
|
|
pre,
|
|
.code,
|
|
.codeintable,
|
|
.example,
|
|
.exampleintable,
|
|
.literal,
|
|
.literalintable,
|
|
.path,
|
|
.pathintable {
|
|
background-color: rgba(0,0,0,0.04);
|
|
border-radius: 2px;
|
|
display: inline;
|
|
padding: 1px 3px;
|
|
font-family: Menlo, Consolas, "DejaVu Sans Mono", "Nimbus Mono L", "Lucida Sans Typewriter", "Courier New", Courier, Monaco, monospace;
|
|
}
|
|
.smathcode {
|
|
border-radius: 2px;
|
|
padding: 1px 3px;
|
|
font-family: Menlo, Consolas, "DejaVu Sans Mono", "Nimbus Mono L", "Lucida Sans Typewriter", "Courier New", Courier, Monaco, monospace;
|
|
}
|
|
.acronym {
|
|
font-weight: bold;
|
|
}
|
|
.related {
|
|
font-weight: bold;
|
|
margin-top: 1.67rem;
|
|
border-top: 1px solid black;
|
|
}
|
|
.emph,
|
|
.menuitem {
|
|
font-weight: bold;
|
|
}
|
|
.keycode {
|
|
/*font-weight: bold;*/
|
|
font-family: Menlo, Consolas, "DejaVu Sans Mono", "Nimbus Mono L", "Lucida Sans Typewriter", "Courier New", Courier, Monaco, monospace;
|
|
}
|
|
.widget{
|
|
padding: 1px 10px;
|
|
background: #f0f0f0;
|
|
background: linear-gradient(to bottom,#f0f0f0,#fcfcfc);
|
|
border-radius: 3px;
|
|
color: #303030;
|
|
border: 1px solid #a0a0a0;
|
|
border-bottom-width: 2px;
|
|
white-space: nowrap;
|
|
}
|
|
/* div's for warning, tip and note */
|
|
.note,
|
|
.tip,
|
|
.warning {
|
|
display:flex;
|
|
align-items: center;
|
|
border-radius: 0 4px 4px 0;
|
|
box-shadow: 0 2px 2px -2px rgba(0,0,0,0.2);
|
|
padding: 0.2em;
|
|
margin-top: 15px;
|
|
}
|
|
.note {
|
|
border-left: 4px solid #61897C;
|
|
background-color: #D9E7E2;
|
|
}
|
|
.tip {
|
|
border-left: 4px solid #4866AD;
|
|
background-color: #CDD5E8;
|
|
}
|
|
.warning {
|
|
border-left: 4px solid #D5B177;
|
|
background-color: #F9EEDC;
|
|
}
|
|
.noteicon, .notetext {
|
|
padding:0.3em;
|
|
}
|
|
|
|
/* Table related classes */
|
|
|
|
/* Special case of table with one cell*/
|
|
.onecell{
|
|
box-shadow: rgba(0,0,0,0.1) 0px 1px 3px 0px;
|
|
border-bottom: 1px solid #E8E8E8;
|
|
}
|
|
/* Special case of icon table*/
|
|
.icontable {
|
|
display:flex;
|
|
align-items:center;
|
|
}
|
|
.iconcell {
|
|
padding:0.3em;
|
|
}
|
|
|
|
table {
|
|
background: #FEFEFE;
|
|
box-shadow: rgba(0,0,0,0.08) 0 1px 5px 0;
|
|
border-collapse: collapse;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
table, th, td {
|
|
border-top: 0;
|
|
border-bottom: 1px solid #E8E8E8;
|
|
border-left: 0;
|
|
border-right: 0;
|
|
padding: 0.3em;
|
|
}
|
|
.tablehead,
|
|
.tableheadintable {
|
|
font-weight: bold;
|
|
margin-top: 0px;
|
|
}
|
|
.tableheadcell {
|
|
background: #148603;
|
|
color: white;
|
|
vertical-align:top;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
margin-bottom: 0.67rem;
|
|
color: #148603;
|
|
}
|
|
p,
|
|
ol,
|
|
td {
|
|
font-size: 1.17rem;
|
|
margin: 2px 0 2px 0;
|
|
}
|
|
h1 {
|
|
font-size: 1.83rem;
|
|
font-weight: 300;
|
|
border-bottom: 2px solid #148603;
|
|
margin-bottom: 1.67rem;
|
|
}
|
|
h1 a {
|
|
text-decoration: none;
|
|
}
|
|
h2 {
|
|
font-size: 1.55rem;
|
|
}
|
|
h3 {
|
|
font-size: 1.33rem;
|
|
}
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-size: 1.17rem;
|
|
}
|
|
.relatedtopics {
|
|
font-weight: normal;
|
|
}
|
|
.howtoget {
|
|
background: #EBE7E9;
|
|
border-left: 4px solid #4E4B55;
|
|
border-radius: 0 4px 4px 0;
|
|
box-shadow: 0 2px 2px -2px rgba(0,0,0,0.2);
|
|
padding: 0.3em;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.howtogetheader {
|
|
background: #FFF;
|
|
border-radius: 2px;
|
|
box-shadow: 0 2px 2px -2px rgba(0,0,0,0.2);
|
|
display: inline-block;
|
|
font-weight: bold;
|
|
padding: 0.1em 0.3em;
|
|
}
|
|
.howtogetbody {
|
|
padding: 0 0.3em;
|
|
}
|
|
.samplefilesection{
|
|
}
|
|
.wide {
|
|
width: 100%;
|
|
}
|
|
.topalign {
|
|
vertical-align: top;
|
|
border: 1px;
|
|
}
|
|
.bug {
|
|
color: red;
|
|
}
|
|
.debug {
|
|
border: 1px solid black;
|
|
padding: 3px;
|
|
display: none;
|
|
background-color: #222;
|
|
color: red;
|
|
text-align: left;
|
|
}
|
|
|
|
.bascode {
|
|
margin-top:15px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.infopage {
|
|
color: green;
|
|
font-size: 1.33rem;
|
|
font-weight: bold;
|
|
}
|
|
.topmenu {
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
padding: 1px;
|
|
border: solid 1px #148603;
|
|
}
|
|
#DisplayArea {
|
|
background-color: #FCFCFC;
|
|
overflow: auto;
|
|
padding: 10px 10px 40px 10px;
|
|
grid-area: main;
|
|
}
|
|
#DisplayArea > p {
|
|
margin-bottom: 10px;
|
|
}
|
|
.mediabutton {
|
|
background-color: cyan;
|
|
}
|
|
.mediadiv{
|
|
padding-bottom:5%;
|
|
height:0;
|
|
display:inline-block;
|
|
border:none;
|
|
}
|
|
.switch,
|
|
.switchinline {}
|
|
|
|
.tintro {
|
|
color: white;
|
|
background-color: green;
|
|
font-family: Arial;
|
|
font-weight: bold;
|
|
font-size: 2rem;
|
|
border: 1px solid black;
|
|
padding-bottom: 6px;
|
|
margin-bottom: 6px;
|
|
}
|
|
.embedded {}
|
|
.header-extrawurst {
|
|
grid-area: header;
|
|
position: sticky;
|
|
top: 0px;
|
|
}
|
|
header {
|
|
background-color: #18A303;
|
|
color: #fff;
|
|
height: 64px;
|
|
padding: 8px 8px 8px 16px;
|
|
}
|
|
.logo-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
.logo {
|
|
color: #fff;
|
|
text-decoration: none;
|
|
display: flex;
|
|
}
|
|
.logo p {
|
|
font-size: 24px;
|
|
}
|
|
.logo .symbol {
|
|
background-image: url(media/navigation/libo-symbol-white.svg);
|
|
background-repeat: no-repeat;
|
|
background-size: contain;
|
|
width: 52px;
|
|
height: 60px;
|
|
margin-right: 10px;
|
|
}
|
|
.lang nav, .modules nav {
|
|
z-index: 100;
|
|
/* line them up horizontally */
|
|
display: flex;
|
|
flex-direction: row;
|
|
/* allow for scrolling */
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
/* make it smooth on iOS */
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.lang nav a, .modules nav a {
|
|
color: #fff;
|
|
background-color: #233336;
|
|
display: block;
|
|
line-height: 1.5;
|
|
padding: 3px 6px;
|
|
text-decoration: none;
|
|
font-size: 24px;
|
|
flex-shrink: 0;
|
|
z-index: 100;
|
|
white-space: nowrap;
|
|
}
|
|
footer {
|
|
padding: 40px 10px 40px 10px;
|
|
background-color: #FCFCFC;
|
|
box-shadow: 0 2px 8px 0 rgba(0,0,0,.05);
|
|
}
|
|
footer p {
|
|
font-size: 0.98rem;
|
|
}
|
|
.gsc-control-cse {
|
|
border-color: transparent !important;
|
|
background-color: transparent !important;
|
|
padding: 3px 0 0 0 !important;
|
|
}
|
|
.modules input[type=checkbox], .lang input[type=checkbox],
|
|
.contents-treeview input[type=checkbox], aside input[type=checkbox] {
|
|
position: absolute;
|
|
opacity: 0;
|
|
}
|
|
label[for=accordion-1] {
|
|
color: #148603;
|
|
display: block;
|
|
padding: 10px 0 10px 20px;
|
|
font-size: 22px;
|
|
line-height: .6;
|
|
}
|
|
label[for=accordion-1]:after {
|
|
font-size: 44px;
|
|
content:"⌄";
|
|
}
|
|
aside input[type=checkbox] ~ .contents-treeview {
|
|
display: none;
|
|
}
|
|
aside input[type=checkbox]:checked ~ .contents-treeview {
|
|
color: #333;
|
|
z-index: 6;
|
|
display: block;
|
|
margin: 0 20px 0 20px;
|
|
}
|
|
.index-label {
|
|
font-size: 22px;
|
|
color: #148603;
|
|
padding-left: 20px;
|
|
margin: 20px 0 0 0;
|
|
}
|
|
#Index, .index {
|
|
margin-top: 10px;
|
|
}
|
|
.index {
|
|
padding-left: 15px;
|
|
}
|
|
.index a {
|
|
font-size: 16px;
|
|
}
|
|
#Bookmarks {
|
|
padding: 0 20px;
|
|
}
|
|
#Bookmarks p {
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
color: #148603;
|
|
}
|
|
#WRITER::before {
|
|
content: "WRITER";
|
|
display: block;
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
color: #148603;
|
|
}
|
|
#CALC::before {
|
|
content: "CALC";
|
|
display: block;
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
color: #148603;
|
|
}
|
|
#IMPRESS::before {
|
|
content: "IMPRESS";
|
|
display: block;
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
color: #148603;
|
|
}
|
|
#DRAW::before {
|
|
content: "DRAW";
|
|
display: block;
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
color: #148603;
|
|
}
|
|
#BASE::before {
|
|
content: "BASE";
|
|
display: block;
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
color: #148603;
|
|
}
|
|
#MATH::before {
|
|
content: "MATH";
|
|
display: block;
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
color: #148603;
|
|
}
|
|
#CHART::before {
|
|
content: "CHART";
|
|
display: block;
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
color: #148603;
|
|
}
|
|
#BASIC::before {
|
|
content: "BASIC";
|
|
display: block;
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
color: #148603;
|
|
}
|
|
#SHARED::before {
|
|
content: "GLOBAL";
|
|
display: block;
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
color: #148603;
|
|
}
|
|
.pagination-container {
|
|
text-align: center;
|
|
margin-left: -40px; /* The normalizer fails to account for this */
|
|
}
|
|
.pagination li {
|
|
display: inline-block;
|
|
padding: 0 5px;
|
|
}
|
|
.pagination a {
|
|
text-decoration: none;
|
|
}
|
|
.index a {
|
|
display: block;
|
|
}
|
|
.index .hidden {
|
|
display: none;
|
|
}
|
|
li.active {
|
|
background-color: #0379BC;
|
|
}
|
|
li.active a {
|
|
color: #fff;
|
|
}
|
|
li.disabled a {
|
|
opacity: 0.4;
|
|
pointer-events: none;
|
|
}
|
|
#search-bar {
|
|
border: 1px solid #CCC;
|
|
box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
|
|
box-sizing: border-box;
|
|
line-height: 1.5em;
|
|
margin-top: 10px;
|
|
outline: none;
|
|
padding: 0 .25em;
|
|
transition: all 0.30s ease-in-out;
|
|
width: 100%;
|
|
}
|
|
#search-bar:focus {
|
|
border: 1px solid #0EA5FB;
|
|
}
|
|
#search-bar::placeholder {
|
|
font-style: italic;
|
|
}
|
|
.google-donation {
|
|
border-top: 2px solid #148603;
|
|
background-color: #FCFCFC;
|
|
box-shadow: 0 2px 8px 0 rgba(0,0,0,.05);
|
|
}
|
|
.donation {
|
|
background: #0379BC;
|
|
background-image: linear-gradient(to bottom, #3498db, #2980b9);
|
|
border-radius: 8px;
|
|
padding: 5px 10px 5px 10px;
|
|
margin: 20px auto 0 auto;
|
|
max-width: 200px;
|
|
color: #ffffff;
|
|
text-decoration: none;
|
|
}
|
|
.donation a {
|
|
color: white;
|
|
}
|
|
.donation a:hover {
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
.donation:hover{
|
|
background: #0379BC;
|
|
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
|
|
}
|
|
.donation p {
|
|
font-size:1.2rem;
|
|
text-align: center;
|
|
}
|
|
.google-search {
|
|
max-width: 300px;
|
|
margin: 40px auto 0 auto;
|
|
}
|
|
.modules {
|
|
border-bottom: 2px solid #f3f3f3;
|
|
background-color: #233336;
|
|
}
|
|
.modules label:after, .lang label:after {
|
|
font-size: 30px;
|
|
color: #fff;
|
|
content:"⌄";
|
|
}
|
|
.lang {
|
|
background-color: #233336;
|
|
}
|
|
.lang label, .modules label {
|
|
display: none;
|
|
}
|
|
.modules nav div {
|
|
background-repeat: no-repeat;
|
|
background-size: contain;
|
|
float: left;
|
|
display: none;
|
|
}
|
|
.calc-icon,
|
|
.chart-icon,
|
|
.writer-icon,
|
|
.impress-icon,
|
|
.draw-icon,
|
|
.math-icon,
|
|
.basic-icon,
|
|
.base-icon {
|
|
width: 21.5px;
|
|
height: 26px;
|
|
position: relative;
|
|
margin-right: 5px;
|
|
}
|
|
.calc-icon {
|
|
background-image: url(media/navigation/libo-calc.svg);
|
|
}
|
|
.writer-icon {
|
|
background-image: url(media/navigation/libo-writer.svg);
|
|
}
|
|
.impress-icon {
|
|
background-image: url(media/navigation/libo-impress.svg);
|
|
}
|
|
.draw-icon {
|
|
background-image: url(media/navigation/libo-draw.svg);
|
|
}
|
|
.math-icon {
|
|
background-image: url(media/navigation/libo-math.svg);
|
|
}
|
|
.base-icon {
|
|
background-image: url(media/navigation/libo-base.svg);
|
|
}
|
|
.chart-icon {
|
|
background-image: url(media/navigation/libo-chart.svg);
|
|
}
|
|
.basic-icon {
|
|
background-image: url(media/navigation/libo-basic.svg);
|
|
}
|
|
/* tree view */
|
|
|
|
.contents-treeview ul,
|
|
.contents-treeview li {
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
font-size: 16px;
|
|
}
|
|
.contents-treeview {
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
}
|
|
.contents-treeview a, .index a {
|
|
text-decoration: none;
|
|
line-height: 1.4;
|
|
}
|
|
.contents-treeview a:hover, .index a:hover {
|
|
border-left: 2px solid rgba(0,0,0,0.05);
|
|
margin-left: -12px;
|
|
padding-left: 10px;
|
|
}
|
|
.contents-treeview input + label + ul {
|
|
margin: 0 0 0 22px;
|
|
}
|
|
.contents-treeview input ~ ul {
|
|
display: none;
|
|
}
|
|
.contents-treeview label,
|
|
.contents-treeview label:before {
|
|
cursor: pointer;
|
|
color: #111;
|
|
}
|
|
.contents-treeview input:disabled + label {
|
|
cursor: default;
|
|
opacity: .6;
|
|
}
|
|
.contents-treeview input:checked:not(:disabled) ~ ul {
|
|
display: block;
|
|
}
|
|
.contents-treeview label,
|
|
.contents-treeview a,
|
|
.contents-treeview label::before {
|
|
display: block;
|
|
vertical-align: middle;
|
|
}
|
|
.contents-treeview label:before {
|
|
content: "⊞";
|
|
color: #148603;
|
|
width: 16px;
|
|
margin: 0 5px 0 0;
|
|
display: inline-block;
|
|
}
|
|
.contents-treeview input:checked + label::before {
|
|
content: "⊟";
|
|
}
|
|
.contents-current {
|
|
background: rgba(0,0,0,0.05);
|
|
border-left: 2px solid #0379BC;
|
|
font-weight: 600;
|
|
margin-left: -12px;
|
|
padding-left: 10px;
|
|
}
|
|
/* webkit adjacent element selector bugfix */
|
|
|
|
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
|
.contents-treeview {
|
|
-webkit-animation: webkit-adjacent-element-selector-bugfix infinite 1s;
|
|
}
|
|
@-webkit-keyframes webkit-adjacent-element-selector-bugfix {
|
|
from {
|
|
padding: 0;
|
|
}
|
|
to {
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
@media screen and (min-width: 960px) {
|
|
.lang nav {
|
|
display: none;
|
|
}
|
|
.lang nav a {
|
|
font-size: 19px;
|
|
white-space: normal;
|
|
}
|
|
.lang label, .modules label {
|
|
cursor: pointer;
|
|
color: #fff;
|
|
font-size: 19px;
|
|
position: relative;
|
|
top: 40px;
|
|
display: block;
|
|
}
|
|
/* change the menu direction to stacked */
|
|
|
|
.lang input[type="checkbox"]:checked ~ nav, .modules input[type="checkbox"]:checked ~ nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-width: 120px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
max-height: 480px;
|
|
position: absolute;
|
|
top: 80px;
|
|
}
|
|
.modules input[type="checkbox"]:checked ~ nav {
|
|
background-color: #101820;
|
|
text-align: left;
|
|
}
|
|
.modules nav {
|
|
display: none;
|
|
}
|
|
.modules nav div {
|
|
display: block;
|
|
}
|
|
.modules nav a {
|
|
font-size: 19px;
|
|
}
|
|
aside {
|
|
float: left;
|
|
width: 320px;
|
|
}
|
|
.leftside {
|
|
grid-area: leftside;
|
|
}
|
|
.rightside {
|
|
grid-area: rightside;
|
|
}
|
|
.google-donation {
|
|
grid-area: google;
|
|
position: sticky;
|
|
top: 0px;
|
|
background-color: #FCFCFC;
|
|
box-shadow: none;
|
|
}
|
|
footer {
|
|
grid-area: footer;
|
|
}
|
|
.lang {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 200px;
|
|
background-color: transparent;
|
|
}
|
|
.modules {
|
|
width: 120px;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 80px;
|
|
border: none;
|
|
background-color: transparent;
|
|
}
|
|
#DisplayArea {
|
|
box-shadow: 0 2px 8px 0 rgba(0,0,0,.05);
|
|
padding: 10px 50px 40px 50px;
|
|
}
|
|
}
|
|
@media screen and (min-width: 1440px) {
|
|
#Contents {
|
|
color: #333;
|
|
z-index: 6;
|
|
display: block;
|
|
margin: 0 20px 0 20px;
|
|
}
|
|
label[for=accordion-1] {
|
|
background-color: transparent;
|
|
text-decoration: none;
|
|
}
|
|
label[for=accordion-1]:hover {
|
|
background-color: transparent;
|
|
}
|
|
label[for=accordion-1]:after {
|
|
content: "";
|
|
}
|
|
}
|
|
/* Use @supports to sneak these rules past IE */
|
|
@supports (grid-area: auto) {
|
|
@media screen and (min-width: 960px) {
|
|
.google-donation {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: #18A303;
|
|
border-top: none;
|
|
}
|
|
.google-search {
|
|
margin: 0;
|
|
}
|
|
.donation {
|
|
margin: 0 auto;
|
|
}
|
|
footer {
|
|
border-top: 2px solid #148603;
|
|
}
|
|
body {
|
|
display: grid;
|
|
grid-template-columns: 320px 80px 1fr;
|
|
grid-template-rows: minmax(1em, auto) minmax(1em, auto) 1fr minmax(1em, auto);
|
|
grid-template-areas: "header header google"
|
|
"rightside main main"
|
|
"leftside main main"
|
|
". footer footer"
|
|
}
|
|
}
|
|
@media screen and (min-width: 1440px) {
|
|
body {
|
|
display: grid;
|
|
grid-template-columns: 320px 450px 450px 1fr;
|
|
grid-template-rows: 1fr minmax(1em, auto) minmax(1em, auto);
|
|
grid-template-areas: "header header google google"
|
|
"leftside main main rightside"
|
|
". footer footer ."
|
|
}
|
|
.rightside {
|
|
width: auto;
|
|
border-right: none;
|
|
}
|
|
}
|
|
}
|