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

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: in person changes 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 -webkit-margin-end: -8px;
Dan Beam 2016/10/04 01:01:00 can haz comment?
dschuyler 2016/10/04 01:13:58 Done.
10 /* Center the ripple on the icon button. */
11 height: 36px;
12 left: -8px;
13 top: -8px;
14 width: 36px;
15 };
16 -webkit-margin-start: 16px; 10 -webkit-margin-start: 16px;
17 background-size: cover; 11 background-position: center;
12 background-repeat: no-repeat;
13 background-size: 20px;
18 flex-shrink: 0; 14 flex-shrink: 0;
19 height: 20px; 15 height: 36px;
20 width: 20px; 16 width: 36px;
Dan Beam 2016/10/04 01:01:00 can haz variables?
dschuyler 2016/10/04 01:13:58 Done.
21 } 17 }
22 18
23 [actionable] button[is="paper-icon-button-light"].icon-arrow-right { 19 :host-context([dir=rtl]) button[is='paper-icon-button-light'] {
20 transform: scaleX(-1); /* Flip on the X axis (aka mirror). */
Dan Beam 2016/10/04 01:01:00 arguable nit: \s\s in front of same-line comments
dschuyler 2016/10/04 01:13:58 Done.
21 }
22
23 [actionable] button[is="paper-icon-button-light"].icon-arrow-forward {
24 background-image: url(images/arrow_right.svg); 24 background-image: url(images/arrow_right.svg);
25 } 25 }
26 26
27 [actionable] button[is="paper-icon-button-light"].icon-external { 27 [actionable] button[is="paper-icon-button-light"].icon-external {
28 background-image: url(images/open_in_new.svg); 28 background-image: url(images/open_in_new.svg);
29 } 29 }
30 30
31 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */ 31 /* Use <h2> as the "sub-header" mentioned in the UX design docs. */
32 h2 { 32 h2 {
33 align-items: center; 33 align-items: center;
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 /* Turns the arrow direction downwards, when the bubble is placed above 424 /* Turns the arrow direction downwards, when the bubble is placed above
425 * the anchor element */ 425 * the anchor element */
426 .search-bubble-innards.above::after { 426 .search-bubble-innards.above::after {
427 -webkit-transform: rotate(-135deg); 427 -webkit-transform: rotate(-135deg);
428 bottom: -5px; 428 bottom: -5px;
429 top: auto; 429 top: auto;
430 } 430 }
431 </style> 431 </style>
432 </template> 432 </template>
433 </dom-module> 433 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698