1
0
mirror of https://github.com/lrsjng/h5ai.git synced 2025-08-15 10:24:01 +02:00

Clean styles.

This commit is contained in:
Lars Jung
2015-04-26 02:59:49 +02:00
parent b90b164552
commit 0a4fd4ee2c
14 changed files with 66 additions and 68 deletions

View File

@@ -1,16 +1,19 @@
@col-blue-200: #90caf9;
@col-blue-400: #42a5f5; @col-blue-400: #42a5f5;
@col-blue-500: #2196F3; @col-green-500: #4caf50;
@col-blue-700: #1976D2; @col-red-500: #f44336;
@col-blue-900: #0D47A1;
@col-green: #4caf50;
@col-red: #f44336;
@col-pink-a200: #ff4081; @col-pink-a200: #ff4081;
@col-light: #ffffff; @col-white: #ffffff;
@col-lightgray: #fafafa; @col-grey-50: #fafafa;
@col-darkgray: #f3f3f3; @col-grey-100: #f5f5f5;
@col-dark: #212121; @col-grey-300: #e0e0e0;
@col-grey-700: #616161;
@col-grey-900: #212121;
@col-light: @col-white;
@col-lightgrey: @col-grey-50;
@col-darkgrey: @col-grey-100;
@col-dark: @col-grey-900;
@col-text-primary-black: rgba(0,0,0,0.87); @col-text-primary-black: rgba(0,0,0,0.87);
@col-text-secondary-black: rgba(0,0,0,0.54); @col-text-secondary-black: rgba(0,0,0,0.54);
@@ -25,13 +28,11 @@
@col-text-selected: @col-text-primary-white; @col-text-selected: @col-text-primary-white;
@col-back-selected: @col-blue-400; @col-back-selected: @col-blue-400;
@col-text-highlight: #111111;
@col-font-light: @col-light; @col-font-light: @col-light;
@col-font-dark: @col-dark; @col-font-dark: @col-dark;
@col-back-light: @col-lightgray; @col-back-light: @col-lightgrey;
@col-back-dark: @col-darkgray; @col-back-dark: @col-darkgrey;
@col: @col-text-primary-black; @col: @col-text-primary-black;
@col-back: @col-back-dark; @col-back: @col-back-dark;
@@ -40,17 +41,10 @@
@col-border-strong: rgba(0,0,0,0.15); @col-border-strong: rgba(0,0,0,0.15);
@col-border-stronger: rgba(0,0,0,0.3); @col-border-stronger: rgba(0,0,0,0.3);
@col-okay: @col-green; @col-okay: @col-green-500;
@col-error: @col-red; @col-error: @col-red-500;
@col-link: @col-blue-400; @col-link: @col-blue-400;
@col-link-hover: @col-blue-400;
@col-widget-back: rgb(245,245,245); @col-range-back: @col-grey-300;
@col-widget-back-highlight: rgba(255,255,255,0.8); @col-range-thumb: @col-grey-700;
@col-widget-back-hover: rgba(255,255,255,0.8);
@col-widget-back-sel: rgba(255,255,255,0.8);
@col-widget-sep: @col-border;
@col-range-back: rgb(224,224,224);
@col-range-thumb: #555;

View File

@@ -63,7 +63,7 @@
overflow: hidden; overflow: hidden;
box-shadow: 0 0 8px 0 rgba(0,0,0,0.2); box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);
text-align: right; text-align: right;
background: @col-lightgray; background: @col-lightgrey;
a, a:active, a:visited { a, a:active, a:visited {
display: inline-block; display: inline-block;

View File

@@ -5,8 +5,8 @@
margin-left: -100px; margin-left: -100px;
z-index: 100; z-index: 100;
padding: 3px 6px 6px 6px; padding: 3px 6px 6px 6px;
color: #fff; color: @col-light;
background-color: rgba(0, 0, 0, 0.2); background: rgba(0,0,0,0.2);
border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px;
text-align: center; text-align: center;
} }

View File

