Commit 2abbb215 authored by Shik Chen's avatar Shik Chen Committed by Commit Bot

Sort CSS declarations in alphabetical order.

Refs:
http://go/htmlcssstyle#Declaration_Order
https://cs.chromium.org/chromium/src/tools/web_dev_style/css_checker.py?l=89&rcl=48ef45a0c6f5fd43faf4c1654aeacabd5ea988b6

BUG=b:117810572,chromium:918091
TEST=Manually open CCA and check preview/capture/recording still works.

Change-Id: I18a2434cdc78219051a47c16fc65965b89177562
Reviewed-on: https://chromium-review.googlesource.com/c/1433661
Auto-Submit: Shik Chen <shik@chromium.org>
Reviewed-by: default avatarRicky Liang <jcliang@chromium.org>
Commit-Queue: Ricky Liang <jcliang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#626980}
parent 2b852e9d
...@@ -66,13 +66,13 @@ body { ...@@ -66,13 +66,13 @@ body {
button, button,
input { input {
background-color: transparent; background-color: transparent;
position: relative;
pointer-events: auto;
margin: 0;
padding: 0;
border-radius: 4px; border-radius: 4px;
border-style: none; border-style: none;
margin: 0;
outline: none; outline: none;
padding: 0;
pointer-events: auto;
position: relative;
} }
input { input {
...@@ -81,14 +81,14 @@ input { ...@@ -81,14 +81,14 @@ input {
button:focus:after, button:focus:after,
input:focus:after { input:focus:after {
position: absolute;
border: 2px solid rgba(37, 129, 223, 0.7); border: 2px solid rgba(37, 129, 223, 0.7);
border-radius: 4px; border-radius: 4px;
top: -3px;
left: -3px;
bottom: -3px; bottom: -3px;
right: -3px;
content: ''; content: '';
left: -3px;
position: absolute;
right: -3px;
top: -3px;
} }
#browser .media-wrapper:focus { #browser .media-wrapper:focus {
...@@ -118,11 +118,11 @@ input:focus:after { ...@@ -118,11 +118,11 @@ input:focus:after {
.buttons input, .buttons input,
.menu-header .icon, .menu-header .icon,
.menu-item .icon { .menu-item .icon {
flex-shrink: 0;
width: 40px;
height: 40px;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
flex-shrink: 0;
height: 40px;
width: 40px;
} }
#browser-print { #browser-print {
...@@ -142,8 +142,8 @@ input:focus:after { ...@@ -142,8 +142,8 @@ input:focus:after {
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 0;
height: 0; height: 0;
width: 0;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
...@@ -152,8 +152,8 @@ input:focus:after { ...@@ -152,8 +152,8 @@ input:focus:after {
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: transparent; background: transparent;
width: 0;
height: 0; height: 0;
width: 0;
} }
.top-stripe { .top-stripe {
...@@ -168,8 +168,8 @@ body.shift-top-stripe .top-stripe { ...@@ -168,8 +168,8 @@ body.shift-top-stripe .top-stripe {
.bottom-stripe, .bottom-stripe,
body:not(.tablet-landscape) .actions-group { body:not(.tablet-landscape) .actions-group {
position: absolute;
bottom: 56px; bottom: 56px;
position: absolute;
transform: translateY(50%); transform: translateY(50%);
} }
...@@ -183,8 +183,8 @@ body.shift-bottom-stripe:not(.tablet-landscape) .actions-group { ...@@ -183,8 +183,8 @@ body.shift-bottom-stripe:not(.tablet-landscape) .actions-group {
} }
.left-stripe { .left-stripe {
position: absolute;
left: 48px; left: 48px;
position: absolute;
transform: translateX(-50%); transform: translateX(-50%);
} }
...@@ -238,8 +238,8 @@ body.tablet-landscape .actions-group button { ...@@ -238,8 +238,8 @@ body.tablet-landscape .actions-group button {
#shutter { #shutter {
background-image: url(../images/camera_shutter_photo_start.svg); background-image: url(../images/camera_shutter_photo_start.svg);
width: 72px;
height: 72px; height: 72px;
width: 72px;
z-index: 1; /* On top of transforming switch-mode buttons. */ z-index: 1; /* On top of transforming switch-mode buttons. */
} }
...@@ -277,8 +277,8 @@ body.record-mode.taking #shutter:hover { ...@@ -277,8 +277,8 @@ body.record-mode.taking #shutter:hover {
#switch-recordvideo, #switch-recordvideo,
#switch-takephoto { #switch-takephoto {
width: 56px;
height: 56px; height: 56px;
width: 56px;
} }
#switch-recordvideo { #switch-recordvideo {
...@@ -316,9 +316,9 @@ body:not(.multi-camera) #switch-device { ...@@ -316,9 +316,9 @@ body:not(.multi-camera) #switch-device {
#camera-mode { #camera-mode {
background-image: url(../images/camera_mode_photo.svg); background-image: url(../images/camera_mode_photo.svg);
width: 40px;
height: 40px; height: 40px;
visibility: hidden; visibility: hidden;
width: 40px;
} }
body.record-mode #camera-mode { body.record-mode #camera-mode {
...@@ -331,22 +331,22 @@ body.mode-switching:not(.streaming) #camera-mode { ...@@ -331,22 +331,22 @@ body.mode-switching:not(.streaming) #camera-mode {
#timer-tick-msg { #timer-tick-msg {
color: white; color: white;
font-size: 72px;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
font-size: 72px;
visibility: hidden; visibility: hidden;
} }
#timer-tick-msg.animate { #timer-tick-msg.animate {
transform: scale(1.8, 1.8);
opacity: 0.2; opacity: 0.2;
transform: scale(1.8, 1.8);
transition: transform 500ms ease-out, opacity 500ms ease-out; transition: transform 500ms ease-out, opacity 500ms ease-out;
visibility: visible; visibility: visible;
} }
#switch-device { #switch-device {
background-image: url(../images/camera_button_switch_device.svg); background-image: url(../images/camera_button_switch_device.svg);
width: 48px;
height: 48px; height: 48px;
width: 48px;
} }
#switch-device.animate { #switch-device.animate {
...@@ -363,16 +363,16 @@ body.mode-switching:not(.streaming) #camera-mode { ...@@ -363,16 +363,16 @@ body.mode-switching:not(.streaming) #camera-mode {
} }
#gallery-enter { #gallery-enter {
background-color: rgba(24, 24, 24, 1);
background-size: cover;
height: 48px;
position: relative; position: relative;
width: 48px; width: 48px;
height: 48px;
background-size: cover;
background-color: rgba(24, 24, 24, 1);
} }
.centered-overlay { .centered-overlay {
position: absolute;
left: 50%; left: 50%;
position: absolute;
top: 50%; top: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
...@@ -450,8 +450,8 @@ body.browser #browser, ...@@ -450,8 +450,8 @@ body.browser #browser,
body.dialog #dialog, body.dialog #dialog,
body.warning #warning { body.warning #warning {
opacity: 1; opacity: 1;
visibility: visible;
transition: opacity 100ms; transition: opacity 100ms;
visibility: visible;
} }
body.gridsettings #gridsettings, body.gridsettings #gridsettings,
...@@ -483,8 +483,8 @@ body.shift-preview-top #preview-wrapper { ...@@ -483,8 +483,8 @@ body.shift-preview-top #preview-wrapper {
} }
body.shift-preview-left #preview-wrapper { body.shift-preview-left #preview-wrapper {
position: absolute;
left: 0; left: 0;
position: absolute;
} }
#preview-wrapper, #preview-wrapper,
...@@ -504,11 +504,11 @@ body.mirror #preview-focus { ...@@ -504,11 +504,11 @@ body.mirror #preview-focus {
} }
#preview-focus { #preview-focus {
position: absolute; bottom: 0;
left: 0; left: 0;
top: 0; position: absolute;
right: 0; right: 0;
bottom: 0; top: 0;
} }
#preview-focus-aim { #preview-focus-aim {
...@@ -527,12 +527,12 @@ body.mirror:not(.streaming) #preview-video { ...@@ -527,12 +527,12 @@ body.mirror:not(.streaming) #preview-video {
} }
#preview-grid { #preview-grid {
position: absolute;
bottom: 0; bottom: 0;
left: 0; left: 0;
opacity: 0.5;
position: absolute;
right: 0; right: 0;
top: 0; top: 0;
opacity: 0.5;
} }
body:not(.streaming) #preview-grid, body:not(.streaming) #preview-grid,
...@@ -546,22 +546,22 @@ body:not(.streaming) .options-group { ...@@ -546,22 +546,22 @@ body:not(.streaming) .options-group {
#preview-grid-horizontal { #preview-grid-horizontal {
border-bottom: 1px solid white; border-bottom: 1px solid white;
border-top: 1px solid white; border-top: 1px solid white;
position: absolute; height: 100%;
left: 0; left: 0;
position: absolute;
right: 0; right: 0;
top: 50%; top: 50%;
height: 100%;
transform: translateY(-50%); transform: translateY(-50%);
} }
body._4x4 #preview-grid-horizontal:before { body._4x4 #preview-grid-horizontal:before {
border-bottom: 1px solid white; border-bottom: 1px solid white;
position: absolute; content: '';
height: 0;
left: 0; left: 0;
position: absolute;
right: 0; right: 0;
top: 0; top: 0;
height: 0;
content: '';
} }
body.grid._3x3 #preview-grid-horizontal, body.grid._3x3 #preview-grid-horizontal,
...@@ -584,22 +584,22 @@ body.gridsettings._4x4 #preview-grid-horizontal:before { ...@@ -584,22 +584,22 @@ body.gridsettings._4x4 #preview-grid-horizontal:before {
#preview-grid-vertical { #preview-grid-vertical {
border-left: 1px solid white; border-left: 1px solid white;
border-right: 1px solid white; border-right: 1px solid white;
position: absolute;
bottom: 0; bottom: 0;
top: 0;
left: 50%; left: 50%;
width: 100%; position: absolute;
top: 0;
transform: translateX(-50%); transform: translateX(-50%);
width: 100%;
} }
body._4x4 #preview-grid-vertical:before { body._4x4 #preview-grid-vertical:before {
border-right: 1px solid white; border-right: 1px solid white;
position: absolute;
bottom: 0; bottom: 0;
top: 0; content: '';
left: 0; left: 0;
position: absolute;
top: 0;
width: 0; width: 0;
content: '';
} }
body.grid._3x3 #preview-grid-vertical, body.grid._3x3 #preview-grid-vertical,
...@@ -638,13 +638,13 @@ body:not(.grid):not(.gridsettings) #preview-grid-vertical:before { ...@@ -638,13 +638,13 @@ body:not(.grid):not(.gridsettings) #preview-grid-vertical:before {
#record-time { #record-time {
align-items: center; align-items: center;
display: flex;
justify-content: flex-start;
pointer-events: none;
background-color: rgba(0, 0, 0, 0.2); background-color: rgba(0, 0, 0, 0.2);
border-radius: 4px; border-radius: 4px;
display: flex;
height: 32px; height: 32px;
justify-content: flex-start;
padding: 0 12px; padding: 0 12px;
pointer-events: none;
} }
#record-time[hidden], #record-time[hidden],
...@@ -653,25 +653,25 @@ body:not(.grid):not(.gridsettings) #preview-grid-vertical:before { ...@@ -653,25 +653,25 @@ body:not(.grid):not(.gridsettings) #preview-grid-vertical:before {
} }
#record-time .icon { #record-time .icon {
flex-shrink: 0;
background-color: #ea4335; background-color: #ea4335;
width: 6px;
height: 6px;
border-radius: 50%; border-radius: 50%;
flex-shrink: 0;
height: 6px;
width: 6px;
} }
#record-time #record-time-msg { #record-time #record-time-msg {
flex-shrink: 0;
color: white; color: white;
font-size: 13px; flex-shrink: 0;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
font-size: 13px;
margin-left: 8px; margin-left: 8px;
} }
#browser .buttons { #browser .buttons {
left: 10px;
position: fixed; position: fixed;
top: 10px; top: 10px;
left: 10px;
} }
#browser .buttons button { #browser .buttons button {
...@@ -695,9 +695,9 @@ body.ext-fs #browser-export { ...@@ -695,9 +695,9 @@ body.ext-fs #browser-export {
#browser div.media-wrapper { #browser div.media-wrapper {
align-items: center; align-items: center;
justify-content: center;
display: flex; display: flex;
flex-shrink: 0; flex-shrink: 0;
justify-content: center;
margin: 4%; margin: 4%;
pointer-events: auto; pointer-events: auto;
} }
...@@ -749,9 +749,9 @@ body.ext-fs #browser-export { ...@@ -749,9 +749,9 @@ body.ext-fs #browser-export {
/* Set default styles and max-dimensions for printing the browser view. */ /* Set default styles and max-dimensions for printing the browser view. */
#browser div.media-wrapper.selected { #browser div.media-wrapper.selected {
display: block; /* Allows to keep aspect ratio of children. */
border: none; border: none;
box-shadow: none; box-shadow: none;
display: block; /* Allows to keep aspect ratio of children. */
margin: auto; margin: auto;
position: absolute; position: absolute;
} }
...@@ -773,16 +773,16 @@ body.ext-fs #browser-export { ...@@ -773,16 +773,16 @@ body.ext-fs #browser-export {
background: rgba(241, 243, 244, 0.8); background: rgba(241, 243, 244, 0.8);
border-radius: 2px; border-radius: 2px;
color: #202124; color: #202124;
font-size: 12px;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
font-size: 12px;
left: 0;
line-height: 22px; line-height: 22px;
white-space: nowrap; opacity: 0;
padding: 0 8px; padding: 0 8px;
left: 0;
pointer-events: none; pointer-events: none;
position: absolute; position: absolute;
top: 0; top: 0;
opacity: 0; white-space: nowrap;
z-index: 100; z-index: 100;
} }
...@@ -795,12 +795,12 @@ body.ext-fs #browser-export { ...@@ -795,12 +795,12 @@ body.ext-fs #browser-export {
background: #1e1e23; background: #1e1e23;
border-radius: 16px; border-radius: 16px;
color: white; color: white;
font-size: 16px;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
font-size: 16px;
line-height: 32px; line-height: 32px;
opacity: 0;
padding: 0 16px; padding: 0 16px;
pointer-events: none; pointer-events: none;
opacity: 0;
z-index: 100; z-index: 100;
} }
...@@ -834,32 +834,32 @@ body.ext-fs #browser-export { ...@@ -834,32 +834,32 @@ body.ext-fs #browser-export {
background: rgba(0, 0, 0, 0.75); background: rgba(0, 0, 0, 0.75);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: absolute;
top: 0px;
left: 0px;
height: 100%; height: 100%;
left: 0px;
min-width: 360px; min-width: 360px;
opacity: 0.9; opacity: 0.9;
position: absolute;
top: 0px;
} }
.menu-header, .menu-header,
.menu-item { .menu-item {
align-items: center; align-items: center;
color: #f1f3f4;
display: flex; display: flex;
flex-shrink: 0; flex-shrink: 0;
font-family: 'Roboto', sans-serif;
font-size: 13px;
height: 64px;
justify-content: flex-start; justify-content: flex-start;
text-align: left;
padding: 0 20px 0 24px; padding: 0 20px 0 24px;
height: 64px; text-align: left;
color: #f1f3f4;
font-size: 13px;
font-family: 'Roboto', sans-serif;
} }
.menu-header { .menu-header {
height: 88px;
color: white; color: white;
font-size: 20px; font-size: 20px;
height: 88px;
} }
.menu-header .icon, .menu-header .icon,
...@@ -872,8 +872,8 @@ body.ext-fs #browser-export { ...@@ -872,8 +872,8 @@ body.ext-fs #browser-export {
} }
.menu-item .description { .menu-item .description {
margin-top: 5px;
color: #bdc1c6; color: #bdc1c6;
margin-top: 5px;
} }
.menu-item .description span { .menu-item .description span {
...@@ -889,25 +889,25 @@ body._10sec .description span[i18n-content=labelTimer10s] { ...@@ -889,25 +889,25 @@ body._10sec .description span[i18n-content=labelTimer10s] {
} }
.menu-item input:before { .menu-item input:before {
position: absolute; border-radius: 50%;
top: 13px;
left: 13px;
bottom: 13px; bottom: 13px;
right: 13px;
box-shadow: 0px 0px 0px 2px #f1f3f4; box-shadow: 0px 0px 0px 2px #f1f3f4;
border-radius: 50%;
content: ''; content: '';
left: 13px;
position: absolute;
right: 13px;
top: 13px;
} }
.menu-item input:checked:before { .menu-item input:checked:before {
top: 12px;
left: 12px;
bottom: 12px;
right: 12px;
box-shadow: 0px 0px 0px 1px #f1f3f4;
background-color: #f1f3f4;
background-clip: padding-box; background-clip: padding-box;
background-color: #f1f3f4;
border: 4px solid transparent; border: 4px solid transparent;
bottom: 12px;
box-shadow: 0px 0px 0px 1px #f1f3f4;
left: 12px;
right: 12px;
top: 12px;
transition: border-width 100ms ease-in; transition: border-width 100ms ease-in;
} }
...@@ -955,10 +955,10 @@ body._10sec .description span[i18n-content=labelTimer10s] { ...@@ -955,10 +955,10 @@ body._10sec .description span[i18n-content=labelTimer10s] {
} }
#warning #error-msg { #warning #error-msg {
text-align: center;
font-size: 18px;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
font-size: 18px;
line-height: 32px; line-height: 32px;
text-align: center;
white-space: pre-wrap; white-space: pre-wrap;
} }
...@@ -967,12 +967,12 @@ body._10sec .description span[i18n-content=labelTimer10s] { ...@@ -967,12 +967,12 @@ body._10sec .description span[i18n-content=labelTimer10s] {
} }
#dialog-popup { #dialog-popup {
transform: translateY(20px);
background: white; background: white;
border-radius: 4px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 20px; padding: 20px;
border-radius: 4px; transform: translateY(20px);
transition: transform 200ms; transition: transform 200ms;
} }
...@@ -981,21 +981,21 @@ body.dialog #dialog #dialog-popup { ...@@ -981,21 +981,21 @@ body.dialog #dialog #dialog-popup {
} }
#dialog #dialog-msg { #dialog #dialog-msg {
user-select: text; /* Allow copying the message. */
cursor: text;
color: #202124; color: #202124;
font-size: 14px; cursor: text;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
font-size: 14px;
max-height: 320px; max-height: 320px;
max-width: 472px; max-width: 472px;
overflow: auto; overflow: auto;
padding: 20px 0; padding: 20px 0;
user-select: text; /* Allow copying the message. */
white-space: pre-wrap; white-space: pre-wrap;
} }
#dialog #dialog-msg::-webkit-scrollbar { #dialog #dialog-msg::-webkit-scrollbar {
width: 6px;
height: 6px; height: 6px;
width: 6px;
} }
#dialog #dialog-msg::-webkit-scrollbar-track { #dialog #dialog-msg::-webkit-scrollbar-track {
...@@ -1004,8 +1004,8 @@ body.dialog #dialog #dialog-popup { ...@@ -1004,8 +1004,8 @@ body.dialog #dialog #dialog-popup {
#dialog #dialog-msg::-webkit-scrollbar-thumb { #dialog #dialog-msg::-webkit-scrollbar-thumb {
background: gray; background: gray;
width: 6px;
height: 6px; height: 6px;
width: 6px;
} }
#dialog-buttons { #dialog-buttons {
...@@ -1017,12 +1017,12 @@ body.dialog #dialog #dialog-popup { ...@@ -1017,12 +1017,12 @@ body.dialog #dialog #dialog-popup {
#dialog-buttons button { #dialog-buttons button {
background-color: white; background-color: white;
border-style: solid;
color: #2581df; color: #2581df;
font-size: 12px;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
border-style: solid; font-size: 12px;
padding: 6px 18px;
margin: 4px; margin: 4px;
padding: 6px 18px;
} }
#dialog-buttons button:focus { #dialog-buttons button:focus {
...@@ -1037,10 +1037,10 @@ body.dialog #dialog #dialog-popup { ...@@ -1037,10 +1037,10 @@ body.dialog #dialog #dialog-popup {
#spinner { #spinner {
background-image: url(../images/spinner.svg); background-image: url(../images/spinner.svg);
width: 32px;
height: 32px; height: 32px;
z-index: 1;
visibility: hidden; visibility: hidden;
width: 32px;
z-index: 1;
} }
body:not(.mode-switching):not(.streaming) #spinner { body:not(.mode-switching):not(.streaming) #spinner {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment