summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/files.scss
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-12 15:00:04 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-12 15:00:04 +0200
commitbdd477a0f800328a527f2fad92d1303441689341 (patch)
tree11ca099bfb89ce81cd6cf88e8a92dd874b79b55d /app/assets/stylesheets/framework/files.scss
parentcba6d62323eba2286f78e8aea12a5ecd26903728 (diff)
downloadgitlab-ce-bdd477a0f800328a527f2fad92d1303441689341.tar.gz
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/files.scss')
-rw-r--r--app/assets/stylesheets/framework/files.scss171
1 files changed, 171 insertions, 0 deletions
diff --git a/app/assets/stylesheets/framework/files.scss b/app/assets/stylesheets/framework/files.scss
new file mode 100644
index 00000000000..9dd77747884
--- /dev/null
+++ b/app/assets/stylesheets/framework/files.scss
@@ -0,0 +1,171 @@
+/**
+ * File content holder
+ *
+ */
+.file-holder {
+ margin-left: -$gl-padding;
+ margin-right: -$gl-padding;
+ border: none;
+ border-top: 1px solid #E7E9EE;
+ border-bottom: 1px solid #E7E9EE;
+ margin-bottom: 1em;
+
+ table {
+ @extend .table;
+ }
+
+ .file-title {
+ position: relative;
+ background: $background-color;
+ border-bottom: 1px solid $border-color;
+ text-shadow: 0 1px 1px #fff;
+ margin: 0;
+ text-align: left;
+ padding: 10px 15px;
+
+ .file-actions {
+ float: right;
+ position: absolute;
+ top: 5px;
+ right: 15px;
+
+ .btn {
+ padding: 0px 10px;
+ font-size: 13px;
+ line-height: 28px;
+ }
+ }
+
+ .left-options {
+ margin-top: -3px;
+ }
+ }
+ .file-content {
+ background: #fff;
+
+ &.image_file {
+ background: #eee;
+ text-align: center;
+ img {
+ padding: 100px;
+ max-width: 50%;
+ }
+ }
+
+ &.wiki {
+ padding: $gl-padding;
+
+ .highlight {
+ margin-bottom: 9px;
+
+ > pre {
+ margin: 0;
+ }
+ }
+ }
+
+ &.blob_file {
+
+ }
+
+ &.blob-no-preview {
+ background: #eee;
+ text-shadow: 0 1px 2px #FFF;
+ padding: 100px 0;
+ }
+
+ /**
+ * Blame file
+ */
+ &.blame {
+ table {
+ border: none;
+ box-shadow: none;
+ margin: 0;
+ }
+ tr {
+ border-bottom: 1px solid #eee;
+ }
+ td {
+ &:first-child {
+ border-left: none;
+ }
+ &:last-child {
+ border-right: none;
+ }
+ background: #fff;
+ padding: 10px $gl-padding;
+ }
+ .lines {
+ pre {
+ padding: 0;
+ margin: 0;
+ background: none;
+ border: none;
+ }
+ }
+ img.avatar {
+ border: 0 none;
+ float: none;
+ margin: 0;
+ padding: 0;
+ }
+ td.blame-commit {
+ background: #f9f9f9;
+ min-width: 350px;
+
+ .commit-author-link {
+ color: #888;
+ }
+ }
+ td.blame-numbers {
+ pre {
+ color: #AAA;
+ white-space: pre;
+ }
+ background: #f1f1f1;
+ border-left: 1px solid #DDD;
+ }
+ td.lines {
+ code {
+ font-family: $monospace_font;
+ }
+ }
+ }
+
+ &.logs {
+ background: #eee;
+ max-height: 700px;
+ overflow-y: auto;
+
+ ol {
+ margin-left: 40px;
+ padding: 10px 0;
+ border-left: 1px solid $border-color;
+ margin-bottom: 0;
+ background: white;
+ li {
+ color: #888;
+ p {
+ margin: 0;
+ color: #333;
+ line-height: 24px;
+ padding-left: 10px;
+ }
+
+ &:hover {
+ background: $hover;
+ }
+ }
+ }
+ }
+
+ /**
+ * Code file
+ */
+ &.code {
+ padding: 0;
+ }
+ }
+}
+