From e3c0181357b17af6e67b90668416afde75b657c9 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Wed, 25 Dec 2019 16:19:14 +0100 Subject: [PATCH] Convert all six-digit HEX colors to RGBA colors --- examples/mobile-viewer/viewer.css | 10 +++++----- web/annotation_layer_builder.css | 2 +- web/viewer.css | 24 ++++++++++++------------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/mobile-viewer/viewer.css b/examples/mobile-viewer/viewer.css index 317390a3f..4ed9313a4 100644 --- a/examples/mobile-viewer/viewer.css +++ b/examples/mobile-viewer/viewer.css @@ -26,12 +26,12 @@ html { } header { - background-color: #f4f4f4; + background-color: rgba(244, 244, 244, 1); } header h1 { - border-bottom: 1px solid #d8d8d8; - color: #858585; + border-bottom: 1px solid rgba(216, 216, 216, 1); + color: rgba(133, 133, 133, 1); font-size: 23px; font-style: italic; font-weight: normal; @@ -230,7 +230,7 @@ canvas { } #errorWrapper { - background: none repeat scroll 0 0 #FF5555; + background: none repeat scroll 0 0 rgba(255, 85, 85, 1); color: rgba(255, 255, 255, 1); left: 0; position: absolute; @@ -250,7 +250,7 @@ canvas { } #errorMoreInfo { - background-color: #FFFFFF; + background-color: rgba(255, 255, 255, 1); color: rgba(0, 0, 0, 1); padding: 0.3rem; margin: 0.3rem; diff --git a/web/annotation_layer_builder.css b/web/annotation_layer_builder.css index 80844e866..c62bdbc4e 100644 --- a/web/annotation_layer_builder.css +++ b/web/annotation_layer_builder.css @@ -157,7 +157,7 @@ position: absolute; z-index: 200; max-width: 20em; - background-color: #FFFF99; + background-color: rgba(255, 255, 153, 1); box-shadow: 0px 2px 5px rgba(136, 136, 136, 1); border-radius: 2px; padding: 6px; diff --git a/web/viewer.css b/web/viewer.css index 536423154..3d9fa9fe3 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -34,7 +34,7 @@ html { body { height: 100%; width: 100%; - background-color: #404040; + background-color: rgba(64, 64, 64, 1); background-image: url(images/texture.png); } @@ -217,7 +217,7 @@ html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentatio #toolbarSidebar { width: 100%; height: 32px; - background-color: #424242; /* fallback */ + background-color: rgba(66, 66, 66, 1); /* fallback */ background-image: url(images/texture.png), linear-gradient(rgba(77, 77, 77, 0.99), rgba(64, 64, 64, 0.95)); } @@ -252,7 +252,7 @@ html[dir='rtl'] #sidebarResizer { #toolbarContainer, .findbar, .secondaryToolbar { position: relative; height: 32px; - background-color: #474747; /* fallback */ + background-color: rgba(71, 71, 71, 1); /* fallback */ background-image: url(images/texture.png), linear-gradient(rgba(82, 82, 82, 0.99), rgba(69, 69, 69, 0.95)); } @@ -456,7 +456,7 @@ html[dir='ltr'] .doorHangerRight:before { #findMsg { font-style: italic; - color: #A6B7D0; + color: rgba(166, 183, 208, 1); } #findMsg:empty { display: none; @@ -901,7 +901,7 @@ html[dir="rtl"] #viewOutline.toolbarButton::before { top: 1px; /* Create a filled circle, with a diameter of 9 pixels, using only CSS: */ content: ''; - background-color: #70DB55; + background-color: rgba(112, 219, 85, 1); height: 9px; width: 9px; border-radius: 50%; @@ -1314,7 +1314,7 @@ html[dir='rtl'] .outlineItemToggler::before { } #errorWrapper { - background: none repeat scroll 0 0 #FF5555; + background: none repeat scroll 0 0 rgba(255, 85, 85, 1); color: rgba(255, 255, 255, 1); left: 0; position: absolute; @@ -1336,7 +1336,7 @@ html[dir='rtl'] .outlineItemToggler::before { } #errorMoreInfo { - background-color: #FFFFFF; + background-color: rgba(255, 255, 255, 1); color: rgba(0, 0, 0, 1); padding: 3px; margin: 3px; @@ -1375,7 +1375,7 @@ html[dir='rtl'] .outlineItemToggler::before { color: rgba(217, 217, 217, 1); font-size: 12px; line-height: 14px; - background-color: #474747; /* fallback */ + background-color: rgba(71, 71, 71, 1); /* fallback */ background-image: url(images/texture.png), linear-gradient(rgba(82, 82, 82,0.99), rgba(69, 69, 69, 0.95)); border: 1px solid rgba(0, 0, 0, 0.5); @@ -1460,7 +1460,7 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { #PDFBug { background: none repeat scroll 0 0 rgba(255, 255, 255, 1); - border: 1px solid #666666; + border: 1px solid rgba(102, 102, 102, 1); position: fixed; top: 32px; right: 0; @@ -1470,9 +1470,9 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { width: 300px; } #PDFBug .controls { - background:#EEEEEE; - border-bottom: 1px solid #666666; - padding: 3px; + background: rgba(238, 238, 238, 1); + border-bottom: 1px solid rgba(102, 102, 102, 1); + padding: 3px; } #PDFBug .panels { bottom: 0;