Skip to content

Commit

Permalink
tools: extract all the common styles for fast.vlang.io pages into a s…
Browse files Browse the repository at this point in the history
…eparete style.css
  • Loading branch information
spytheman committed Jan 8, 2024
1 parent 33d7843 commit f2dee66
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 57 deletions.
55 changes: 55 additions & 0 deletions cmd/tools/fast/fast_style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
*, body {
font-family: Menlo, Monospace, 'Courier New';
}
table, td, th {
border-collapse: collapse;
border: 1px solid #dfdfdf;
}
th {
background-color: lightgray;
color: black;
padding: 5px;
}
td {
padding: 5px;
position: relative;
}
table td:nth-child(3) {
width: 650px!important;
overflow: hidden;
display: block;
border: 0px;
border-bottom: 1px solid lightgray;
}
.diff {
border-radius: 2.5px;
color: #ffffff;
padding: 0 5px 0 5px;
position: absolute;
font-size: 14px;
bottom: 0px;
right: 0px;
}
.minus {
background-color: rgb(195, 74, 104);
}
.plus {
background-color: #8BC34A;
}
.equal {
background-color: rgb(113, 68, 172);
}

table {
counter-reset: rowNumber -1;
}
table tr {
counter-increment: rowNumber;
}
table tr td:first-child::after {
position: absolute;
top: -1px;
right: 0px;
content: counter(rowNumber);
font-size: 10px;
}
58 changes: 1 addition & 57 deletions cmd/tools/fast/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,63 +7,7 @@
<link rel="icon" type="image/x-icon" sizes="32x32" href="favicon_32x32.ico">
<link rel="icon" type="image/x-icon" sizes="16x16" href="favicon_16x16.ico">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<style>
*, body {
font-family: Menlo, Monospace, 'Courier New';
}
table, td, th {
border-collapse: collapse;
border: 1px solid #dfdfdf;
}
th {
background-color: lightgray;
color: black;
padding: 5px;
}
td {
padding: 5px;
position: relative;
}
table td:nth-child(3) {
width: 650px!important;
overflow: hidden;
display: block;
border: 0px;
border-bottom: 1px solid lightgray;
}
.diff {
border-radius: 2.5px;
color: #ffffff;
padding: 0 5px 0 5px;
position: absolute;
font-size: 14px;
bottom: 0px;
right: 0px;
}
.minus {
background-color: rgb(195, 74, 104);
}
.plus {
background-color: #8BC34A;
}
.equal {
background-color: rgb(113, 68, 172);
}

table {
counter-reset: rowNumber -1;
}
table tr {
counter-increment: rowNumber;
}
table tr td:first-child::after {
position: absolute;
top: -1px;
right: 0px;
content: counter(rowNumber);
font-size: 10px;
}
</style>
<link href="style.css" rel="stylesheet">
</head>
<body>
<h2><a href='/'>Is V still fast?</a></h2>
Expand Down

0 comments on commit f2dee66

Please sign in to comment.