OLD | NEW |
---|---|
1 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> |
2 <link rel="import" href="settings_icons_css.html"> | 2 <link rel="import" href="settings_icons_css.html"> |
3 <link rel="import" href="settings_vars_css.html"> | 3 <link rel="import" href="settings_vars_css.html"> |
4 | 4 |
5 <!-- Common styles for Material Design settings. --> | 5 <!-- Common styles for Material Design settings. --> |
6 <dom-module id="settings-shared"> | 6 <dom-module id="settings-shared"> |
7 <template> | 7 <template> |
8 <style include="settings-icons cr-shared-style"> | 8 <style include="settings-icons cr-shared-style"> |
9 /* Prevent action-links from being selected to avoid accidental | 9 /* Prevent action-links from being selected to avoid accidental |
10 * selection when trying to click it. */ | 10 * selection when trying to click it. */ |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
369 } | 369 } |
370 | 370 |
371 .favicon-image { | 371 .favicon-image { |
372 background-repeat: no-repeat; | 372 background-repeat: no-repeat; |
373 background-size: contain; | 373 background-size: contain; |
374 height: 16px; | 374 height: 16px; |
375 width: 16px; | 375 width: 16px; |
376 } | 376 } |
377 | 377 |
378 .search-bubble { | 378 .search-bubble { |
379 /* RGB value matches var(--paper-yellow-500). */ | |
380 --search-bubble-color: rgba(255, 235, 59, 0.9); | |
379 position: absolute; | 381 position: absolute; |
380 z-index: 1; | 382 z-index: 1; |
381 } | 383 } |
382 | 384 |
383 .search-bubble-innards { | 385 .search-bubble-innards { |
384 align-items: center; | 386 align-items: center; |
385 background-color: var(--paper-yellow-500); | 387 background-color: var(--search-bubble-color); |
386 border-radius: 2px; | 388 border-radius: 2px; |
389 max-width: 100px; | |
390 min-width: 64px; | |
387 padding: 4px 10px; | 391 padding: 4px 10px; |
388 text-align: center; | 392 text-align: center; |
389 width: 100px; | |
390 } | 393 } |
391 | 394 |
392 /* Provides the arrow which points at the anchor element. */ | 395 /* Provides the arrow which points at the anchor element. */ |
393 .search-bubble-innards::after { | 396 .search-bubble-innards::after { |
394 background-color: var(--paper-yellow-500); | 397 background-color: var(--search-bubble-color); |
395 content: ''; | 398 content: ''; |
396 height: 10px; | 399 height: 10px; |
397 left: 55px; | 400 left: calc(50% - 5px); |
dschuyler
2017/07/07 19:26:08
Maybe: The width of a diamond with 10px sides is a
| |
398 position: absolute; | 401 position: absolute; |
399 top: -5px; | 402 top: -5px; |
400 transform: rotate(-45deg); | 403 transform: rotate(-45deg); |
401 width: 10px; | 404 width: 10px; |
402 z-index: -1; | 405 z-index: -1; |
403 } | 406 } |
404 | 407 |
405 /* Turns the arrow direction downwards, when the bubble is placed above | 408 /* Turns the arrow direction downwards, when the bubble is placed above |
406 * the anchor element */ | 409 * the anchor element */ |
407 .search-bubble-innards.above::after { | 410 .search-bubble-innards.above::after { |
408 bottom: -5px; | 411 bottom: -5px; |
409 top: auto; | 412 top: auto; |
410 transform: rotate(-135deg); | 413 transform: rotate(-135deg); |
411 } | 414 } |
412 | 415 |
413 .column-header { | 416 .column-header { |
414 color: var(--paper-grey-600); | 417 color: var(--paper-grey-600); |
415 font-weight: 500; | 418 font-weight: 500; |
416 } | 419 } |
417 </style> | 420 </style> |
418 </template> | 421 </template> |
419 </dom-module> | 422 </dom-module> |
OLD | NEW |