mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
Removes the extra side margin on tip, warning and keyboard tips when they are in ordered lists. Removes the extra bottom margin for h3 elements in the integrations docs. Removes the unordered list style for the integrations docs.
489 lines
11 KiB
CSS
489 lines
11 KiB
CSS
.markdown {
|
|
font-weight: 400;
|
|
font-size: 1rem;
|
|
line-height: 1.5;
|
|
|
|
& h1[id],
|
|
h2[id],
|
|
h3[id],
|
|
h4[id] {
|
|
&::before {
|
|
display: block;
|
|
content: " ";
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
|
|
& h2[id],
|
|
h3[id],
|
|
h4[id] {
|
|
&::before {
|
|
margin-top: -10px;
|
|
height: 10px;
|
|
}
|
|
}
|
|
|
|
& h1 {
|
|
border-bottom: 1px solid hsl(0deg 0% 93%);
|
|
padding-bottom: 10px;
|
|
margin-bottom: 15px;
|
|
|
|
&[id] {
|
|
&::before {
|
|
margin-top: -30px;
|
|
height: 30px;
|
|
}
|
|
}
|
|
|
|
&#zulip-administration {
|
|
font-size: 1.75em;
|
|
padding: 10px 0;
|
|
margin-bottom: 0;
|
|
line-height: 100%;
|
|
}
|
|
}
|
|
|
|
& h2 {
|
|
font-size: 1.5em;
|
|
line-height: 1.25;
|
|
margin: 20px 0 5px;
|
|
}
|
|
|
|
& h3 {
|
|
font-size: 1.25em;
|
|
line-height: 1.25;
|
|
opacity: 1;
|
|
margin: 20px 0 5px;
|
|
}
|
|
|
|
& h1,
|
|
h2,
|
|
h3 {
|
|
font-weight: 700;
|
|
user-select: none;
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
|
|
&::after {
|
|
display: inline-block;
|
|
font: normal normal normal 16px/1 FontAwesome;
|
|
|
|
cursor: pointer;
|
|
content: "\f0c1";
|
|
margin-left: 5px;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
}
|
|
|
|
& h5,
|
|
h6 {
|
|
margin: 10px 0;
|
|
line-height: 20px;
|
|
}
|
|
|
|
/* Since markdown doesn't make it easy to put an HTML element around a
|
|
markdown table, we instead have a model of putting an empty div
|
|
before it to configure a specific table's styling. */
|
|
& div.centered_table + table td:not(:first-child),
|
|
div.centered_table + table th {
|
|
text-align: center;
|
|
}
|
|
|
|
.legend_symbol {
|
|
position: absolute;
|
|
left: calc(340px);
|
|
transform: translateX(-50%);
|
|
|
|
/* Adjust for 50px closed left sidebar state */
|
|
@media (width <= 800px) {
|
|
left: calc(5% + 50px);
|
|
}
|
|
}
|
|
|
|
.legend_label {
|
|
position: relative;
|
|
left: calc(30px);
|
|
}
|
|
|
|
& li {
|
|
line-height: 150%;
|
|
}
|
|
|
|
& ol {
|
|
counter-reset: item;
|
|
list-style: none;
|
|
|
|
& > li {
|
|
position: relative;
|
|
vertical-align: top;
|
|
/* This needs to be wide enough for 2-digit numbers. */
|
|
padding-left: 33px;
|
|
top: -2px;
|
|
counter-increment: item;
|
|
|
|
&::before {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
content: counter(item);
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
padding: 3px 6.5px 3px 7.5px;
|
|
margin-right: 5px;
|
|
background-color: hsl(170deg 48% 54%);
|
|
color: hsl(0deg 0% 100%);
|
|
border-radius: 100%;
|
|
font-size: 0.9em;
|
|
line-height: 1.1;
|
|
text-align: center;
|
|
}
|
|
|
|
.codehilite {
|
|
background-color: hsl(0deg 0% 100%);
|
|
|
|
& pre {
|
|
white-space: pre;
|
|
overflow-x: auto;
|
|
}
|
|
}
|
|
|
|
& > ul {
|
|
margin-bottom: 5px;
|
|
}
|
|
}
|
|
|
|
@media (width <= 500px) {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
& ul {
|
|
margin: 0 10px 15px 25px;
|
|
|
|
/* Avoid extra whitespace after nested bulleted lists. */
|
|
& ul {
|
|
margin: 0 20px;
|
|
}
|
|
|
|
& > li {
|
|
margin: 5px 0 10px;
|
|
|
|
& > p {
|
|
margin: 0 0 5px;
|
|
}
|
|
|
|
& > p:first-child {
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.content {
|
|
padding: 30px;
|
|
max-width: 700px;
|
|
background-color: hsl(0deg 0% 100%);
|
|
|
|
& ol li p:not(:first-child) {
|
|
display: block;
|
|
}
|
|
|
|
& > ol {
|
|
margin: 15px 10px;
|
|
|
|
& > li {
|
|
margin: 2.5px 0;
|
|
}
|
|
}
|
|
|
|
& i.zulip-icon {
|
|
margin: 0 2px 2px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
& i.icon-collapsed-state {
|
|
transform: rotate(270deg);
|
|
}
|
|
|
|
@media (width <= 500px) {
|
|
padding: 10px;
|
|
}
|
|
}
|
|
|
|
& a {
|
|
color: hsl(176deg 46% 41%);
|
|
font-weight: 600;
|
|
|
|
& code {
|
|
color: hsl(176deg 46% 41%);
|
|
}
|
|
}
|
|
|
|
& strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
& img {
|
|
vertical-align: top;
|
|
box-shadow: 0 0 4px hsl(0deg 0% 0% / 5%);
|
|
border: 1px solid hsl(0deg 0% 87%);
|
|
border-radius: 4px;
|
|
|
|
&.inline {
|
|
height: 1.4em;
|
|
box-shadow: none;
|
|
}
|
|
|
|
&.emoji-small {
|
|
width: 20px;
|
|
box-shadow: none;
|
|
border: none;
|
|
vertical-align: sub;
|
|
}
|
|
|
|
&.emoji-big {
|
|
width: 25px;
|
|
box-shadow: none;
|
|
border: none;
|
|
}
|
|
|
|
&.help-center-icon {
|
|
width: 24px;
|
|
box-shadow: none;
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
.warn,
|
|
.tip,
|
|
.keyboard_tip {
|
|
position: relative;
|
|
display: block;
|
|
background-color: hsl(210deg 22% 96%);
|
|
border: 1px solid hsl(210deg 22% 90%);
|
|
border-radius: 4px;
|
|
padding: 10px;
|
|
margin: 5px 0;
|
|
|
|
& p {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
& p:first-of-type {
|
|
display: inline;
|
|
}
|
|
}
|
|
|
|
.tip,
|
|
.keyboard_tip {
|
|
background-color: hsl(46deg 63% 95%);
|
|
border: 1px solid hsl(46deg 63% 84%);
|
|
}
|
|
|
|
.tip::before {
|
|
display: inline;
|
|
content: "\f0eb Tip: ";
|
|
font-family: FontAwesome, "Source Sans 3 VF", sans-serif;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.keyboard_tip::before {
|
|
display: inline;
|
|
content: "\f11c Keyboard shortcut: ";
|
|
font-family: FontAwesome, "Source Sans 3 VF", sans-serif;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.indicator {
|
|
position: relative;
|
|
display: inline-block;
|
|
top: 1px;
|
|
padding: 5px;
|
|
border-radius: 6px;
|
|
|
|
&.grey {
|
|
border: 1px solid hsl(0deg 0% 80%);
|
|
}
|
|
|
|
&.grey-line {
|
|
border: 1px solid hsl(0deg 0% 80%);
|
|
top: 2px;
|
|
|
|
&::after {
|
|
content: "";
|
|
background: hsl(0deg 0% 80%);
|
|
height: 1.5px;
|
|
width: 6px;
|
|
display: block;
|
|
margin: 0.5px -2px;
|
|
}
|
|
}
|
|
|
|
&.orange {
|
|
border: 1px solid hsl(29deg 84% 51%);
|
|
background: linear-gradient(
|
|
to bottom,
|
|
hsl(0deg 0% 100% / 0%) 50%,
|
|
hsl(29deg 84% 51%) 50%
|
|
);
|
|
}
|
|
|
|
&.green {
|
|
border: 1px solid hsl(106deg 74% 44%);
|
|
background-color: hsl(106deg 74% 44% / 30%);
|
|
}
|
|
|
|
&.green.solid {
|
|
background-color: hsl(106deg 74% 44%);
|
|
}
|
|
}
|
|
|
|
& kbd {
|
|
/* Same as kbd in app_components.css */
|
|
display: inline-block;
|
|
border: 1px solid hsl(0deg 0% 80%);
|
|
border-radius: 4px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
background-color: hsl(0deg 0% 98%);
|
|
color: hsl(0deg 0% 20%);
|
|
text-shadow: 0 1px 0 hsl(0deg 0% 100%);
|
|
/* Different from app_components.css */
|
|
/* Removed margin setting */
|
|
font-size: 0.85em;
|
|
padding: 0 0.4em;
|
|
|
|
&.arrow-key {
|
|
/* Same as in informational_overlays.css */
|
|
line-height: 1;
|
|
padding: 0 0.2em 0.2em;
|
|
/* Different from informational_overlays.css */
|
|
font-size: 1.2em;
|
|
}
|
|
}
|
|
|
|
& code {
|
|
/* Same font-family as zulip.css */
|
|
font-family: "Source Code Pro", monospace;
|
|
/* Same as base rules for code elements in rendered_markdown.css */
|
|
font-size: 0.825em;
|
|
unicode-bidi: embed;
|
|
direction: ltr;
|
|
color: hsl(0deg 0% 0%);
|
|
border-radius: 3px;
|
|
/* Different from base rules for code elements in rendered_markdown.css */
|
|
white-space: initial;
|
|
padding: 0 4px;
|
|
background-color: hsl(0deg 0% 93%);
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.codehilite {
|
|
/* Relative positioning is used to place the copy-to-clipboard button
|
|
in the top-right corner. */
|
|
position: relative;
|
|
}
|
|
|
|
& pre {
|
|
& code {
|
|
font-size: 14px;
|
|
white-space: pre-wrap;
|
|
padding: 0;
|
|
color: inherit;
|
|
background-color: transparent;
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
.copy-codeblock {
|
|
cursor: pointer;
|
|
/* Invisible default button */
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
position: absolute;
|
|
/* Position the button in the top-right corner */
|
|
top: 10px;
|
|
right: 10px;
|
|
line-height: 3px;
|
|
|
|
&:focus {
|
|
outline-offset: -1px;
|
|
outline-color: hsl(176deg 46% 41%);
|
|
}
|
|
|
|
&:hover svg path {
|
|
fill: hsl(200deg 100% 40%);
|
|
}
|
|
}
|
|
|
|
.tabbed-section {
|
|
& ol {
|
|
margin-left: 15px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
& ul.nav {
|
|
margin: 0;
|
|
|
|
& li {
|
|
display: inline-block;
|
|
padding: 5px 14px;
|
|
margin: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
&.active {
|
|
color: hsl(176deg 46% 41%);
|
|
margin-bottom: -1px;
|
|
|
|
border: 1px solid hsl(0deg 0% 87%);
|
|
border-bottom: 1px solid hsl(0deg 0% 100%);
|
|
border-radius: 4px 4px 0 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.no-tabs ul.nav {
|
|
display: none;
|
|
}
|
|
|
|
.blocks {
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
border: 1px solid hsl(0deg 0% 87%);
|
|
|
|
& > div {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&.has-tabs .blocks {
|
|
border-radius: 0 6px 6px;
|
|
}
|
|
|
|
&.no-tabs .blocks {
|
|
border-radius: 6px;
|
|
}
|
|
|
|
&.no-tabs .blocks > div,
|
|
&.has-tabs .blocks > .active {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
& blockquote {
|
|
padding: 0 0 0 15px;
|
|
margin: 0 0 20px;
|
|
border-left: 5px solid hsl(0deg 0% 93%);
|
|
|
|
& p {
|
|
font-size: 17.5px;
|
|
font-weight: 300;
|
|
line-height: 1.25;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|