This commit is contained in:
Jeff Bryner 2019-03-01 16:07:30 -08:00
Родитель b4a588aba6
Коммит 91b2b21c95
1 изменённых файлов: 153 добавлений и 39 удалений

Просмотреть файл

@ -5,17 +5,28 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2014 Mozilla Corporation Copyright (c) 2014 Mozilla Corporation
*/ */
/*base css */ /* variables */
:root {
--bg-primary-color: rgba(255,255,255,.5);
--bg-secondary-color: #444444;
--txt-primary-color: #000;
--txt-secondary-color: #fff;
--txt-shadow-color: #aaa;
--txt-highlight-color: rgba(165, 170, 172, 0.904);
--a-link-color: rgb(245, 222, 179);
--row-color-odd: rgba(30,87,153,.1);
--row-color-even: #636c85;
}
html{ html{
background: none; background: none;
min-height: 100%; min-height: 100%;
} }
body{ body{
/*gradient*/ background: var(--bg-primary-color);
background: rgba(255,255,255,1);
padding: 0; padding: 0;
color: #fff; color: var(--txt-primary-color);
line-height: normal; line-height: normal;
text-align: left; text-align: left;
} }
@ -23,20 +34,20 @@ body{
/*mozdef custom */ /*mozdef custom */
.upperwhite { .upperwhite {
color: #000; color: var(--txt-secondary-color);
text-transform: uppercase; text-transform: uppercase;
} }
caption, legend { caption, legend {
color: #000; color: var(--txt-secondary-color);;
} }
.shadow { .shadow {
text-shadow: #FFF .7px .7px .7px; text-shadow: var(--txt-shadow-color) .7px .7px .7px;
} }
.ipaddress { .ipaddress {
color: #000; color:var(--txt-primary-color);
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
@ -58,7 +69,7 @@ caption, legend {
} }
#bottom-toolbar { #bottom-toolbar {
background: #444444; background: var(--bg-secondary-color);
width: 100%; width: 100%;
height: 40px; height: 40px;
padding-left: 5px; padding-left: 5px;
@ -67,7 +78,7 @@ caption, legend {
bottom: 0; bottom: 0;
z-index: 2; z-index: 2;
font-size: 13px; font-size: 13px;
color: #000; color: var(--txt-secondary-color);
} }
#bottom-toolbar .button { #bottom-toolbar .button {
@ -124,7 +135,7 @@ caption, legend {
} }
.attackercallout .blockip{ .attackercallout .blockip{
color: #FFF; color: var(--txt-primary-color);;
text-transform: uppercase; text-transform: uppercase;
margin-top: 20px; margin-top: 20px;
} }
@ -182,17 +193,40 @@ caption, legend {
} }
.alert-row a{ .alert-row a{
color: wheat; color: var(--a-link-color);
} }
.row { .row {
color: black; color: var(--txt-primary-color);
} }
.modal-body .row { .modal-body .row {
color: black; color: var(--txt-secondary-color);
} }
/* incident/investigation styles */
.daterangepicker, .daterangepicker td {
color: var(--txt-secondary-color);
}
.tabcontent {
display: none;
}
.tabcontent.active {
display: block;
}
textarea {
overflow: auto;
vertical-align: top;
/* Improves readability, alignment */
}
/*bootstrap overrides*/ /*bootstrap overrides*/
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
color: var(--txt-secondary-color);
}
.btn { .btn {
border: 1px outset; border: 1px outset;
@ -204,6 +238,9 @@ input[type="search"] {
border-radius: 15px; border-radius: 15px;
} }
.modal-body label {
color: var(--txt-primary-color);
}
[class*="span"].centerspan { [class*="span"].centerspan {
margin: 0 auto; margin: 0 auto;
@ -217,19 +254,18 @@ input[type="search"] {
.table-striped tbody > tr:nth-child(odd) > td, .table-striped tbody > tr:nth-child(odd) > td,
.table-striped tbody > tr:nth-child(odd) > th { .table-striped tbody > tr:nth-child(odd) > th {
background-color: rgba(30,87,153,.7); background-color: var(--row-color-odd);
} }
.table-hover tbody tr:hover > td, .table-hover tbody tr:hover > td,
.table-hover tbody tr:hover > th { .table-hover tbody tr:hover > th {
background-color: rgba(30,87,153,.5); background-color: var(--txt-highlight-color);
} }
td{ td{
color:black; color: var(--txt-primary-color);
} }
.welcome { .welcome {
text-align: center; text-align: center;
} }
@ -242,25 +278,6 @@ td{
color: lightblue; color: lightblue;
} }
/* uncomment this login ui css to hide the local account/password signup options
.logins-wrapper .svgtextlabel {
font-size: 20px;
color: white;
}
.loginButtons {
text-align: right;
color:white;
}
.login-password-form{
display:none;
}
.or {
display: none;
}
*/
/* don't float the 'create account' link*/ /* don't float the 'create account' link*/
#login-buttons #signup-link{ #login-buttons #signup-link{
float: none; float: none;
@ -310,8 +327,8 @@ circle:hover{
} }
#header a.mozdef{ #header a.mozdef{
color:black; color: var(--txt-primary-color);
text-shadow: #aaa 3px 2px 2px; text-shadow: var(--txt-shadow-color) 3px 2px 2px;
text-align: center; text-align: center;
font-size: large; font-size: large;
margin-top: -.25em; margin-top: -.25em;
@ -327,6 +344,103 @@ circle:hover{
margin:.5em; margin:.5em;
} }
/* attacker side nav pull out styling */
/* http://www.sitepoint.com/css3-sliding-menu/ */
sidenav
{
position: fixed;
left: -25em;
top: 0;
bottom: 0;
background-color: var(--bg-secondary-color);
border-right: 15px solid #765;
box-shadow: 4px 0 5px rgba(0,0,0,0.2);
z-index: 1;
text-align: left;
font-weight: bolder;
display: inline-block;
height: 100%;
margin: 0em;
line-height: normal;
}
/*pull out triangle */
sidenav:after
{
position: absolute;
content: ' ';
width: 0;
height: 0;
right: -75px;
top: 50%;
border-width: 30px 30px;
border-style: solid;
border-color: transparent transparent transparent #765;
}
sidenav ul
{
width: 14em;
list-style-type: none;
margin: auto;
padding: 1em;
}
sidenav div{
margin:auto;
}
sidenav:hover
{
left: 0;
}
sidenav .filters-col .row {
margin-top: 45px;
padding: 0 0.5em;
}
sidenav .reset-filter {
text-align: center;
margin-top: 20px;
}
sidenav
{
-webkit-transition: all 400ms ease;
-moz-transition: all 400ms ease;
-ms-transition: all 400ms ease;
-o-transition: all 400ms ease;
transition: all 400ms ease;
}
/*veris tag styling*/
.veristagform{
padding: 10px;
font-size: 95%;
background: #999;
color: var(--txt-primary-color);
}
.veristagform .dropdown {
margin: 10px 0;
}
.tag{
cursor: pointer;
text-align: left;
word-wrap: break-word;
}
.veristagform li {
cursor: pointer;
color: var(--txt-primary-color);
}
.veristagform .label{
cursor: pointer;
}
/*menu styling*/ /*menu styling*/
#nav-main { #nav-main {
text-align: left; text-align: left;