Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: chrome/browser/resources/settings/settings_shared_css.html

Issue 2390053002: [MD settings] use arrow-forward to switch direction in rtl (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_vars_css.html"> 2 <link rel="import" href="/settings_vars_css.html">
3 3
4 <!-- Common styles for Material Design settings. --> 4 <!-- Common styles for Material Design settings. -->
5 <dom-module id="settings-shared"> 5 <dom-module id="settings-shared">
6 <template> 6 <template>
7 <style include="cr-shared-style"> 7 <style include="cr-shared-style">
8 button[is='paper-icon-button-light'] { 8 button[is='paper-icon-button-light'] {
9 --paper-icon-button-light-ripple: { 9 --paper-icon-button-light-ripple: {
10 /* Center the ripple on the icon button. */ 10 /* Center the ripple on the icon button. */
11 height: 36px; 11 height: var(--settings-icon-ripple-size);
12 left: -8px; 12 left: -8px;
13 top: -8px; 13 top: -8px;
14 width: 36px; 14 width: var(--settings-icon-ripple-size);
15 }; 15 };
16 -webkit-margin-start: 16px; 16 -webkit-margin-start: 16px;
17 background-size: cover; 17 background-size: cover;
18 flex-shrink: 0; 18 flex-shrink: 0;
19 height: 20px; 19 height: var(--settings-icon-size);
20 width: 20px; 20 width: var(--settings-icon-size);
21 } 21 }
22 22
23 [actionable] button[is="paper-icon-button-light"].icon-arrow-right { 23 :host-context([dir=rtl]) button[is='paper-icon-button-light'] {
24 --paper-icon-button-light-ripple: {
25 /* Center the ripple on the icon button. */
26 height: var(--settings-icon-ripple-size);
27 right: -8px;
28 top: -8px;
29 width: var(--settings-icon-ripple-size);
30 };
31 }
32
33 [actionable] button[is="paper-icon-button-light"].icon-arrow-forward {
24 background-image: url(images/arrow_right.svg); 34 background-image: url(images/arrow_right.svg);
25 } 35 }
26 36
37 :host-context([dir=rtl]) [actionable] button[is="paper-icon-button-light"] .icon-arrow-forward {
Dan Beam 2016/10/03 22:04:54 wrap
dschuyler 2016/10/03 22:22:41 Removed.
38 background-image: url(images/arrow_left.svg);
Dan Beam 2016/10/03 22:04:54 why can't we just transform?
dschuyler 2016/10/03 22:22:41 We can. I had trouble with the -webkit-margin-star
39 }
40
27 [actionable] button[is="paper-icon-button-light"].icon-external { 41 [actionable] button[is="paper-icon-button-light"].icon-external {
28 background-image: url(images/open_in_new.svg); 42 background-image: url(images/open_in_new.svg);
29 } 43 }
30 44
31 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */ 45 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */
32 h2 { 46 h2 {
33 align-items: center; 47 align-items: center;
34 align-self: flex-start; 48 align-self: flex-start;
35 color: var(--paper-grey-600); 49 color: var(--paper-grey-600);
36 display: flex; 50 display: flex;
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 /* Turns the arrow direction downwards, when the bubble is placed above 438 /* Turns the arrow direction downwards, when the bubble is placed above
425 * the anchor element */ 439 * the anchor element */
426 .search-bubble-innards.above::after { 440 .search-bubble-innards.above::after {
427 -webkit-transform: rotate(-135deg); 441 -webkit-transform: rotate(-135deg);
428 bottom: -5px; 442 bottom: -5px;
429 top: auto; 443 top: auto;
430 } 444 }
431 </style> 445 </style>
432 </template> 446 </template>
433 </dom-module> 447 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698