diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-05-27 20:18:56 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-05-27 20:18:56 +0300 |
commit | 560c7feb0af8c8358bc248493df35d523e8cd3b2 (patch) | |
tree | 51a099c010697408bd08e86bdbb8da63503e17d5 | |
parent | f821c2d17eb65095a288fe72603b69e8c147d28e (diff) | |
download | gitlab-ci-560c7feb0af8c8358bc248493df35d523e8cd3b2.tar.gz |
build.scss: css to scss refactoring
-rw-r--r-- | app/assets/stylesheets/sections/builds.scss | 145 |
1 files changed, 73 insertions, 72 deletions
diff --git a/app/assets/stylesheets/sections/builds.scss b/app/assets/stylesheets/sections/builds.scss index 28a884a..55b7a0c 100644 --- a/app/assets/stylesheets/sections/builds.scss +++ b/app/assets/stylesheets/sections/builds.scss @@ -1,7 +1,7 @@ pre.trace { background: #111111; color: #fff; - font-family: 'monospace'; + font-family: $monospace_font; white-space: pre; white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ @@ -17,84 +17,85 @@ pre.trace { font-size: 24px; margin-left: 20px; } -} - -pre.trace p a::before { - content: counter(line-numbering); - counter-increment: line-numbering; - padding-right: 1em; -} -pre.trace p a { - display: inline-block; - text-align: right; - min-width: 40px; - margin-left: -33px; - cursor: pointer; - text-decoration: none; - color: #666; -} - -pre.trace p { - position: relative; - padding: 0 15px 0 55px; - margin: 0; - min-height: 16px; -} - -pre.trace .fold { - position: relative; - height: 16px; - overflow: hidden; - cursor: pointer; -} - -pre.trace .fold p:first-of-type { - background: #333 url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTAiIHdpZHRoPSIxMCI+CjxwYXRoIGQ9Im0wLjUsMS41LDQuNSw3LDQuNS03eiIgc3Ryb2tlPSIjNTU1IiBzdHJva2Utd2lkdGg9IjAuNSIgZmlsbD0iIzY2NiIvPgo8L3N2Zz4KCg==') no-repeat 8px 3px -} + .duration { + position: absolute; + z-index: 1; + display: block; + top: 2px; + right: 12px; + padding: 0px 7px 0px 7px; + line-height: 10px; + font-size: 10px; + background-color: #666; + border-radius: 6px; + color: #bbb; + } + + .fold { + position: relative; + height: 16px; + overflow: hidden; + cursor: pointer; + + p:first-of-type { + padding-right: 190px; + } + + .fold-name { + position: absolute; + z-index: 1; + display: block; + top: 2px; + right: 85px; + padding: 0px 7px 0px 7px; + line-height: 10px; + font-size: 10px; + background-color: #666; + border-radius: 6px; + color: #bbb; + } + } -pre.trace .fold:not(.open) p:first-of-type { - visibility: visible; - height: auto; - min-height: 16px; - background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTAiIHdpZHRoPSIxMCI+CjxwYXRoIGQ9Ik0yLDksOSw1LDIsMXoiIHN0cm9rZT0iIzU1NSIgc3Ryb2tlLXdpZHRoPSIwLjUiIGZpbGw9IiM2NjYiLz4KPC9zdmc+Cgo=') -} + .fold:not(.open) p:first-of-type { + visibility: visible; + height: auto; + min-height: 16px; + background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTAiIHdpZHRoPSIxMCI+CjxwYXRoIGQ9Ik0yLDksOSw1LDIsMXoiIHN0cm9rZT0iIzU1NSIgc3Ryb2tlLXdpZHRoPSIwLjUiIGZpbGw9IiM2NjYiLz4KPC9zdmc+Cgo=') + } -pre.trace .fold p:first-of-type { - padding-right: 190px; -} + .fold.open { + height: auto; + } -pre.trace .fold.open { - height: auto; -} + p:first-of-type { + background: #333 url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTAiIHdpZHRoPSIxMCI+CjxwYXRoIGQ9Im0wLjUsMS41LDQuNSw3LDQuNS03eiIgc3Ryb2tlPSIjNTU1IiBzdHJva2Utd2lkdGg9IjAuNSIgZmlsbD0iIzY2NiIvPgo8L3N2Zz4KCg==') no-repeat 8px 3px + } -pre.trace .fold .fold-name { - position: absolute; - z-index: 1; - display: block; - top: 2px; - right: 85px; - padding: 0px 7px 0px 7px; - line-height: 10px; - font-size: 10px; - background-color: #666; - border-radius: 6px; - color: #bbb; + p { + position: relative; + padding: 0 15px 0 55px; + margin: 0; + min-height: 16px; + + a::before { + content: counter(line-numbering); + counter-increment: line-numbering; + padding-right: 1em; + } + + a { + display: inline-block; + text-align: right; + min-width: 40px; + margin-left: -33px; + cursor: pointer; + text-decoration: none; + color: #666; + } + } } -pre.trace .duration { - position: absolute; - z-index: 1; - display: block; - top: 2px; - right: 12px; - padding: 0px 7px 0px 7px; - line-height: 10px; - font-size: 10px; - background-color: #666; - border-radius: 6px; - color: #bbb; -} .autoscroll-container { position: fixed; |