gitea/public/less/_markdown.less

500 lines
8.2 KiB
Plaintext
Raw Normal View History

.markdown:not(code) {
overflow: hidden;
font-size: 16px;
line-height: 1.6 !important;
word-wrap: break-word;
2018-06-12 05:27:18 -06:00
&.ui.segment {
padding: 3em;
}
&.file-view {
padding: 2em 2em 2em !important;
}
2019-05-13 00:26:32 -06:00
> *:first-child {
margin-top: 0 !important;
}
2019-05-13 00:26:32 -06:00
> *:last-child {
margin-bottom: 0 !important;
}
a:not([href]) {
color: inherit;
text-decoration: none;
}
.absent {
2019-05-13 18:54:23 -06:00
color: #cc0000;
}
.anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.anchor:focus {
outline: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
&:first-of-type {
margin-top: 0 !important;
}
}
h1 .octicon-link,
h2 .octicon-link,
h3 .octicon-link,
h4 .octicon-link,
h5 .octicon-link,
h6 .octicon-link {
2019-05-13 00:26:32 -06:00
display: none;
2019-05-13 18:54:23 -06:00
color: #000000;
2019-05-13 00:26:32 -06:00
vertical-align: middle;
}
h1:hover .anchor,
h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor,
h5:hover .anchor,
h6:hover .anchor {
2019-05-13 00:26:32 -06:00
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
h1:hover .anchor .octicon-link,
h2:hover .anchor .octicon-link,
h3:hover .anchor .octicon-link,
h4:hover .anchor .octicon-link,
h5:hover .anchor .octicon-link,
h6:hover .anchor .octicon-link {
2019-05-13 00:26:32 -06:00
display: inline-block;
}
h1 tt,
h1 code,
h2 tt,
h2 code,
h3 tt,
h3 code,
h4 tt,
h4 code,
h5 tt,
h5 code,
h6 tt,
h6 code {
2019-05-13 00:26:32 -06:00
font-size: inherit;
}
h1 {
2019-05-13 00:26:32 -06:00
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
2019-05-13 18:54:23 -06:00
border-bottom: 1px solid #eeeeee;
}
h1 .anchor {
2019-05-13 00:26:32 -06:00
line-height: 1;
}
h2 {
2019-05-13 00:26:32 -06:00
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
2019-05-13 18:54:23 -06:00
border-bottom: 1px solid #eeeeee;
}
h2 .anchor {
2019-05-13 00:26:32 -06:00
line-height: 1;
}
h3 {
2019-05-13 00:26:32 -06:00
font-size: 1.5em;
line-height: 1.43;
}
h3 .anchor {
2019-05-13 00:26:32 -06:00
line-height: 1.2;
}
h4 {
2019-05-13 00:26:32 -06:00
font-size: 1.25em;
}
h4 .anchor {
2019-05-13 00:26:32 -06:00
line-height: 1.2;
}
h5 {
2019-05-13 00:26:32 -06:00
font-size: 1em;
}
h5 .anchor {
2019-05-13 00:26:32 -06:00
line-height: 1.1;
}
h6 {
2019-05-13 00:26:32 -06:00
font-size: 1em;
2019-05-13 18:54:23 -06:00
color: #777777;
}
h6 .anchor {
2019-05-13 00:26:32 -06:00
line-height: 1.1;
}
p,
blockquote,
ul,
ol,
dl,
table,
pre {
margin-top: 0;
margin-bottom: 16px;
}
2019-05-13 00:26:32 -06:00
blockquote {
margin-left: 0;
}
hr {
2019-05-13 00:26:32 -06:00
height: 4px;
padding: 0;
margin: 16px 0;
background-color: #e7e7e7;
2019-05-13 18:54:23 -06:00
border: 0;
}
ul,
ol {
2019-05-13 00:26:32 -06:00
padding-left: 2em;
}
ul.no-list,
ol.no-list {
2019-05-13 00:26:32 -06:00
padding: 0;
list-style-type: none;
}
ul ul,
ul ol,
ol ol,
ol ul {
2019-05-13 00:26:32 -06:00
margin-top: 0;
margin-bottom: 0;
}
ol ol,
ul ol {
list-style-type: lower-roman;
}
2019-05-13 00:26:32 -06:00
li > p {
margin-top: 0;
}
dl {
2019-05-13 00:26:32 -06:00
padding: 0;
}
dl dt {
2019-05-13 00:26:32 -06:00
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
dl dd {
2019-05-13 00:26:32 -06:00
padding: 0 16px;
margin-bottom: 16px;
}
blockquote {
2019-05-13 00:26:32 -06:00
padding: 0 15px;
2019-05-13 18:54:23 -06:00
color: #777777;
border-left: 4px solid #dddddd;
}
2019-05-13 00:26:32 -06:00
blockquote > :first-child {
margin-top: 0;
}
2019-05-13 00:26:32 -06:00
blockquote > :last-child {
margin-bottom: 0;
}
table {
2019-05-13 00:26:32 -06:00
width: auto;
overflow: auto;
word-break: keep-all;
display: block;
}
table th {
2019-05-13 00:26:32 -06:00
font-weight: bold;
}
table th,
table td {
padding: 6px 13px !important;
2019-05-13 18:54:23 -06:00
border: 1px solid #dddddd !important;
}
table tr {
2019-05-13 18:54:23 -06:00
background-color: #ffffff;
border-top: 1px solid #cccccc;
}
table tr:nth-child(2n) {
2019-05-13 00:26:32 -06:00
background-color: #f8f8f8;
}
img {
2019-05-13 00:26:32 -06:00
max-width: 100%;
box-sizing: border-box;
}
.emoji {
2019-05-13 00:26:32 -06:00
max-width: none;
}
span.frame {
2019-05-13 00:26:32 -06:00
display: block;
overflow: hidden;
}
2019-05-13 00:26:32 -06:00
span.frame > span {
display: block;
float: left;
width: auto;
padding: 7px;
margin: 13px 0 0;
overflow: hidden;
2019-05-13 18:54:23 -06:00
border: 1px solid #dddddd;
}
span.frame span img {
2019-05-13 00:26:32 -06:00
display: block;
float: left;
}
span.frame span span {
2019-05-13 00:26:32 -06:00
display: block;
padding: 5px 0 0;
clear: both;
2019-05-13 18:54:23 -06:00
color: #333333;
}
span.align-center {
2019-05-13 00:26:32 -06:00
display: block;
overflow: hidden;
clear: both;
}
2019-05-13 00:26:32 -06:00
span.align-center > span {
display: block;
margin: 13px auto 0;
overflow: hidden;
text-align: center;
}
span.align-center span img {
2019-05-13 00:26:32 -06:00
margin: 0 auto;
text-align: center;
}
span.align-right {
2019-05-13 00:26:32 -06:00
display: block;
overflow: hidden;
clear: both;
}
2019-05-13 00:26:32 -06:00
span.align-right > span {
display: block;
margin: 13px 0 0;
overflow: hidden;
text-align: right;
}
span.align-right span img {
2019-05-13 00:26:32 -06:00
margin: 0;
text-align: right;
}
span.float-left {
2019-05-13 00:26:32 -06:00
display: block;
float: left;
margin-right: 13px;
overflow: hidden;
}
span.float-left span {
2019-05-13 00:26:32 -06:00
margin: 13px 0 0;
}
span.float-right {
2019-05-13 00:26:32 -06:00
display: block;
float: right;
margin-left: 13px;
overflow: hidden;
}
2019-05-13 00:26:32 -06:00
span.float-right > span {
display: block;
margin: 13px auto 0;
overflow: hidden;
text-align: right;
}
code,
tt {
2019-05-13 00:26:32 -06:00
padding: 0.2em 0;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
code:before,
code:after,
tt:before,
tt:after {
2019-05-13 00:26:32 -06:00
letter-spacing: -0.2em;
content: "\00a0";
}
code br,
tt br {
2019-05-13 00:26:32 -06:00
display: none;
}
del code {
2019-05-13 00:26:32 -06:00
text-decoration: inherit;
}
2019-05-13 00:26:32 -06:00
pre > code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.highlight {
2019-05-13 00:26:32 -06:00
margin-bottom: 16px;
}
.highlight pre,
pre {
2019-05-13 00:26:32 -06:00
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.highlight pre {
2019-05-13 00:26:32 -06:00
margin-bottom: 0;
word-break: normal;
}
pre {
2019-05-13 00:26:32 -06:00
word-wrap: normal;
}
pre code,
pre tt {
2019-05-13 00:26:32 -06:00
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
pre code:before,
pre code:after,
pre tt:before,
pre tt:after {
2019-05-13 00:26:32 -06:00
content: normal;
}
kbd {
2019-05-13 00:26:32 -06:00
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
2019-05-13 18:54:23 -06:00
color: #555555;
2019-05-13 00:26:32 -06:00
vertical-align: middle;
background-color: #fcfcfc;
2019-05-13 18:54:23 -06:00
border: solid 1px #cccccc;
border-bottom-color: #bbbbbb;
2019-05-13 00:26:32 -06:00
border-radius: 3px;
2019-05-13 18:54:23 -06:00
box-shadow: inset 0 -1px 0 #bbbbbb;
}
input[type="checkbox"] {
vertical-align: middle !important;
}
.csv-data td,
.csv-data th {
2019-05-13 00:26:32 -06:00
padding: 5px;
overflow: hidden;
font-size: 12px;
line-height: 1;
text-align: left;
white-space: nowrap;
}
.csv-data .blob-num {
2019-05-13 00:26:32 -06:00
padding: 10px 8px 9px;
text-align: right;
2019-05-13 18:54:23 -06:00
background: #ffffff;
2019-05-13 00:26:32 -06:00
border: 0;
}
.csv-data tr {
2019-05-13 00:26:32 -06:00
border-top: 0;
}
.csv-data th {
2019-05-13 00:26:32 -06:00
font-weight: bold;
background: #f8f8f8;
border-top: 0;
}
2019-05-13 18:54:23 -06:00
.ui.list .list,
ol.ui.list ol,
ul.ui.list ul {
padding-left: 2em;
}
}