Path: blob/master/webroot/rsrc/css/core/remarkup.css
12242 views
/**1* @provides phabricator-remarkup-css2*/34.phabricator-remarkup {5line-height: 1.7em;6word-break: break-word;7}89.phabricator-remarkup p {10margin: 0 0 12px;11}1213.PhabricatorMonospaced,14.phabricator-remarkup .remarkup-code-block .remarkup-code {15font: 11px/15px "Menlo", "Consolas", "Monaco", monospace;16}1718.platform-windows .PhabricatorMonospaced,19.platform-windows .phabricator-remarkup .remarkup-code-block .remarkup-code {20font: 12px/15px "Menlo", "Consolas", "Monaco", monospace;21}2223.phabricator-remarkup .remarkup-code-block {24margin: 12px 0;25white-space: pre;26}2728.phabricator-remarkup .remarkup-code-header {29padding: 6px 12px;30font-size: 13px;31font-weight: bold;32background: rgba({$alphablue},0.08);33display: table-cell;34border-top-left-radius: 3px;35border-top-right-radius: 3px;36overflow: hidden;37}3839.phabricator-remarkup .code-block-counterexample .remarkup-code-header {40background-color: {$sh-redbackground};41}4243.phabricator-remarkup .remarkup-code-block .remarkup-code-header + pre {44border-top-left-radius: 0;45}4647.phabricator-remarkup .remarkup-code-block pre {48background: rgba({$alphablue},0.08);49display: block;50color: {$blacktext};51overflow: auto;52padding: 12px;53border-radius: 3px;54white-space: pre-wrap;55}5657.phabricator-remarkup kbd {58display: inline-block;59min-width: 1em;60padding: 4px 5px 5px;61font-weight: normal;62font-size: 0.8rem;63text-align: center;64text-decoration: none;65line-height: 0.6rem;66border-radius: 3px;67box-shadow: inset 0 -1px 0 rgba({$alphablue},0.08);68user-select: none;69background: {$lightgreybackground};70border: 1px solid {$lightgreyborder};71}7273.phabricator-remarkup .kbd-join {74padding: 0 4px;75color: {$lightgreytext};76}7778.phabricator-remarkup pre.remarkup-counterexample {79background-color: {$sh-redbackground};80}8182.phabricator-remarkup tt.remarkup-monospaced {83color: {$blacktext};84background: rgba({$alphablue},0.1);85padding: 1px 4px;86border-radius: 3px;87white-space: pre-wrap;88}8990/* NOTE: You can currently produce this with [[link | `name`]]. Restore the91link color. */92.phabricator-remarkup a tt.remarkup-monospaced {93color: {$anchor};94}9596.phabricator-remarkup .remarkup-header tt.remarkup-monospaced {97font-weight: normal;98}99100.phabricator-remarkup ul.remarkup-list {101list-style: disc;102margin: 12px 0 12px 30px;103}104105.phabricator-remarkup ol.remarkup-list {106list-style: decimal;107margin: 12px 0 12px 30px;108}109110.phabricator-remarkup ol ol.remarkup-list {111list-style: upper-alpha;112}113114.phabricator-remarkup ol ol ol.remarkup-list {115list-style: lower-alpha;116}117118.phabricator-remarkup ol ol ol ol.remarkup-list {119list-style: lower-roman;120}121122.phabricator-remarkup .remarkup-list-with-checkmarks .remarkup-checked-item,123.phabricator-remarkup .remarkup-list-with-checkmarks .remarkup-unchecked-item {124list-style: none;125margin-left: -20px;126position: relative;127padding-left: 22px;128}129130.phabricator-remarkup .remarkup-list-with-checkmarks input {131visibility: hidden;132width: 0;133}134135.phabricator-remarkup .remarkup-list-with-checkmarks136.remarkup-list-item::before {137height: 16px;138width: 16px;139background-size: 16px;140display: inline-block;141content: '';142position: absolute;143top: 3px;144left: 0;145}146147.remarkup-list-with-checkmarks .remarkup-checked-item::before {148background-image: url(rsrc/image/controls/checkbox-checked.png);149}150151.remarkup-list-with-checkmarks .remarkup-unchecked-item::before {152background-image: url(rsrc/image/controls/checkbox-unchecked.png);153}154155.phabricator-remarkup .remarkup-list-with-checkmarks .remarkup-checked-item {156color: {$lightgreytext};157}158159.phabricator-remarkup ul.remarkup-list ol.remarkup-list,160.phabricator-remarkup ul.remarkup-list ul.remarkup-list,161.phabricator-remarkup ol.remarkup-list ol.remarkup-list,162.phabricator-remarkup ol.remarkup-list ul.remarkup-list {163margin: 4px 0 4px 24px;164}165166.phabricator-remarkup .remarkup-list-item {167line-height: 1.7em;168}169170.phabricator-remarkup li.phantom-item,171.phabricator-remarkup li.phantom-item {172list-style-type: none;173}174175.phabricator-remarkup h2.remarkup-header {176font-size: 28px;177margin: 1em 0 0.75em;178}179180.phabricator-remarkup h3.remarkup-header {181font-size: 24px;182margin: 1em 0 0.75em;183}184185.phabricator-remarkup h4.remarkup-header {186font-size: 22px;187margin: 1em 0 0.75em;188}189190.phabricator-remarkup h5.remarkup-header {191font-size: 18px;192margin: 1em 0 0.75em;193}194195.phabricator-remarkup h6.remarkup-header {196font-size: 16px;197margin: 1em 0 0.75em;198}199200.phabricator-remarkup blockquote {201border-left: 3px solid {$sh-blueborder};202color: {$darkbluetext};203font-style: italic;204margin: 4px 0 12px 0;205padding: 8px 12px;206background-color: {$lightbluebackground};207}208209.phabricator-remarkup blockquote *:last-child {210margin-bottom: 0;211}212213.phabricator-remarkup blockquote blockquote {214background-color: rgba(175,175,175, .1);215}216217.phabricator-remarkup blockquote em {218/* In blockquote bodies, default text is italic so emphasized text should219be normal. */220font-style: normal;221}222223.phabricator-remarkup blockquote div.remarkup-reply-head {224font-style: normal;225padding-bottom: 4px;226}227228.phabricator-remarkup blockquote div.remarkup-reply-head em {229/* In blockquote headers, default text is normal so emphasized text should230be italic. See T10686. */231font-style: italic;232}233234.phabricator-remarkup blockquote div.remarkup-reply-head235.phui-tag-core {236background-color: transparent;237border: none;238padding: 0;239color: {$darkbluetext};240}241242.phabricator-remarkup img.remarkup-proxy-image {243max-width: 640px;244max-height: 640px;245}246247.phabricator-remarkup audio {248display: block;249margin: 16px auto;250min-width: 240px;251width: 50%;252}253254video.phabricator-media {255background: {$greybackground};256}257258.phabricator-remarkup video {259display: block;260margin: 0 auto;261max-width: 95%;262}263264.phabricator-remarkup-mention-exists {265font-weight: bold;266background: #e6f3ff;267}268269.phabricator-remarkup-mention-disabled {270font-weight: bold;271background: #dddddd;272}273274.phui-remarkup-preview .phabricator-remarkup-mention-unknown,275.aphront-panel-preview .phabricator-remarkup-mention-unknown {276font-weight: bold;277background: #ffaaaa;278}279280.phabricator-remarkup .phriction-link {281font-weight: bold;282}283284.phabricator-remarkup .phriction-link-missing {285color: {$red};286text-decoration: underline;287}288289.phabricator-remarkup .phriction-link-lock {290color: {$greytext};291}292293.phabricator-remarkup .remarkup-note {294margin: 16px 0;295padding: 12px;296border-left: 3px solid {$blue};297background: {$lightblue};298}299300.phabricator-remarkup .remarkup-warning {301margin: 16px 0;302padding: 12px;303border-left: 3px solid {$yellow};304background: {$lightyellow};305}306307.phabricator-remarkup .remarkup-important {308margin: 16px 0;309padding: 12px;310border-left: 3px solid {$red};311background: {$lightred};312}313314.phabricator-remarkup .remarkup-note .remarkup-monospaced,315.phabricator-remarkup .remarkup-important .remarkup-monospaced,316.phabricator-remarkup .remarkup-warning .remarkup-monospaced {317background-color: rgba(150,150,150,.2);318}319320.phabricator-remarkup .remarkup-note-word {321font-weight: bold;322color: {$darkbluetext};323}324325.phabricator-remarkup-toc {326float: right;327border-left: 1px solid {$lightblueborder};328background: {$page.content};329width: 160px;330padding-left: 8px;331margin: 0 0 4px 8px;332}333334.phabricator-remarkup-toc-header {335font-size: 13px;336line-height: 13px;337color: {$darkbluetext};338font-weight: bold;339margin-bottom: 4px;340}341342.phabricator-remarkup-toc ul {343padding: 0;344margin: 0;345list-style: none;346overflow: hidden;347}348349.phabricator-remarkup-toc ul ul {350margin: 0 0 0 8px;351}352353.phabricator-remarkup-toc ul li {354padding: 0;355margin: 0;356font-size: 12px;357overflow: hidden;358text-overflow: ellipsis;359white-space: nowrap;360}361362.phabricator-remarkup-embed-layout-right {363text-align: right;364}365366.phabricator-remarkup-embed-layout-center {367text-align: center;368}369370.phabricator-remarkup-embed-layout-inline {371display: inline;372}373374.phabricator-remarkup-embed-float-right {375float: right;376margin: .5em 1em 0;377}378379.phabricator-remarkup-embed-layout-link {380padding: 6px 6px 6px 42px;381border-radius: 3px;382margin: 0 0 4px;383display: inline-block;384font-weight: bold;385-webkit-font-smoothing: antialiased;386border: 1px solid {$lightblueborder};387border-radius: 3px;388color: {$blacktext};389min-width: 256px;390position: relative;391line-height: 20px;392overflow: hidden;393min-height: 38px;394}395396.phabricator-remarkup-embed-layout-icon {397font-size: 28px;398position: absolute;399top: 10px;400left: 10px;401}402403.phabricator-remarkup-embed-layout-info {404color: {$lightgreytext};405font-size: {$smallerfontsize};406font-weight: normal;407margin-left: 8px;408}409410.phabricator-remarkup-embed-layout-link:hover {411border-color: {$violet};412cursor: pointer;413}414415.device-desktop .phabricator-remarkup-embed-layout-link:hover {416text-decoration: none;417}418419.phabricator-remarkup-embed-layout-link:hover420.phabricator-remarkup-embed-layout-icon {421color: {$violet};422}423424.phabricator-remarkup-embed-layout-info-block {425display: block;426}427428.embed-download-form {429display: inline-block;430padding: 0;431margin: 0;432}433434.phabricator-remarkup-embed-layout-link435.phabricator-remarkup-embed-layout-download {436color: {$lightgreytext};437border: none;438background: rgba(0, 0, 0, 0);439box-shadow: none;440outline: 0;441padding: 0;442margin: 0;443text-align: left;444text-shadow: none;445border-radius: 0;446font: inherit;447display: inline;448min-width: 0;449font-weight: normal !important;450}451452.phabricator-remarkup-embed-layout-download:hover {453color: {$anchor};454text-decoration: underline;455}456457.phabricator-remarkup-embed-float-left {458float: left;459margin: .5em 1em 0;460}461462.phabricator-remarkup-image-error {463border: 1px solid {$redborder};464background: {$sh-redbackground};465padding: 8px 12px;466color: {$darkgreytext};467}468469.phabricator-remarkup-embed-image {470display: inline-block;471border: 3px solid white;472box-shadow: 1px 1px 2px rgba({$alphablack}, 0.20);473}474475.phabricator-remarkup-embed-image-full,476.phabricator-remarkup-embed-image-wide {477display: inline-block;478max-width: 100%;479}480481.phabricator-remarkup-embed-image-full img,482.phabricator-remarkup-embed-image-wide img {483height: auto;484max-width: 100%;485}486487.phabricator-remarkup .remarkup-table-wrap {488overflow-x: auto;489}490491!print .phabricator-remarkup .remarkup-table-wrap {492overflow-x: hidden;493}494495.phabricator-remarkup table.remarkup-table {496border-collapse: separate;497border-spacing: 1px;498background: {$lightblueborder};499margin: 12px 0;500word-break: normal;501}502503.phabricator-remarkup table.remarkup-table th {504font-weight: bold;505padding: 4px 6px;506background: {$lightbluebackground};507}508509.phabricator-remarkup table.remarkup-table td {510background: {$page.content};511padding: 3px 6px;512}513514!print .phabricator-remarkup table.remarkup-table td {515/* See T13564. This is a narrow control for PDF printing behavior in516Chrome. */517518line-break: anywhere;519overflow-wrap: anywhere;520}521522body div.phabricator-remarkup.remarkup-has-toc523.phabricator-remarkup-toc + .remarkup-header {524margin-top: 0;525padding-top: 0;526}527528body .phabricator-standard-page div.phabricator-remarkup *:first-child,529body .phabricator-standard-page div.phabricator-remarkup .remarkup-header + * {530margin-top: 0;531}532533body div.phabricator-remarkup > *:last-child {534margin-bottom: 0;535}536537.remarkup-assist-textarea {538border-left-color: {$greyborder};539border-right-color: {$greyborder};540border-bottom-color: {$greyborder};541border-top-color: {$thinblueborder};542border-radius: 0;543border-bottom-left-radius: 3px;544border-bottom-right-radius: 3px;545546box-shadow: none;547-webkit-box-shadow: none;548549/* Set line height explicitly so the metrics <var /> and the real textarea550are forced to the same value. */551line-height: 1.25em;552553/* Prevent Safari and Chrome users from dragging the textarea any wider,554because the top bar won't resize along with it. */555resize: vertical;556}557558var.remarkup-assist-textarea {559/* This is an invisible element used to measure the size of text in the560textarea so we can float typeaheads over the cursor position. */561display: block;562border-color: orange;563box-sizing: border-box;564padding: 4px 6px;565white-space: pre-wrap;566visibility: hidden;567}568569.remarkup-assist-textarea:focus {570border: 1px solid rgba(82, 168, 236, 0.8);571}572573.remarkup-assist-bar {574height: 32px;575border-width: 1px 1px 0;576border-style: solid;577border-top-color: {$greyborder};578border-left-color: {$greyborder};579border-right-color: {$greyborder};580border-top-left-radius: 3px;581border-top-right-radius: 3px;582padding: 0 4px;583584background: {$lightbluebackground};585overflow: hidden;586}587588.remarkup-assist-button {589display: block;590margin-top: 4px;591height: 20px;592padding: 2px 5px 3px;593line-height: 18px;594width: 16px;595float: left;596border-radius: 3px;597}598599.remarkup-assist-button:hover .phui-icon-view.phui-font-fa {600color: {$sky};601}602603.remarkup-assist-button:active {604outline: none;605}606607.remarkup-assist-button:focus {608outline: none;609}610611.remarkup-assist-separator {612display: block;613float: left;614615height: 18px;616margin: 7px 6px;617618width: 0px;619border-right: 1px solid {$lightgreyborder};620}621622.remarkup-interpreter-error {623padding: 8px;624border: 1px solid {$sh-redborder};625background-color: {$sh-redbackground};626}627628.remarkup-cowsay {629white-space: pre-wrap;630}631632.remarkup-figlet {633white-space: pre-wrap;634}635636.remarkup-assist {637width: 14px;638height: 14px;639overflow: hidden;640text-align: center;641vertical-align: middle;642}643644.remarkup-assist-right {645float: right;646}647648.jx-order-mask {649background: white;650opacity: 1.0;651}652653.phabricator-image-macro-hero {654margin: auto;655max-width: 95%;656}657658.phabricator-remarkup-macro {659height: auto;660max-width: 100%;661}662663.remarkup-nav-sequence-arrow {664color: {$lightgreytext};665}666667.phabricator-remarkup hr {668background: {$thinblueborder};669margin: 24px 0;670clear: both;671}672673.phabricator-remarkup .remarkup-highlight {674background-color: {$lightviolet};675padding: 0 4px;676}677678.device .remarkup-assist-nodevice {679display: none;680}681682/* - Autocomplete ----------------------------------------------------------- */683684.phuix-autocomplete {685position: absolute;686width: 300px;687box-shadow: {$dropshadow};688background: {$page.content};689border: 1px solid {$lightgreyborder};690border-radius: 3px;691}692693.phuix-autocomplete-head {694white-space: nowrap;695overflow: hidden;696text-overflow: ellipsis;697padding: 6px 8px;698background: {$lightgreybackground};699color: {$darkgreytext};700border-radius: 3px;701}702703.phuix-autocomplete-head .phui-icon-view {704margin-right: 4px;705color: {$lightgreytext};706}707708.phuix-autocomplete-echo {709margin-left: 4px;710color: {$lightgreytext};711}712713.phuix-autocomplete-list a.jx-result {714display: block;715padding: 5px 8px;716font-size: {$normalfontsize};717border-top: 1px solid {$thinblueborder};718font-weight: bold;719color: {$darkgreytext};720}721722.phuix-autocomplete-list a.jx-result .tokenizer-result-closed {723color: {$lightgreytext};724text-decoration: line-through;725}726727.phuix-autocomplete-list a.jx-result .phui-icon-view {728margin-right: 4px;729color: {$lightbluetext};730}731732.phuix-autocomplete-list a.jx-result:hover {733text-decoration: none;734background: {$sh-bluebackground};735color: {$blacktext};736}737738.phuix-autocomplete-list a.jx-result.focused,739.phuix-autocomplete-list a.jx-result.focused:hover {740background: {$sh-bluebackground};741color: {$blacktext};742}743744745/* - Pinned ----------------------------------------------------------------- */746747.phui-box.phui-object-box.phui-comment-form-view.remarkup-assist-pinned {748position: fixed;749background-color: {$page.content};750border-top: 1px solid {$lightblueborder};751box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);752753width: 100%;754bottom: 0;755left: 0;756right: 0;757margin: 0;758759overflow: auto;760max-height: 60vh;761}762763.remarkup-assist-pinned-spacer {764position: relative;765}766767768/* - Preview ---------------------------------------------------------------- */769770.remarkup-inline-preview {771display: block;772position: relative;773background: {$page.content};774overflow-y: auto;775box-sizing: border-box;776width: 100%;777resize: vertical;778padding: 8px;779border: 1px solid {$lightblueborder};780border-top: none;781-webkit-font-smoothing: antialiased;782}783784.remarkup-control-fullscreen-mode .remarkup-inline-preview {785resize: none;786}787788.remarkup-inline-preview * {789resize: none;790}791792.remarkup-assist-button.preview-active {793background: {$sky};794}795796.remarkup-assist-button.preview-active .phui-icon-view {797color: {$page.content};798}799800.remarkup-assist-button.preview-active:hover {801text-decoration: none;802}803804.remarkup-assist-button.preview-active:hover .phui-icon-view {805color: {$page.content};806}807808.remarkup-preview-active .remarkup-assist,809.remarkup-preview-active .remarkup-assist-separator {810opacity: .2;811transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750);812transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750);813}814815.remarkup-preview-active .remarkup-assist-button {816pointer-events: none;817cursor: default;818}819820.remarkup-preview-active .remarkup-assist-button.preview-active {821pointer-events: inherit;822cursor: pointer;823}824825.remarkup-preview-active .remarkup-assist.fa-eye {826opacity: 1;827transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750);828transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750);829}830831832/* - Fullscreen ------------------------------------------------------------- */833834.remarkup-fullscreen-mode {835overflow: hidden;836}837838.remarkup-control-fullscreen-mode {839position: fixed;840border: none;841top: 32px;842bottom: 32px;843left: 64px;844right: 64px;845border-radius: 3px;846box-shadow: 0px 4px 32px #555;847}848849.remarkup-control-fullscreen-mode .remarkup-assist-button {850padding: 1px 6px 4px;851font-size: 15px;852}853854.remarkup-control-fullscreen-mode .remarkup-assist-button .remarkup-assist {855height: 16px;856width: 16px;857}858859.aphront-form-input .remarkup-control-fullscreen-mode .remarkup-assist-bar {860border: none;861border-top-left-radius: 3px;862border-top-right-radius: 3px;863height: 32px;864padding: 4px 8px;865background: {$bluebackground};866}867868.aphront-form-control .remarkup-control-fullscreen-mode869textarea.remarkup-assist-textarea {870position: absolute;871top: 39px;872left: 0;873right: 0;874height: calc(100% - 36px) !important;875padding: 16px;876font-size: {$biggerfontsize};877line-height: 1.51em;878border-width: 1px 0 0 0;879outline: none;880resize: none;881background: {$page.content} !important;882}883884.remarkup-control-fullscreen-mode textarea.remarkup-assist-textarea:focus {885border-color: {$thinblueborder};886box-shadow: none;887}888889.remarkup-control-fullscreen-mode .remarkup-inline-preview {890font-size: {$biggerfontsize};891border: none;892padding: 16px;893border-bottom-left-radius: 3px;894border-bottom-right-radius: 3px;895}896897.remarkup-control-fullscreen-mode .remarkup-assist-button .fa-arrows-alt {898color: {$sky};899}900901.device-phone .remarkup-control-fullscreen-mode {902top: 0;903bottom: 0;904left: 0;905right: 0;906}907908909