Files
help/help3xsl/default.css
Olivier Hallot bd26e706b3 Improve donation link in Help online
redmine#2815

Addressed responsiveness: for screen width < 960px the
button goes to the bottom of the screen and the header is
not fixed anymore.

Artists are invited to improve button rendering.

Button max width is 300px, the en-US text and the translated
text should fit in 2 lines of 300px each. Text is centered.

Change-Id: I51860be2ad998e85f247118e44b21af3e2efa060
Reviewed-on: https://gerrit.libreoffice.org/68644
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-03-04 15:41:52 +01:00

882 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;
}
.donation p{
font-size:1.2rem;
padding: 3px 0 0 0 !important;
text-align: center;
}
.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;
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;
}
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 {
border-top: 2px solid #148603;
padding: 15px 10px 0 10px;
margin: 40px 0;
}
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;
}
.donation {
margin-bottom: 1em;
background: #0379BC;
background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
background-image: -moz-linear-gradient(top, #3498db, #2980b9);
background-image: -ms-linear-gradient(top, #3498db, #2980b9);
background-image: -o-linear-gradient(top, #3498db, #2980b9);
background-image: linear-gradient(to bottom, #3498db, #2980b9);
-webkit-border-radius: 8;
-moz-border-radius: 8;
border-radius: 8px;
padding: 5px 10px 5px 10px;
margin: 0 auto;
max-width: 300px;
color: #ffffff;
text-decoration: none;
}
.donation a {
color: white;
}
.donation:hover{
background: #0379BC;
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
text-decoration: none;
}
.google-search {
max-width: 300px;
margin: 0 auto;
}
.modules {
border-bottom: 2px solid #f3f3f3;
}
.modules label:after, .lang label:after {
font-size: 30px;
color: #fff;
content:"⌄";
}
.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) {
.header-extrawurst {
position: fixed;
width: 100%;
top: 0px;
}
body {
padding-top: 60px;
}
.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;
}
.lang {
position: absolute;
top: 0;
left: 200px;
}
.modules {
width: 120px;
position: absolute;
top: 0;
left: 80px;
border: none;
}
.donation {
position: fixed;
top: 10px;
left: 400px;
}
#DisplayArea {
background-color: #FCFCFC;
box-shadow: 0 2px 8px 0 rgba(0,0,0,.05);
padding: 10px 50px;
}
}
@media screen and (min-width: 1440px) {
.header-extrawurst {
position: fixed;
width: 100%;
top: 0px;
}
body {
padding-top: 60px;
}
.google-search {
margin: 0;
position: fixed;
top: 19px;
left: 860px;
border-radius: 8px;
}
.donation {
position: fixed;
max-width: 300px;
top: 10px;
left: 400px;
}
#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: "";
}
}
@supports (grid-area: auto) {
@media screen and (min-width: 960px) {
body {
display: grid;
grid-template-columns: 320px 1fr;
grid-template-rows: minmax(1em, auto) minmax(1em, auto) 1fr;
grid-template-areas: "header header"
"rightside main"
"leftside main"
}
}
@media screen and (min-width: 1440px) {
body {
display: grid;
grid-template-columns: 320px 900px 1fr;
grid-template-rows: 1fr minmax(1em, auto);
grid-template-areas: "header header header"
"leftside main rightside"
}
.rightside {
width: auto;
border-right: none;
}
}
}