--- id: 612ebf9a210f2b6d77001e68 title: Step 30 challengeType: 0 dashedName: step-30 --- # --description-- Ora aggiungi un selettore `.logo` alla `@media` query e imposta la proprietà `width` a `150px`. # --hints-- La regola `@media` dovrebbe avere un selettore `.logo`. ```js const rules = new __helpers.CSSHelp(document).getRuleListsWithinMedia('(max-width: 768px)'); const logo = rules?.find(rule => rule.selectorText === '.logo'); assert(logo); ``` Il nuovo selettore `.logo` dovrebbe avere una proprietà `width` di `150px`. ```js const rules = new __helpers.CSSHelp(document).getRuleListsWithinMedia('(max-width: 768px)'); const logo = rules?.find(rule => rule.selectorText === '.logo'); assert(logo?.style.width === '150px'); ``` # --seed-- ## --seed-contents-- ```html Piano
``` ```css html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; } #piano { background-color: #00471b; width: 992px; height: 290px; margin: 80px auto; padding: 90px 20px 0 20px; position: relative; border-radius: 10px; } .keys { background-color: #040404; width: 949px; height: 180px; padding-left: 2px; } .key { background-color: #ffffff; position: relative; width: 41px; height: 175px; margin: 2px; float: left; border-radius: 0 0 3px 3px; } .key.black--key::after { background-color: #1d1e22; content: ""; position: absolute; left: -18px; width: 32px; height: 100px; border-radius: 0 0 3px 3px; } .logo { width: 200px; position: absolute; top: 23px; } --fcc-editable-region-- @media (max-width: 768px) { #piano { width: 358px; } .keys { width: 318px; } } --fcc-editable-region-- ```