@@ -13,7 +13,7 @@
border-radius: 4px; border-radius: 4px;
font-family: @font-family-mono; font-family: @font-family-mono;
letter-spacing: 0.05em; letter-spacing: 0.05em;
background-color: @col-widget-back; background: @col-lightgrey;
border: 1px solid @col-border; border: 1px solid @col-border;
font-size: 0.9em; font-size: 0.9em;
} }

View File

@@ -10,7 +10,7 @@
align-content: flex-start; align-content: flex-start;
align-items: stretch; align-items: stretch;
background: @col-lightgray; background: @col-lightgrey;
box-shadow: 0 0 8px 0 rgba(0,0,0,0.2); box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);
z-index: 1; z-index: 1;
} }

View File

@@ -27,7 +27,7 @@
&:hover { &:hover {
color: @col-hover; color: @col-hover;
background: @col-lightgray; background: @col-lightgrey;
border-color: @col-border; border-color: @col-border;
.selector { .selector {

View File

@@ -40,7 +40,7 @@
&:hover { &:hover {
color: @col-hover; color: @col-hover;
background: @col-darkgray; background: @col-darkgrey;
} }
.cm-icon { .cm-icon {

View File

@@ -12,7 +12,6 @@
&.active { &.active {
font-weight: bold; font-weight: bold;
color: @col-text-highlight;
} }
&:hover { &:hover {
color: @col-hover; color: @col-hover;

View File

@@ -9,7 +9,7 @@
cursor: pointer; cursor: pointer;
&:hover { &:hover {
color: #000; color: @col-dark;
} }
} }

View File

@@ -2,6 +2,6 @@
display: none; display: none;
&.failed { &.failed {
background-color: @col-error; background: @col-error;
} }
} }

View File

@@ -1,7 +1,7 @@
#pv-txt-text { #pv-txt-text {
max-width: 960px; max-width: 960px;
text-align: left; text-align: left;
background-color: #fff; background: #fff;
margin: 0 auto; margin: 0 auto;
padding: 8px; padding: 8px;
overflow: auto; overflow: auto;

View File

@@ -7,14 +7,14 @@
bottom: 0; bottom: 0;
z-index: 100; z-index: 100;
background-color: rgba(0,0,0,0.5); background: rgba(0,0,0,0.5);
transition: background-color 0.3s ease-in-out; transition: background-color 0.3s ease-in-out;
text-align: center; text-align: center;
} }
#pv-overlay.fullscreen { #pv-overlay.fullscreen {
background-color: #111; background: #111;
} }
#pv-content { #pv-content {
@@ -58,7 +58,7 @@
&:hover { &:hover {
img { img {
opacity: 1; opacity: 1;
background-color: rgba(27,27,27,0.8); background: rgba(27,27,27,0.8);
box-shadow: 0 0 8px 2px rgba(0,0,0,0.3); box-shadow: 0 0 8px 2px rgba(0,0,0,0.3);
} }
} }
@@ -112,7 +112,7 @@
&:hover { &:hover {
opacity: 1.0; opacity: 1.0;
background-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.1);
} }
} }
@@ -131,7 +131,7 @@
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background-color: rgb(27,27,27); background: rgb(27,27,27);
box-shadow: 0 0 8px 2px rgba(0,0,0,0.3); box-shadow: 0 0 8px 2px rgba(0,0,0,0.3);
height: 48px; height: 48px;
} }

View File

@@ -24,7 +24,7 @@
a[href]:after { a[href]:after {
content: "" !important; content: "" !important;
} }
#toolbar, #download, #sidebar, #tree, #info { #toolbar, #sidebar, #tree, #info {
display: none !important; display: none !important;
} }
} }

View File

