Skip to content

Commit

Permalink
Remove sass dependency
Browse files Browse the repository at this point in the history
There's only a few hundred lines of this, might as well use CSS like all
the other files
  • Loading branch information
mlarraz authored and PragTob committed Aug 6, 2020
1 parent b1bc84a commit bdcaca2
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 260 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ end

group :development do
gem "rubocop"
gem "sass"
# sprockets 4.0 requires ruby 2.5+
gem "sprockets", "~> 3.7"
gem "uglifier"
Expand Down
25 changes: 8 additions & 17 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
PATH
remote: .
specs:
simplecov-html (0.12.2)

PATH
remote: /home/tobi/github/simplecov
GIT
remote: https://github.com/colszowka/simplecov.git
revision: 9056bd3852d0daca2221c9b0a964b8abada1c48c
specs:
simplecov (0.18.5)
docile (~> 1.1)
simplecov-html (~> 0.11)

PATH
remote: .
specs:
simplecov-html (0.12.2)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.0)
concurrent-ruby (1.1.5)
docile (1.3.2)
execjs (2.7.0)
ffi (1.12.2)
jaro_winkler (1.5.4)
minitest (5.14.0)
parallel (1.19.1)
Expand All @@ -26,9 +26,6 @@ GEM
rack (2.1.2)
rainbow (3.0.0)
rake (13.0.1)
rb-fsevent (0.10.3)
rb-inotify (0.10.1)
ffi (~> 1.0)
rubocop (0.79.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
Expand All @@ -37,11 +34,6 @@ GEM
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
ruby-progressbar (1.10.1)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand All @@ -57,7 +49,6 @@ DEPENDENCIES
minitest
rake (>= 11)
rubocop
sass
simplecov!
simplecov-html!
sprockets (~> 3.7)
Expand Down
316 changes: 316 additions & 0 deletions assets/stylesheets/screen.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,316 @@
#loading {
position: fixed;
left: 40%;
top: 50%;
}

a {
color: #333;
text-decoration: none;
}
a:hover {
color: #000;
text-decoration: underline;
}

body {
font-family: "Lucida Grande", Helvetica, "Helvetica Neue", Arial, sans-serif;
padding: 12px;
background-color: #333;
}

h1, h2, h3, h4 {
color: #1C2324;
margin: 0;
padding: 0;
margin-bottom: 12px;
}

table {
width: 100%;
}

#content {
clear: left;
background-color: white;
border: 2px solid #ddd;
border-top: 8px solid #ddd;
padding: 18px;
-webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
-moz-border-radius-topright: 5px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
border-top-right-radius: 5px;
}

.dataTables_filter, .dataTables_info {
padding: 2px 6px;
}

abbr.timeago {
text-decoration: none;
border: none;
font-weight: bold;
}

.timestamp {
float: right;
color: #ddd;
}

.group_tabs {
list-style: none;
float: left;
margin: 0;
padding: 0;
}

.group_tabs li {
display: inline;
float: left;
}
.group_tabs li a {
font-family: Helvetica, Arial, sans-serif;
display: block;
float: left;
text-decoration: none;
padding: 4px 8px;
background-color: #aaa;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#dddddd), to(#aaaaaa));
background: -moz-linear-gradient(#dddddd, #aaaaaa);
background: linear-gradient(#dddddd, #aaaaaa);
text-shadow: #e5e5e5 1px 1px 0px;
border-bottom: none;
color: #333;
font-weight: bold;
margin-right: 8px;
border-top: 1px solid #efefef;
-webkit-border-top-left-radius: 2px;
-webkit-border-top-right-radius: 2px;
-moz-border-radius-topleft: 2px;
-moz-border-radius-topright: 2px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
.group_tabs li a:hover {
background-color: #ccc;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#eeeeee), to(#aaaaaa));
background: -moz-linear-gradient(#eeeeee, #aaaaaa);
background: linear-gradient(#eeeeee, #aaaaaa);
}
.group_tabs li a:active {
padding-top: 5px;
padding-bottom: 3px;
}
.group_tabs li.active a {
color: black;
text-shadow: #fff 1px 1px 0px;
background-color: #ddd;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(white), to(#dddddd));
background: -moz-linear-gradient(white, #dddddd);
background: linear-gradient(white, #dddddd);
}

.file_list {
margin-bottom: 18px;
}

.file_list--responsive {
overflow-x: auto;
overflow-y: hidden;
}

a.src_link {
background: url("./magnify.png") no-repeat left 50%;
padding-left: 18px;
}

tr, td {
margin: 0;
padding: 0;
}

th {
white-space: nowrap;
}
th.ui-state-default {
cursor: pointer;
}
th span.ui-icon {
float: left;
}

td {
padding: 4px 8px;
}
td.strong {
font-weight: bold;
}

.cell--number {
text-align: right;
}

.source_table h3, .source_table h4 {
padding: 0;
margin: 0;
margin-bottom: 4px;
}

.source_table .header {
padding: 10px;
}

.source_table pre {
margin: 0;
padding: 0;
white-space: normal;
color: #000;
font-family: "Monaco", "Inconsolata", "Consolas", monospace;
}

.source_table code {
color: #000;
font-family: "Monaco", "Inconsolata", "Consolas", monospace;
}

.source_table pre {
background-color: #333;
}

.source_table pre ol {
margin: 0px;
padding: 0px;
margin-left: 45px;
font-size: 12px;
color: white;
}

.source_table pre li {
margin: 0px;
padding: 2px 6px;
border-left: 5px solid white;
}

.source_table pre li code {
white-space: pre;
white-space: pre-wrap;
}

.source_table pre .hits {
float: right;
margin-left: 10px;
padding: 2px 4px;
background-color: #444;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#222222), to(#666666));
background: -moz-linear-gradient(#222222, #666666);
background: linear-gradient(#222222, #666666);
color: white;
font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
font-size: 10px;
font-weight: bold;
text-align: center;
border-radius: 6px;
}

#footer {
color: #ddd;
font-size: 12px;
font-weight: bold;
margin-top: 12px;
text-align: right;
}

#footer a {
color: #eee;
text-decoration: underline;
}

#footer a:hover {
color: #fff;
text-decoration: none;
}

.green {
color: #090;
}

.red {
color: #900;
}

.yellow {
color: #da0;
}

.blue {
color: blue;
}

thead th {
background: white;
}

.source_table .covered {
border-color: #090;
}

.source_table .missed {
border-color: #900;
}

.source_table .never {
border-color: black;
}

.source_table .skipped {
border-color: #fc0;
}

.source_table .missed-branch {
border-color: #bf0000;
}

.source_table .covered:nth-child(odd) {
background-color: #CDF2CD;
}

.source_table .covered:nth-child(even) {
background-color: #DBF2DB;
}

.source_table .missed:nth-child(odd) {
background-color: #F7C0C0;
}

.source_table .missed:nth-child(even) {
background-color: #F7CFCF;
}

.source_table .never:nth-child(odd) {
background-color: #efefef;
}

.source_table .never:nth-child(even) {
background-color: #f4f4f4;
}

.source_table .skipped:nth-child(odd) {
background-color: #FBF0C0;
}

.source_table .skipped:nth-child(even) {
background-color: #FBFfCf;
}

.source_table .missed-branch:nth-child(odd) {
background-color: #cc8e8e;
}

.source_table .missed-branch:nth-child(even) {
background-color: #cc6e6e;
}
Loading

0 comments on commit bdcaca2

Please sign in to comment.