summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-lldpd/htdocs/luci-static/resources/lldpd/lldpd.css
blob: 5932e41536c1432a78f8b5c33eed83d90b8aa11e (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
/*
 * Copyright (c) 2020, Tano Systems LLC. All Rights Reserved.
 * Author: Anton Kikin <a.kikin@tano-systems.com>
 * Copyright (c) 2023-2024. All Rights Reserved.
 * Paul Donald <newtwen+github@gmail.com>
 */

/*
 * Filter select widget
 */
table.lldpd-filter td,
table.lldpd-filter th {
	border: 1px solid #ccc !important;
	padding: 2px 10px;
	text-align: center;
}

table.lldpd-filter td,
table.lldpd-filter td input[type="radio"] {
	vertical-align: middle;
}

table.lldpd-filter th { font-weight: bold; }

table.lldpd-filter tbody tr {
	cursor: pointer;
}

table.lldpd-filter tr.lldpd-filter-selected td {
	background-color: #EEE;
}

/*
 * Parameters
 */
.lldpd-params {
	column-count: 2;
	column-gap: 24px;
}

@media only screen and (max-width: 850px) {
	.lldpd-params {
		column-count: 1;
	}
}

.lldpd-params > div {
	display: grid;
	grid-template-columns: 1fr auto;
	border-bottom: 1px solid #e6e6e6;
	padding: 0 8px;
/*	column-break-inside: avoid;*/
}

.td .lldpd-params > div:last-of-type {
	border-bottom: none;
}

.lldpd-params .lldpd-param {
	margin-right: 10px;
	font-weight: bold;
}

.lldpd-params .lldpd-param::after {
	content: ':';
}

.lldpd-params .lldpd-param-value {
	white-space: normal;
	font-weight: normal;
	text-align: right;
}

.td .lldpd-params {
	column-count: 1;
}

.td .lldpd-params > div {
	padding: 0;
}

/*
 * Status table
 */
.lldpd-folded,
.lldpd-unfolded {
	width: 100%;
}

.lldpd-table .tr .td { cursor: pointer; }

.lldpd-protocol-badge {
	display: inline-block;
	width: auto !important;
	width: fit-content !important;
	box-shadow: 0 1px 3px 0 grey;
	padding: 0px 8px;
	border-radius: 5px;
	width: 100%;
	background-color: #e6e6e6;
	border: 0;
	margin-right: 5px;
	margin-bottom: 5px;
	color: #595959;
}

.lldpd-protocol-badge.lldpd-protocol-lldp  { background-color: #b7efcf; border-color: #2abd69; color: #165e34; }
.lldpd-protocol-badge.lldpd-protocol-cdp   { background-color: #b2daf3; border-color: #46a6e2; color: #1a74ac; }
.lldpd-protocol-badge.lldpd-protocol-fdp   { background-color: #f9e3b3; border-color: #b7820f; color: #b7820f; }
.lldpd-protocol-badge.lldpd-protocol-edp   { background-color: #f9e3f9; border-color: #e380e3; color: #b70f82; }
.lldpd-protocol-badge.lldpd-protocol-sonmp { background-color: #f4ffc4; border-color: #a7ce00; color: #7e9b00; }