@@ -1,9 +1,14 @@
@charset "utf-8"; @charset "utf-8";
@col-red: #f44336; @col-white: #ffffff;
@col-red-text: #c62828; @col-red-500: #f44336;
@col-green: #4caf50; @col-red-800: #c62828;
@col-grey: #555; @col-green-500: #4caf50;
@col-grey-200: #eeeeee;
@col-grey-800: #424242;
@col-medium: #c09853;
@col-slow: #b94a48;
#report { #report {
font-family: Roboto, Helvetica, Arial, sans-serif; font-family: Roboto, Helvetica, Arial, sans-serif;
@@ -11,9 +16,9 @@
left: 0; left: 0;
top: 0; top: 0;
right: 0; right: 0;
background: @col-grey; background: @col-grey-800;
z-index: 10000; z-index: 10000;
color: #fff; color: @col-white;
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
line-height: 32px; line-height: 32px;
@@ -22,14 +27,14 @@
a, a:active, a:visited, a:hover { a, a:active, a:visited, a:hover {
display: block; display: block;
color: #fff; color: @col-white;
text-decoration: none; text-decoration: none;
} }
&.pass { &.pass {
background: @col-green; background: @col-green-500;
} }
&.fail { &.fail {
background: @col-red; background: @col-red-500;
} }
} }
@@ -40,7 +45,7 @@
top: 32px; top: 32px;
right: 0; right: 0;
bottom: 0; bottom: 0;
background: #fff; background: @col-white;
z-index: 10000; z-index: 10000;
overflow-x: auto; overflow-x: auto;
overflow-y: scroll; overflow-y: scroll;
@@ -79,11 +84,11 @@
overflow: hidden; overflow: hidden;
&:hover { &:hover {
background: #eee; background: @col-grey-200;
} }
&.fail { &.fail {
color: @col-red-text; color: @col-red-800;
} }
&::before { &::before {
@@ -93,34 +98,34 @@
height: 10px; height: 10px;
float: left; float: left;
margin-right: 8px; margin-right: 8px;
background: @col-grey; background: @col-grey-800;
border-radius: 20px; border-radius: 20px;
position: relative; position: relative;
top: 3px; top: 3px;
} }
&.pass::before { &.pass::before {
background: @col-green; background: @col-green-500;
} }
&.fail::before { &.fail::before {
background: @col-red; background: @col-red-500;
} }
&.pending::before { &.pending::before {
background: @col-grey; background: @col-grey-800;
} }
.duration { .duration {
display: inline-block; display: inline-block;
color: @col-grey; color: @col-grey-800;
border: none; border: none;
box-shadow: none; box-shadow: none;
font-size: 9px; font-size: 9px;
margin-left: 12px; margin-left: 12px;
} }
&.medium .duration { &.medium .duration {
background: #c09853; background: @col-medium;
} }
&.slow .duration { &.slow .duration {
background: #b94a48; background: @col-slow;
} }
pre { pre {
@@ -132,10 +137,10 @@
padding: 0 8px; padding: 0 8px;
max-width: 80%; max-width: 80%;
word-wrap: break-word; word-wrap: break-word;
border-left: 2px solid @col-grey; border-left: 2px solid @col-grey-800;
&.error { &.error {
color: @col-red-text; color: @col-red-800;
} }
} }
} }
@@ -144,7 +149,7 @@
margin: 16px 0 8px 24px; margin: 16px 0 8px 24px;
> h1 { > h1 {
color: @col-grey; color: @col-grey-800;
height: 24px; height: 24px;
line-height: 24px; line-height: 24px;
font-size: 16px; font-size: 16px;
@@ -161,7 +166,7 @@
} }
a:hover { a:hover {
background: #eee; background: @col-grey-200;
cursor: pointer; cursor: pointer;
} }
@@ -169,11 +174,11 @@
font-size: 0.85em; font-size: 0.85em;
.passed { .passed {
color: @col-green; color: @col-green-500;
margin-left: 1em; margin-left: 1em;
} }
.failed { .failed {
color: @col-red; color: @col-red-500;
margin-left: 0.5em; margin-left: 0.5em;
} }
} }
@@ -190,7 +195,7 @@
top: 40px; top: 40px;
right: 20px; right: 20px;
margin: 0; margin: 0;
color: @col-grey; color: @col-grey-800;
z-index: 1; z-index: 1;
font-size: 13px; font-size: 13px;