| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- /* historical-data.component.css */
- :host {
- display: block;
- width: 100%;
- padding: 15px;
- }
- .history-container {
- max-width: 1400px;
- margin: 0 auto;
- padding: 20px;
- background: white;
- border-radius: 8px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
- }
- .history-header {
- margin-bottom: 24px;
- padding-bottom: 16px;
- border-bottom: 1px solid #eee;
- }
- .history-header h2 {
- display: flex;
- align-items: center;
- gap: 10px;
- font-size: 24px;
- color: #2c3e50;
- }
- .filter-row {
- display: flex;
- gap: 20px;
- margin-bottom: 20px;
- }
- .filter-card,
- .device-selector {
- flex: 1;
- background: white;
- border-radius: 8px;
- padding: 20px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
- }
- .date-controls {
- display: grid;
- grid-template-columns: 1fr 1fr auto;
- gap: 15px;
- align-items: flex-end;
- }
- .date-input label {
- display: block;
- margin-bottom: 6px;
- font-size: 14px;
- color: #2c3e50;
- }
- .date-input input {
- width: 100%;
- padding: 8px 12px;
- border-radius: 4px;
- border: 1px solid #ddd;
- font-size: 14px;
- }
- .device-controls {
- display: flex;
- gap: 15px;
- align-items: center;
- }
- .device-controls select {
- flex: 1;
- padding: 8px 12px;
- border-radius: 4px;
- border: 1px solid #ddd;
- font-size: 14px;
- }
- .checkbox-container {
- display: flex;
- align-items: center;
- cursor: pointer;
- font-size: 14px;
- user-select: none;
- }
- .checkbox-container input {
- position: absolute;
- opacity: 0;
- cursor: pointer;
- }
- .checkmark {
- height: 20px;
- width: 20px;
- background-color: #eee;
- border-radius: 4px;
- margin-left: 10px;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .checkbox-container input:checked ~ .checkmark {
- background-color: #3498db;
- }
- .checkmark:after {
- content: "";
- display: none;
- width: 5px;
- height: 10px;
- border: solid white;
- border-width: 0 2px 2px 0;
- transform: rotate(45deg);
- }
- .checkbox-container input:checked ~ .checkmark:after {
- display: block;
- }
- .chart-container {
- margin-bottom: 20px;
- }
- .chart-card {
- background: white;
- border-radius: 8px;
- padding: 20px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
- }
- .chart-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 15px;
- }
- .chart-legend {
- display: flex;
- gap: 20px;
- font-size: 14px;
- }
- .color-dot {
- display: inline-block;
- width: 12px;
- height: 12px;
- border-radius: 50%;
- margin-right: 8px;
- }
- .color-dot.primary { background: #3498db; }
- .color-dot.secondary { background: #9b59b6; }
- .chart-content {
- height: 400px;
- background: #f8fafc;
- border-radius: 6px;
- position: relative;
- padding: 30px 40px;
- }
- .trend-chart {
- width: 100%;
- height: 100%;
- position: relative;
- }
- .grid-lines {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- }
- .grid-line {
- position: absolute;
- width: 100%;
- height: 1px;
- background: rgba(0, 0, 0, 0.05);
- }
- .grid-line:nth-child(1) { top: 0%; }
- .grid-line:nth-child(2) { top: 25%; }
- .grid-line:nth-child(3) { top: 50%; }
- .grid-line:nth-child(4) { top: 75%; }
- .grid-line:nth-child(5) { top: 100%; }
- .data-line {
- position: absolute;
- height: 3px;
- border-radius: 3px;
- bottom: 0;
- }
- .data-line.primary {
- background: #3498db;
- width: 70%;
- }
- .data-line.secondary {
- background: #9b59b6;
- width: 60%;
- }
- .x-axis {
- position: absolute;
- bottom: -30px;
- left: 0;
- right: 0;
- display: flex;
- justify-content: space-between;
- font-size: 12px;
- color: white;
- }
|