Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-12 16:00:04 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-12 16:00:04 +0300
commitbdd477a0f800328a527f2fad92d1303441689341 (patch)
tree11ca099bfb89ce81cd6cf88e8a92dd874b79b55d /app/assets/stylesheets/framework/highlight.scss
parentcba6d62323eba2286f78e8aea12a5ecd26903728 (diff)
Re-organize GitLab css into 2 directories: framework and page specific css
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/assets/stylesheets/framework/highlight.scss')
-rw-r--r--app/assets/stylesheets/framework/highlight.scss70
1 files changed, 70 insertions, 0 deletions
diff --git a/app/assets/stylesheets/framework/highlight.scss b/app/assets/stylesheets/framework/highlight.scss
new file mode 100644
index 00000000000..2e13ee842e0
--- /dev/null
+++ b/app/assets/stylesheets/framework/highlight.scss
@@ -0,0 +1,70 @@
+.file-content.code {
+ border: none;
+ box-shadow: none;
+ margin: 0px;
+ padding: 0px;
+ table-layout: fixed;
+
+ pre {
+ padding: 10px;
+ border: none;
+ border-radius: 0;
+ font-family: $monospace_font;
+ font-size: $code_font_size !important;
+ line-height: $code_line_height !important;
+ margin: 0;
+ overflow: auto;
+ overflow-y: hidden;
+ white-space: pre;
+ word-wrap: normal;
+
+ code {
+ font-family: $monospace_font;
+ white-space: pre;
+ word-wrap: normal;
+ padding: 0;
+
+ .line {
+ display: inline;
+ }
+ }
+ }
+
+ .line-numbers {
+ padding: 10px;
+ text-align: right;
+ float: left;
+
+ a {
+ font-family: $monospace_font;
+ display: block;
+ font-size: $code_font_size !important;
+ line-height: $code_line_height !important;
+ white-space: nowrap;
+
+ i {
+ visibility: hidden;
+ @extend .pull-left;
+ }
+
+ &:hover i {
+ visibility: visible;
+ }
+ }
+ }
+}
+
+.note-text .code {
+ border: none;
+ box-shadow: none;
+ background: $background-color;
+ padding: 1em;
+ overflow-x: auto;
+
+ code {
+ font-family: $monospace_font;
+ white-space: pre;
+ word-wrap: normal;
+ padding: 0;
+ }
+}