summaryrefslogtreecommitdiff
path: root/public-src/jarmon-style/style.scss
blob: 5f8f8f8c399016543a290b49fad8a7c8775a94c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
.jarmon {
	.chartRangeControl {
		.range-inputs {
			display: flex;
			flex-direction: row;
			align-items: center;
			& > * {
				width: 20%;
				margin: 1px;
				padding: 0;
				border: solid 1px #666;
				border-radius: 2px;
				&[type="button"] {
					width: auto;
				}
				&[type="datetime-local"] {
					width: 25%;
				}
			}
		}
		.range-preview {
			height: 42px;
			width: 100%;
		}
	}

	.css-panes > div {
		padding: 0;
		padding-left: 15px;
	}

	h2 {
		margin: 0;
		font-size: 100%;
		text-align: center;
	}

	.tabbed-chart-interface {
		.css-panes {
			& > div {
				overflow-x: hidden;
			}
		}
		.chart-container {
			&.loading .title {
				background-repeat: no-repeat;
				background-position: 0 50%;
				background-image: url(loading.gif);
			}

			.chart {
				height: 125px;
				width: 100%;
				margin: 0 auto 0 auto;
				clear: both;
				
				.tickLabel, /* flot 0.7 */
				.tick-label /* flot 0.8 */
				{
					overflow:hidden;
				}

				.yaxisUnitLabel {
					/* Y */
					position: absolute;
					top: 50%;
					/* In this translateY, the 75% is: 50% for the `top:50%` overshooting
					 * by our `height/2`; the additional 25% accounts
					 * for 1 line-height being chopped off the bottom
					 * of the graph for the x-axis labels. */
					transform: translateY(-75%);

					/* X */
					width: 100px;
					margin-left: -100px;
					text-align: right;

					/* styling */
					padding: 2px;

					/* rotate */
					transform: rotate(-90deg);
					width: 0;
					margin-left: -10px;
				}
			}

			.graph-legend {
				width: 100%;
				padding: 2px 0;
				margin: 2px auto 0;
				background-color: #f7f7f7;

				.legendItem {
					float: left;
					cursor: pointer;
					margin-right: 20px;
					margin-top: 5px;
					margin-left: 5px;

					.legendColorBox {
						float: left;
						margin-right: 5px;
					}

					&.disabled {
						text-decoration: line-through;
					}
				}
			}
		}
	}
}