1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

Added code tags

This commit is contained in:
eldadfux 2019-10-26 01:44:33 +03:00
parent 7a73b09437
commit 0d197a9267
6 changed files with 82 additions and 4 deletions

View file

@ -180,7 +180,7 @@ $graph = $this->getParam('graph', false);
<p>After adding your new website, install our JS SDK to integrate with your code and read our <a href="/docs/getting-started-for-web" target="_blank">getting started</a> tutorial.</p>
<div class="margin-bottom-no ide">
<div class="margin-bottom-no ide" data-lang="js">
<pre class="line-numbers"><code class="prism language-bash" data-prism>npm install appwrite</code></pre>
</div>
</div>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -43,6 +43,14 @@
border-right: solid @value @config-color-fade-light;
}
.func-border-radius-start(@value) {
border-radius: @value 0 0 @value;
}
.func-border-radius-end(@value) {
border-radius: 0 @value @value 0;
}
.pull-start {
float: left;
}

View file

@ -43,6 +43,14 @@
border-left: solid @value @config-color-fade-light;
}
.func-border-radius-start(@value) {
border-radius: 0 @value @value 0;
}
.func-border-radius-end(@value) {
border-radius: @value 0 0 @value;
}
.pull-start {
float: right;
}

View file

@ -8,13 +8,67 @@ https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clik
.ide {
background-color: #373738;
overflow: hidden;
overflow: inherit;
position: relative;
z-index: 1;
box-shadow: 0 2px 4px 0 rgba(50,50,93,.3);
border-radius: 10px;
margin-bottom: 30px;
&[data-lang]::after {
content: attr(data-lang);
display: inline-block;
background: #ffffff;
color: #000000;
position: absolute;
top: 0;
padding: 5px 10px;
border-radius: 0 0 10px 10px;
font-size: 12px;
font-weight: 600;
.func-end(60px);
}
&[data-lang="bash"]::after {
background: #2b2626;
color: #fff;
}
&[data-lang="js"]::after {
background: #edd90a;
color: #333232;
}
&[data-lang="php"]::after {
background: #6182bb;
color: #ffffff;
}
&[data-lang="node.js"]::after {
background: #8cc500;
color: #666861;
}
&[data-lang="ruby"]::after {
background: #e61521;
color: #ffffff;
}
&[data-lang="python"]::after {
background: #3873a2;
color: #ffffff;
}
&[data-lang="go"]::after {
background: #00add8;
color: #ffffff;
}
&[data-lang="dart"]::after {
background: #035698;
color: #2bb1f0;
}
.tag {
color: inherit!important;
background: transparent!important;
@ -34,6 +88,14 @@ https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clik
border: solid 2px #414142;
}
.line-numbers {
overflow: inherit;
.line-numbers-rows {
.func-border-radius-start(10px);
}
}
pre {
-webkit-hyphens: none;
-moz-hyphens: none;