1/** 2 * Copyright (c) 2024, The Linux Foundation. 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6.hidden { 7 display: none !important; 8} 9 10.filter-form { 11 display: flex; 12 flex-wrap: wrap; 13 gap: 10px; 14 margin-bottom: 20px; 15} 16 17.filter-form input, 18.filter-form select { 19 appearance: none; 20 font-family: var(--system-font-family); 21 font-size: 14px; 22 border-radius: 50px; 23 padding: 10px 18px; 24 background-color: var(--input-background-color); 25 color: var(--body-color); 26 transition: all 0.3s ease; 27 box-shadow: none; 28} 29 30.filter-form input:focus, .filter-form select:focus { 31 border-color: var(--input-focus-border-color); 32} 33 34.form-group { 35 flex: 1 1 200px; 36 display: grid; 37 grid-template-rows: auto 1fr; 38 margin-bottom: 10px; 39} 40 41.filter-form .form-group label { 42 color: var(--body-color); 43 font-size: 10px; 44 text-transform: uppercase; 45 padding-left: 18px; 46 margin-bottom: 5px; 47} 48 49.filter-form #family, .filter-form #series, .filter-form #soc { 50 overflow: auto; 51 border-radius: 8px; 52 padding-right: 18px; 53} 54 55.filter-form #family option:checked, 56.filter-form #series option:checked, 57.filter-form #soc option:checked { 58 background-color: var(--admonition-note-title-background-color); 59 color: var(--admonition-note-title-color); 60} 61 62.select-container { 63 position: relative; 64} 65 66.select-container::after { 67 content: "\25BC"; 68 position: absolute; 69 right: 20px; 70 top: 50%; 71 transform: translateY(-50%); 72 pointer-events: none; 73 font-size: 14px; 74 color: var(--body-color); 75} 76 77.filter-form select { 78 padding-right: 40px; 79 width: 100%; 80 text-overflow: ellipsis; 81 overflow: hidden; 82 white-space: nowrap; 83} 84 85#catalog { 86 display: flex; 87 flex-wrap: wrap; 88 gap: 20px; 89 justify-content: center; 90 margin-top: 20px; 91 margin-bottom: 40px; 92} 93 94.board-card { 95 flex: 1 1 calc(33.3% - 20px); 96 /* Three cards per row */ 97 max-width: calc(33.3% - 20px); 98 border-radius: 8px; 99 padding: 15px 20px; 100 background-color: var(--admonition-note-background-color); 101 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 102 display: flex; 103 flex-direction: column; 104 align-items: center; 105 transition: transform 0.3s ease; 106} 107 108.board-card:hover, 109.board-card:focus { 110 box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); 111 transform: translateY(-5px); 112 text-decoration: none; 113} 114 115.board-card .picture { 116 width: auto; 117 height: auto; 118 min-height: 100px; 119 max-height: 180px; 120 border-radius: 4px; 121 margin: 0 auto; 122 display: flex; 123 align-items: center; 124 flex-grow: 1; 125 padding: 10px 0px; 126} 127 128.board-card .no-picture { 129 font-size: 5em; 130 color: var(--admonition-note-title-background-color); 131 justify-content: center; 132} 133 134.board-card .vendor { 135 font-size: 12px; 136 color: var(--admonition-note-color); 137 font-weight: 900; 138 margin-bottom: 18px; 139 opacity: 0.5; 140} 141 142.board-card img { 143 max-height: 100%; 144 max-width: 100%; 145 object-fit: contain; 146} 147 148.board-card .board-name { 149 font-family: var(--header-font-family); 150 margin: auto 0 5px; 151 text-align: center; 152 font-size: 18px; 153 font-weight: 500; 154 color: var(--body-color); 155 padding-top: 10px; 156} 157 158.board-card .arch { 159 margin: 5px 0; 160 text-align: center; 161 font-size: 12px; 162 font-weight: 100; 163 color: var(--body-color); 164} 165 166@media (max-width: 1024px) { 167 .board-card { 168 flex: 1 1 calc(50% - 20px); 169 max-width: calc(50% - 20px); 170 } 171} 172 173@media (max-width: 768px) { 174 .board-card { 175 flex: 1 1 calc(100% - 20px); 176 max-width: calc(100% - 20px); 177 } 178 179 .board-card .picture { 180 min-height: 60px; 181 max-height: 120px; 182 } 183} 184 185#form-options .btn { 186 font-size: 14px; 187} 188 189#form-options .btn:focus { 190 outline-color: var(--body-color) !important; 191} 192 193#catalog.compact { 194 display: block; 195 list-style-type: disc; 196 margin: 20px; 197} 198 199#catalog.compact .board-card { 200 display: list-item; 201 padding: 4px 0; 202 border: none; 203 background-color: transparent; 204 box-shadow: none; 205 list-style-position: outside; 206 max-width: none; 207} 208 209#catalog.compact .board-card .vendor, 210#catalog.compact .board-card .picture { 211 display: none; 212} 213 214#catalog.compact .board-card .board-name { 215 display: inline; 216 font-family: var(--system-font-family); 217 text-align: left; 218 font-size: 16px; 219 font-weight: normal; 220 color: var(--body-color); 221 margin: 0; 222 padding: 0; 223} 224 225#catalog.compact .board-card .arch { 226 display: inline; 227} 228 229#catalog.compact .board-card .arch::before { 230 content: " ("; 231} 232 233#catalog.compact .board-card .arch::after { 234 content: ")"; 235} 236 237#catalog.compact .board-card:hover { 238 box-shadow: none; 239 transform: none; 240 text-decoration: underline; 241}