src/pyams_skin/resources/less/graphs.less
changeset 566 a1707c607eec
parent 565 318533413200
child 567 bca1726b1d85
equal deleted inserted replaced
565:318533413200 566:a1707c607eec
     1 /*
       
     2  * Graphs
       
     3  */
       
     4 
       
     5 .chart {
       
     6 	height: 220px;
       
     7 	margin: 20px 5px 10px 10px;
       
     8 }
       
     9 
       
    10 .chart-small {
       
    11 	height: 100px;
       
    12 	width: 100%;
       
    13 }
       
    14 
       
    15 .chart-large {
       
    16 	height: 235px;
       
    17 	width: 100%;
       
    18 }
       
    19 
       
    20 .chart-xl {
       
    21 	height: 297px;
       
    22 	width: 100%;
       
    23 }
       
    24 
       
    25 #flotTip {
       
    26 	padding: 3px 5px;
       
    27 	background-color: #fff;
       
    28 	z-index: 9999;
       
    29 	color: #333;
       
    30 	-webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, .1);
       
    31 	box-shadow: 0 1px 8px rgba(0, 0, 0, .1);
       
    32 	font-size: 14px;
       
    33 	border: 1px solid #C1C1C1;
       
    34 	-khtml-border-radius: 4px;
       
    35 	border-radius: 4px;
       
    36 
       
    37 	span {
       
    38 		color: #38812D;
       
    39 		font-weight: 700;
       
    40 	}
       
    41 }
       
    42 
       
    43 .has-legend {
       
    44 	margin-top: 30px!important;
       
    45 
       
    46 	&-unique {
       
    47 		margin-top: 19px!important;
       
    48 	}
       
    49 }
       
    50 
       
    51 .legendLabel span {
       
    52 	display: block;
       
    53 	margin: 0 5px;
       
    54 }
       
    55 .legendColorBox {
       
    56 	padding-left: 10px;
       
    57 	vertical-align: top;
       
    58 	padding-top: 5px;
       
    59 
       
    60 	div >div {
       
    61 		width: 4px;
       
    62 		height: 4px;
       
    63 		border-radius: 50%;
       
    64 		box-sizing: content-box;
       
    65 		-moz-box-sizing: content-box;
       
    66 		-webkit-box-sizing: content-box;
       
    67 	}
       
    68 }
       
    69 
       
    70 .morris-hover {
       
    71 	position: absolute;
       
    72 	z-index: 1001;
       
    73 
       
    74 	&.morris-default-style {
       
    75 		border-radius: 10px;
       
    76 		padding: 6px;
       
    77 		color: #666;
       
    78 		background: rgba(255, 255, 255, .8);
       
    79 		border: solid 2px rgba(230, 230, 230, .8);
       
    80 		font-family: Ubuntu, sans-serif;
       
    81 		font-size: 12px;
       
    82 		text-align: center;
       
    83 
       
    84 		.morris-hover-row-label {
       
    85 			font-weight: 700;
       
    86 			margin: .25em 0;
       
    87 		}
       
    88 		.morris-hover-point {
       
    89 			white-space: nowrap;
       
    90 			margin: .1em 0;
       
    91 		}
       
    92 	}
       
    93 }
       
    94 
       
    95 .easyPieChart {
       
    96 	position: relative;
       
    97 	text-align: center;
       
    98 
       
    99 	canvas {
       
   100 		position: absolute;
       
   101 		top: 0;
       
   102 		left: 0;
       
   103 	}
       
   104 }
       
   105 .easy-pie-chart {
       
   106 	display: inline-block;
       
   107 
       
   108 	.percent {
       
   109 		color: #444;
       
   110 		font-size: 12px;
       
   111 		font-weight: 700;
       
   112 	}
       
   113 }
       
   114 .easy-pie-title {
       
   115 	display: inline-block;
       
   116 	margin: 10px 6px 0;
       
   117 	font-size: 12px;
       
   118 	font-weight: 400;
       
   119 	text-transform: uppercase;
       
   120 	width: 100px;
       
   121 	height: 19px;
       
   122 	text-overflow: ellipsis;
       
   123 	white-space: nowrap;
       
   124 	overflow: hidden;
       
   125 
       
   126 	.icon-color-bad,
       
   127 	.icon-color-good {
       
   128 		font-size: 18px;
       
   129 	}
       
   130 }
       
   131 
       
   132 
       
   133 .show-stat-buttons {
       
   134 	float: left;
       
   135 	width: 100%;
       
   136 
       
   137 	@media (max-width:767px) {
       
   138 		padding-left: 10px!important;
       
   139 		padding-right: 10px!important;
       
   140 	}
       
   141 	@media only screen and (min-width:0) and (max-width:679px) {
       
   142 		padding-left: 10px!important;
       
   143 		padding-right: 10px!important;
       
   144 	}
       
   145 	@media only screen and (min-width:320px) and (max-width:479px) {
       
   146 		padding-left: 10px!important;
       
   147 		padding-right: 10px!important;
       
   148 	}
       
   149 }
       
   150 
       
   151 .show-stats {
       
   152 	padding-top: 6px!important;
       
   153 
       
   154 	.progress {
       
   155 		height: 7px;
       
   156 		border-radius: 0;
       
   157 		margin-top: 3px;
       
   158 		margin-bottom: 15px;
       
   159 	}
       
   160 	.show-stat-buttons {
       
   161 		>:first-child {
       
   162 			padding-right: 5px;
       
   163 
       
   164 			@media (max-width:979px) {
       
   165 				padding-right: 13px;
       
   166 			}
       
   167 		}
       
   168 		>:last-child {
       
   169 			padding-left: 5px;
       
   170 
       
   171 			@media (max-width:979px) {
       
   172 				padding-left: 13px;
       
   173 			}
       
   174 		}
       
   175 	}
       
   176 }
       
   177 
       
   178 .show-stat-microcharts {
       
   179 	margin-left: -10px;
       
   180 	margin-right: -10px;
       
   181 
       
   182 	>div {
       
   183 		border-right: 1px solid #DADADA!important;
       
   184 		border-top: 1px solid #DADADA!important;
       
   185 		margin-top: 10px!important;
       
   186 		height: 65px;
       
   187 		overflow: hidden;
       
   188 		padding: 7px 9px;
       
   189 
       
   190 		@media (max-width:767px) {
       
   191 			margin-top: 0!important;
       
   192 			border-right: 0!important;
       
   193 		}
       
   194 		@media only screen and (min-width:0) and (max-width:679px) {
       
   195 			margin-top: 0!important;
       
   196 			border-right: 0!important;
       
   197 		}
       
   198 		@media only screen and (min-width:320px) and (max-width:479px) {
       
   199 			margin-top: 0!important;
       
   200 			border-right: 0!important;
       
   201 		}
       
   202 	}
       
   203 	>:last-child {
       
   204 		border-right: 0!important;
       
   205 	}
       
   206 	.sparkline {
       
   207 		margin-top: 10px;
       
   208 		margin-right: 8px;
       
   209 		opacity: .7;
       
   210 
       
   211 		&:hover {
       
   212 			opacity: 1;
       
   213 		}
       
   214 	}
       
   215 }
       
   216 
       
   217 .smaller-stat {
       
   218 	margin: 0;
       
   219 	padding: 0;
       
   220 	list-style: none;
       
   221 
       
   222 	li {
       
   223 		margin-top: 3px;
       
   224 		margin-right: 0;
       
   225 
       
   226 		&:first-child {
       
   227 			margin-top: 8px;
       
   228 		}
       
   229 	}
       
   230 	span.label {
       
   231 		width: 40px;
       
   232 		display: block;
       
   233 		text-align: left;
       
   234 		opacity: .5;
       
   235 		cursor: default;
       
   236 
       
   237 		&:hover {
       
   238 			opacity: 1;
       
   239 		}
       
   240 	}
       
   241 }
       
   242 
       
   243 .jvectormap {
       
   244 	&-label {
       
   245 		position: absolute;
       
   246 		display: none;
       
   247 		border: solid 1px #CDCDCD;
       
   248 		border-radius: 3px;
       
   249 		background: #292929;
       
   250 		color: #fff;
       
   251 		font-family: Ubuntu, sans-serif, Verdana;
       
   252 		font-size: smaller;
       
   253 		padding: 3px;
       
   254 	}
       
   255 	&-zoomin {
       
   256 		top: 0;
       
   257 	}
       
   258 	&-zoomout {
       
   259 		top: 24px;
       
   260 	}
       
   261 	&-zoomin,
       
   262 	&-zoomout {
       
   263 		position: absolute;
       
   264 		background: #292929;
       
   265 		padding: 4px;
       
   266 		width: 22px;
       
   267 		height: 22px;
       
   268 		cursor: pointer;
       
   269 		line-height: 10px;
       
   270 		text-align: center;
       
   271 		font-size: 14px;
       
   272 		border-radius: 2px;
       
   273 		box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .05);
       
   274 		-webkit-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .05);
       
   275 		background-color: #fff;
       
   276 		border: 1px solid #bfbfbf;
       
   277 
       
   278 		&:hover {
       
   279 			background: #eee;
       
   280 			border-color: #d9d9d9;
       
   281 		}
       
   282 	}
       
   283 }
       
   284 .vector-map {
       
   285 	height: 300px;
       
   286 	width: 100%;
       
   287 	padding: 10px;
       
   288 }