12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289 |
- /* THEME SPECIFIC STYLES */
- .v-main .contents {
- color: mc('grey', '800');
- padding: .5rem 0 50px;
- position: relative;
- > div > *:first-child {
- margin-top: 0;
- }
- @at-root .theme--dark & {
- color: mc('grey', '300');
- }
- // ---------------------------------
- // LINKS
- // ---------------------------------
- a {
- color: mc('blue', '700');
- &.is-internal-link.is-invalid-page {
- color: mc('red', '700');
- @at-root .theme--dark & {
- color: mc('red', '200');
- }
- }
- &.is-external-link {
- padding-right: 3px;
- &::after {
- font-family: 'Material Design Icons', sans-serif;
- font-size: 24px/1;
- padding-left: 3px;
- display: inline-block;
- content: '\F03CC';
- color: mc('grey', '500');
- text-decoration: none;
- }
- }
- @at-root .theme--dark & {
- color: mc('blue', '200');
- }
- }
- // ---------------------------------
- // HEADERS
- // ---------------------------------
- h1, h2, h3, h4, h5, h6 {
- position: relative;
- &:first-child {
- padding-top: 0;
- }
- &:hover {
- .toc-anchor {
- display: block;
- }
- }
- .toc-anchor {
- display: none;
- position: absolute;
- right: 1rem;
- bottom: .5rem;
- font-size: 1.25rem;
- text-decoration: none;
- color: mc('grey', '500');
- }
- & + h2, & + h3, & + h4, & + h5, & + h6 {
- margin-top: 8px;
- }
- & + hr.footnotes-sep {
- display: none;
- }
- }
- h1 {
- padding: 0;
- color: mc('blue', '800');
- margin-top: 2rem;
- position: relative;
- @at-root .theme--dark & {
- color: mc('grey', '300');
- }
- &::after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 2px;
- background: linear-gradient(to right, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
- border-radius: 3px;
- @at-root .theme--dark & {
- background: linear-gradient(to right, mc('blue', '300') 0%, mc('blue', '500') 10%, rgba(mc('blue', '900'), 0) 100%);
- }
- @at-root .is-rtl & {
- background: linear-gradient(to left, mc('theme', 'primary'), rgba(mc('theme', 'primary'), 0));
- }
- @at-root .theme--dark.is-rtl & {
- background: linear-gradient(to left, mc('grey', '600'), rgba(mc('grey', '600'), 0));
- }
- }
- }
- h2 {
- margin: 1rem 0 0 0;
- color: mc('grey', '800');
- position: relative;
- @at-root .theme--dark & {
- color: mc('grey', '400');
- }
- &::after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 1px;
- background: linear-gradient(to right, mc('grey', '700'), rgba(mc('grey', '700'), 0));
- @at-root .theme--dark & {
- background: linear-gradient(to right, mc('grey', '300'), rgba(mc('grey', '700'), 0));
- }
- @at-root .is-rtl & {
- background: linear-gradient(to left, mc('grey', '700'), rgba(mc('grey', '700'), 0));
- }
- @at-root .theme--dark.is-rtl & {
- background: linear-gradient(to left, mc('grey', '300'), rgba(mc('grey', '700'), 0));
- }
- }
- }
- h3 {
- margin: 8px 0 0 0;
- color: mc('grey', '700');
- position: relative;
- @at-root .theme--dark & {
- color: mc('grey', '600');
- }
- &::after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 1px;
- background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 90%);
- }
- }
- h4, h5, h6 {
- font-size: 1rem;
- margin: 8px 0 0 0;
- color: mc('grey', '700');
- position: relative;
- @at-root .theme--dark & {
- color: mc('grey', '600');
- }
- &::after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 1px;
- background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 70%);
- }
- }
- h5 {
- &::after {
- background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 50%);
- }
- }
- h6 {
- &::after {
- background: linear-gradient(to right, mc('grey', '500'), rgba(mc('grey', '500'), 0) 30%);
- }
- }
- // ---------------------------------
- // PARAGRAPHS
- // ---------------------------------
- p {
- padding: 1rem 0 0 0;
- margin: 0;
- @at-root .contents > div > p:first-child {
- padding-top: 0;
- }
- @at-root .v-application & {
- margin-bottom: 0;
- }
- }
- hr {
- margin: 1rem 0;
- height: 1px;
- border: none;
- background-color: mc('grey', '400');
- @at-root .theme--dark & {
- background-color: mc('grey', '700');
- }
- }
- .emoji {
- height: 1.25em;
- margin: 0 1px -4px;
- }
- .text-huge {
- font-size: 1.8em;
- }
- .text-big {
- font-size: 1.4em;
- }
- .text-small {
- font-size: .85em;
- }
- .text-tiny {
- font-size: .7em;
- }
- blockquote {
- padding: 0 1rem 1rem 1rem;
- background-color: mc('blue-grey', '50');
- border-left: 55px solid mc('blue-grey', '500');
- border-radius: .5rem;
- margin: 1rem 0;
- position: relative;
- @at-root .theme--dark & {
- background-color: mc('blue-grey', '900');
- }
- &::before {
- display: inline-block;
- font: normal normal normal 24px/1 "Material Design Icons", sans-serif;
- position: absolute;
- margin-top: -12px;
- top: 50%;
- left: -38px;
- color: rgba(255, 255, 255, .7);
- content: "\F0757";
- }
- > p:first-child .emoji {
- margin-right: .5rem;
- }
- &.valign-center > p {
- display: flex;
- align-items: center;
- }
- &.is-info {
- background-color: mc('blue', '50');
- border-color: mc('blue', '300');
- color: mc('blue', '900');
- &::before {
- content: "\F02FC";
- }
- code:not([class^="language-"]) {
- background-color: mc('blue', '50');
- color: mc('blue', '800');
- }
- @at-root .theme--dark & {
- background-color: mc('blue', '900');
- color: mc('blue', '50');
- border-color: mc('blue', '500');
- }
- }
- &.is-warning {
- background-color: mc('orange', '50');
- border-color: mc('orange', '300');
- color: darken(mc('orange', '900'), 10%);
- &::before {
- content: "\F0026";
- }
- code:not([class^="language-"]) {
- background-color: mc('orange', '50');
- color: mc('orange', '800');
- }
- @at-root .theme--dark & {
- background-color: darken(mc('orange', '900'), 5%);
- color: mc('orange', '100');
- border-color: mc('orange', '500');
- box-shadow: 0 0 2px 0 mc('grey', '900');
- }
- }
- &.is-danger {
- background-color: mc('red', '50');
- border-color: mc('red', '300');
- color: mc('red', '900');
- &::before {
- content: "\F0159";
- }
- code:not([class^="language-"]) {
- background-color: mc('red', '50');
- color: mc('red', '800');
- }
- @at-root .theme--dark & {
- background-color: mc('red', '900');
- color: mc('red', '100');
- border-color: mc('red', '500');
- }
- }
- &.is-success {
- background-color: mc('green', '50');
- border-color: mc('green', '300');
- color: mc('green', '900');
- &::before {
- content: "\F0E1E";
- }
- code:not([class^="language-"]) {
- background-color: mc('green', '50');
- color: mc('green', '800');
- }
- @at-root .theme--dark & {
- background-color: mc('green', '900');
- color: mc('green', '50');
- border-color: mc('green', '500');
- }
- }
- }
- // ---------------------------------
- // ASCIIDOC SPECIFIC
- // ---------------------------------
- .admonitionblock {
- margin: 1rem 0;
- position: relative;
- table {
- border: none;
- background-color: transparent;
- width: 100%;
- }
- td.icon {
- border-bottom-left-radius: 7px;
- border-top-left-radius: 7px;
- text-align: center;
- width: 56px;
- &::before {
- display: inline-block;
- font: normal normal normal 24px/1 "Material Design Icons", sans-serif !important;
- }
- }
- td.content {
- border-bottom-right-radius: 7px;
- border-top-right-radius: 7px;
- }
- &.note {
- td.icon {
- background-color: mc('blue', '300');
- color: mc('blue', '50');
- &::before {
- content: "\F02FC";
- }
- }
- td.content {
- color: darken(mc('blue', '900'), 10%);
- background-color: mc('blue', '50');
- @at-root .theme--dark & {
- background-color: mc('blue', '900');
- color: mc('blue', '50');
- }
- }
- }
- &.tip {
- td.icon {
- background-color: mc('green', '300');
- color: mc('green', '50');
- &::before {
- content: "\F0335";
- }
- }
- td.content {
- color: darken(mc('green', '900'), 10%);
- background-color: mc('green', '50');
- @at-root .theme--dark & {
- background-color: mc('green', '900');
- color: mc('green', '50');
- }
- }
- }
- &.warning {
- background-color: transparent !important;
- td.icon {
- background-color: mc('orange', '300');
- color: #FFF;
- &::before {
- content: "\F0026";
- }
- }
- td.content {
- color: darken(mc('orange', '900'), 10%);
- background-color: mc('orange', '50');
- @at-root .theme--dark & {
- background-color: darken(mc('orange', '900'), 5%);
- color: mc('orange', '100');
- }
- }
- }
- &.caution {
- td.icon {
- background-color: mc('purple', '300');
- color: mc('purple', '50');
- &::before {
- content: "\f0238";
- }
- }
- td.content {
- color: darken(mc('purple', '900'), 10%);
- background-color: mc('purple', '50');
- @at-root .theme--dark & {
- background-color: mc('purple', '900');
- color: mc('purple', '100');
- }
- }
- }
- &.important {
- td.icon {
- background-color: mc('red', '300');
- color: mc('red', '50');
- &::before {
- content: "\F0159";
- }
- }
- td.content {
- color: darken(mc('red', '900'), 10%);
- background-color: mc('red', '50');
- @at-root .theme--dark & {
- background-color: mc('red', '900');
- color: mc('red', '100');
- }
- }
- }
- }
- .exampleblock {
- > .title {
- font-style: italic;
- font-size: 1rem !important;
- color: #7a2717;
- @at-root .theme--dark & {
- color: mc('brown', '300');
- }
- }
- > .content {
- border: 1px solid mc('grey', '200');
- border-radius: 7px;
- margin-bottom: 12px;
- padding: 16px;
- }
- }
- // ---------------------------------
- // LISTS
- // ---------------------------------
- ol, ul:not(.tabset-tabs) {
- padding-top: 1rem;
- width: 100%;
- @at-root .is-rtl & {
- padding-left: 0;
- padding-right: 1rem;
- }
- li > ul, li > ol {
- padding-top: .5rem;
- padding-left: 1rem;
- @at-root .is-rtl & {
- padding-left: 0;
- padding-right: 1rem;
- }
- }
- li + li {
- margin-top: .5rem;
- }
- &.links-list {
- padding-left: 0;
- list-style-type: none;
- @at-root .is-rtl & {
- padding-right: 0;
- }
- li {
- background-color: mc('grey', '50');
- background-image: linear-gradient(to bottom, #FFF, mc('grey', '50'));
- border-right: 1px solid mc('grey', '200');
- border-bottom: 1px solid mc('grey', '200');
- border-left: 5px solid mc('grey', '300');
- box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
- padding: 1rem;
- border-radius: 5px;
- font-weight: 500;
- @at-root .is-rtl & {
- border-left-width: 1px;
- border-right-width: 5px;
- }
- &:hover {
- background-image: linear-gradient(to bottom, #FFF, lighten(mc('blue', '50'), 4%));
- border-left-color: mc('blue', '500');
- cursor: pointer;
- @at-root .is-rtl & {
- border-left-color: mc('grey', '200');
- border-right-width: mc('blue', '500');
- }
- }
- &::before {
- content: '';
- display: none;
- }
- > a {
- display: block;
- text-decoration: none;
- margin: -1rem;
- padding: 1rem;
- > em {
- font-weight: 400;
- font-style: normal;
- color: mc('grey', '700');
- display: inline-block;
- padding-left: .5rem;
- border-left: 1px solid mc('grey', '300');
- margin-left: .5rem;
- &.is-block {
- display: block;
- padding-left: 0;
- margin-left: 0;
- border-left: none;
- }
- }
- }
- > em {
- font-weight: 400;
- font-style: normal;
- }
- @at-root .theme--dark & {
- background-color: mc('grey', '50');
- background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 5%), mc('grey', '900'));
- border-right: 1px solid mc('grey', '900');
- border-bottom: 1px solid mc('grey', '900');
- border-left: 5px solid mc('grey', '700');
- box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.1);
- @at-root .theme--dark.is-rtl & {
- border-left-width: 1px;
- border-right-width: 5px;
- }
- &:hover {
- background-image: linear-gradient(to bottom, lighten(mc('grey', '900'), 2%), darken(mc('grey', '900'), 3%));
- border-left-color: mc('indigo', '300');
- cursor: pointer;
- @at-root .theme--dark.is-rtl & {
- border-left-color: mc('grey', '900');
- border-right-width: mc('indigo', '300');
- }
- }
- }
- }
- }
- &.grid-list {
- margin: 1rem 0 0 0;
- background-color: #FFF;
- border: 1px solid mc('grey', '200');
- padding: 1px;
- display: inline-block;
- list-style-type: none;
- @at-root .theme--dark & {
- background-color: #000;
- border: 1px solid mc('grey', '800');
- }
- li {
- background-color: mc('grey', '50');
- padding: .6rem 1rem;
- display: block;
- &:nth-child(odd) {
- background-color: mc('grey', '100');
- }
- & + li {
- margin-top: 0;
- }
- &::before {
- content: '';
- display: none;
- }
- @at-root .theme--dark & {
- background-color: mc('grey', '900');
- &:nth-child(odd) {
- background-color: darken(mc('grey', '900'), 5%);
- }
- }
- }
- }
- }
- ul:not(.tabset-tabs):not(.contains-task-list) {
- list-style: none;
- > li::before {
- position: absolute;
- left: -1.1rem;
- content: '\25b8';
- color: mc('grey', '600');
- width: 1.35rem;
- @at-root .is-rtl & {
- right: -1.1rem;
- content: '\25C3';
- }
- }
- }
- ol, ul:not(.tabset-tabs) {
- > li {
- position: relative;
- > p {
- display:inline-block;
- vertical-align:top;
- padding-top:0;
-
- &:first-child {
- width: 100%;
- }
- }
- }
- }
- dl {
- dt {
- margin-top: 0.3em;
- margin-bottom: 0.3em;
- font-weight: bold;
- }
- dd {
- margin-left: 1.125em;
- margin-bottom: 0.75em;
- > p {
- padding: 0;
- }
- }
- }
- // ---------------------------------
- // CODE
- // ---------------------------------
- code {
- background-color: mc('indigo', '50');
- padding: 0 5px;
- color: mc('indigo', '800');
- font-family: 'Roboto Mono', monospace;
- font-weight: normal;
- font-size: 1rem;
- box-shadow: none;
- &::before, &::after {
- display: none;
- }
- @at-root .theme--dark & {
- background-color: darken(mc('grey', '900'), 5%);
- color: mc('indigo', '100');
- }
- }
- .prismjs{
- border: none;
- border-radius: 5px;
- box-shadow: initial;
- background-color: mc('grey', '900');
- padding: 1rem 1rem 1rem 3rem;
- margin: 1rem 0;
- @at-root .theme--dark & {
- background-color: darken(mc('grey', '900'), 5%);
- }
- > code {
- background-color: transparent;
- padding: 0;
- color: #FFF;
- box-shadow: initial;
- display: block;
- font-size: .85rem;
- font-family: 'Roboto Mono', monospace;
- &:after, &:before {
- content: initial;
- letter-spacing: initial;
- }
- }
- }
- .diagram {
- margin-top: 1rem;
- overflow: auto;
- svg:first-child {
- direction: ltr;
- }
- }
- // ---------------------------------
- // TASK LISTS
- // ---------------------------------
- .contains-task-list {
- padding-left: 0;
- }
- .task-list-item {
- position: relative;
- list-style-type: none;
- &-checkbox[disabled] {
- width: 1.1rem;
- height: 1.1rem;
- top: 2px;
- position: relative;
- margin-right: 2px;
- &::after {
- position: absolute;
- left: 0;
- top: 0;
- content: ' ';
- display: block;
- width: 1.1rem;
- height: 1.1rem;
- background-color: #FFF;
- border: 1px solid mc('grey', '400');
- border-radius: 2px;
- font-weight: bold;
- font-size: .8rem;
- line-height: 1rem;
- text-align: center;
- @at-root .theme--dark & {
- background-color: mc('grey', '900');
- border-color: mc('grey', '700');
- }
- }
- &[checked]::after {
- content: '✓';
- }
- }
- .contains-task-list {
- padding: .5rem 0 0 1.5rem;
- }
- }
- // ---------------------------------
- // TABLES
- // ---------------------------------
- table {
- margin: .5rem 0;
- border-spacing: 0;
- border-radius: 5px;
- border: 1px solid mc('grey', '300');
- @at-root .theme--dark & {
- border-color: mc('grey', '600');
- }
- &.dense {
- td, th {
- font-size: .85rem;
- padding: .5rem;
- }
- }
- th {
- padding: .75rem;
- border-bottom: 2px solid mc('grey', '500');
- color: mc('grey', '600');
- background-color: mc('grey', '100');
- @at-root .theme--dark & {
- background-color: darken(mc('grey', '900'), 8%);
- border-bottom-color: mc('grey', '600');
- color: mc('grey', '500');
- }
- &:first-child {
- border-top-left-radius: 7px;
- }
- &:last-child {
- border-top-right-radius: 7px;
- }
- }
- td {
- padding: .75rem;
- }
- tr {
- td {
- border-bottom: 1px solid mc('grey', '300');
- border-right: 1px solid mc('grey', '100');
- @at-root .theme--dark & {
- border-bottom-color: mc('grey', '700');
- border-right-color: mc('grey', '800');
- }
- &:nth-child(even) {
- background-color: mc('grey', '50');
- @at-root .theme--dark & {
- background-color: darken(mc('grey', '900'), 4%);
- }
- }
- &:last-child {
- border-right: none;
- }
- }
- &:nth-child(even) {
- td {
- background-color: mc('grey', '50');
- @at-root .theme--dark & {
- background-color: darken(mc('grey', '800'), 8%);
- }
- &:nth-child(even) {
- background-color: mc('grey', '100');
- @at-root .theme--dark & {
- background-color: darken(mc('grey', '800'), 10%);
- }
- }
- }
- }
- &:last-child {
- td {
- border-bottom: none;
- &:first-child {
- border-bottom-left-radius: 7px;
- }
- &:last-child {
- border-bottom-right-radius: 7px;
- }
- }
- }
- }
- }
- figure.table {
- margin: 0;
- > table {
- background-color: #FFF;
- margin: 0;
- border-collapse: collapse;
- box-shadow: 0 0 5px 0 rgba(0, 0, 0, .07);
- @at-root .theme--dark & {
- background-color: darken(mc('grey', '900'), 3%);
- }
- td, th {
- border: 1px solid mc('blue-grey', '100');
- box-shadow: inset -1px -1px 0 0 #FFF, inset 1px 0 0 #FFF;
- padding: .5rem .75rem;
- border-radius: 0 !important;
- @at-root .theme--dark & {
- border-color: mc('grey', '700');
- box-shadow: inset -1px -1px 0 0 rgba(0,0,0, .5);
- }
- }
- th {
- background-color: lighten(mc('blue-grey', '50'), 1%);
- font-weight: 700;
- color: mc('blue-grey', '700');
- @at-root .theme--dark & {
- background-color: mc('grey', '800');
- color: mc('grey', '400');
- }
- }
- thead th {
- border-bottom: 2px solid mc('blue-grey', '100');
- @at-root .theme--dark & {
- border-bottom: none;
- }
- }
- tbody th {
- background-color: lighten(mc('blue-grey', '50'), 4%);
- @at-root .theme--dark & {
- background-color: darken(mc('grey', '800'), 8%);
- }
- }
- }
- }
- // -> Add horizontal scrollbar when table is too wide
- .table-container {
- width: 100%;
- overflow-x: auto;
- }
- // ---------------------------------
- // IMAGES
- // ---------------------------------
- img {
- max-width: 100%;
- &.align-left {
- float: left;
- margin: 0 1rem 1rem 0;
- }
- &.align-right {
- float: right;
- margin: 0 0 1rem 1rem;
- z-index: 1;
- position: relative;
- }
- &.align-center {
- display: block;
- max-width: 100%;
- margin: auto;
- }
- &.align-abstopright {
- position: absolute;
- top: -90px;
- right: 1rem;
- height: calc(90px - 32px);
- width: auto;
- @at-root .is-rtl & {
- left: 1rem;
- right: initial;
- }
- }
- &.decor-shadow {
- box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
- }
- &.decor-outline {
- border: 1px solid mc('grey', '400');
- }
- &.uml-diagram {
- margin: 1rem 0;
- }
- }
- figure.image {
- margin: 1rem 0 0 0;
- img {
- margin: 0 auto;
- }
- figcaption {
- padding: 4px 1rem;
- text-align: center;
- font-size: 12px;
- color: mc('grey', '700');
- background-color: mc('grey', '100');
- @at-root .theme--dark & {
- color: mc('grey', '400');
- background-color: mc('grey', '800');
- }
- }
- }
- figure.image-style-align-right {
- float: right;
- }
- figure.image-style-align-left {
- float: left;
- }
- // ---------------------------------
- // DETAILS
- // ---------------------------------
- details {
- background-color: mc('grey', '50');
- margin: 1rem 2rem;
- border: 1px solid mc('grey', '300');
- border-radius: 7px;
- > p {
- padding-left: 0;
- }
- > summary {
- border-radius: 7px;
- background-color: mc('grey', '50');
- cursor: pointer;
- display: list-item;
- align-items: center;
- padding: 0.4rem 1rem;
- transition: background-color .4s ease;
- &:focus {
- outline: none;
- background-color: mc('grey', '100');
- }
- > h1, h2, h3, h4, h5, h6 {
- width: 95%;
- display: inline-block;
- &:first-child {
- margin-top: 0;
- }
- &:only-child::after {
- display: none;
- }
- }
- }
- &[open] {
- padding: 1rem;
- > summary {
- background-color: mc('grey', '100');
- border-bottom: 1px solid mc('grey', '300');
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
- margin: -1rem -1rem 1rem -1rem;
- }
- }
- @at-root .theme--dark & {
- background-color: mc('grey', '900');
- border-color: mc('grey', '700');
- > summary {
- background-color: mc('grey', '900');
- border-color: mc('grey', '700');
- }
- &[open] > summary {
- background-color: lighten(mc('grey', '900'), 5%);
- }
- }
- }
- // ---------------------------------
- // HIGHLIGHTING
- // ---------------------------------
- mark {
- &.pen-red {
- color: mc('red', '500');
- background-color: initial;
- }
- &.pen-green {
- color: mc('green', '500');
- background-color: initial;
- }
- &.marker-blue {
- background-color: mc('blue', '300');
- }
- &.marker-yellow {
- background-color: mc('yellow', '300');
- }
- &.marker-pink {
- background-color: mc('pink', '300');
- }
- &.marker-green {
- background-color: mc('green', '300');
- }
- }
- .mention {
- background-color: rgba(153, 0, 48, .1);
- color: #990030;
- @at-root .theme--dark & {
- color: mc('pink', '500');
- }
- }
- }
- // ---------------------------------
- // COMMENTS
- // ---------------------------------
- .comments {
- &-container {
- border-radius: 7px;
- }
- &-header {
- color: #FFF;
- padding: 8px 20px;
- font-size: 16px;
- font-weight: 500;
- background-color: mc('blue-grey', '500');
- border-radius: 7px 7px 0 0;
- @at-root .theme--dark & {
- background-color: lighten(mc('blue-grey', '900'), 5%);
- }
- }
- &-main {
- background-color: mc('blue-grey', '50');
- border-radius: 0 0 7px 7px;
- padding: 20px;
- @at-root .theme--dark & {
- background-color: darken(mc('grey', '900'), 5%);
- }
- }
- }
- // ---------------
- // RTL FIXES
- // Vuetify GH Issue: https://github.com/vuetifyjs/vuetify/issues/6317
- // ---------------
- .is-rtl {
- .page-col-content.is-page-header {
- @each $size, $width in $grid-breakpoints {
- @media (min-width: $width) {
- @for $n from 0 through 12 {
- &.offset-#{$size}-#{$n} {
- margin-left: 0;
- margin-right: ($n / 12 * 100) * 1%;
- }
- }
- }
- }
- }
- }
- // ---------------
- // PRINT OVERRIDES
- // ---------------
- @media print {
- .nav-header,
- .v-navigation-drawer,
- .v-btn--fab,
- .page-col-sd,
- .v-tooltip__content
- {
- display: none !important;
- }
- .layout {
- display: block !important;
- }
- .page-col-content {
- flex-basis: 100% !important;
- flex-grow: 1 !important;
- max-width: 100% !important;
- margin-left: 0 !important;
- > .v-toolbar {
- border: 1px solid mc('grey', '300') !important;
- border-radius: 7px !important;
- & + .v-divider {
- display: none !important;
- }
- }
- }
- .v-main {
- padding: 0 !important;
- font-size: 14px;
- background-color: #FFF;
- }
- .v-main .contents {
- color: #000;
- background-color: #FFF;
- @at-root .theme--dark & {
- color: #000;
- }
- .prismjs{
- box-shadow: none;
- background-color: #FFF;
- @at-root .theme--dark & {
- background-color: #FFF;
- }
- > code {
- color: #000;
- box-shadow: none;
- text-shadow: none;
- }
- }
- }
- .comments-container {
- display: none;
- }
- .page-edit-shortcuts {
- display: none;
- }
- }
|