Added code tags
This commit is contained in:
parent
7a73b09437
commit
0d197a9267
|
@ -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>
|
||||
|
|
2
public/dist/styles/default-ltr.css
vendored
2
public/dist/styles/default-ltr.css
vendored
File diff suppressed because one or more lines are too long
2
public/dist/styles/default-rtl.css
vendored
2
public/dist/styles/default-rtl.css
vendored
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue