소스 검색

Add light background to images and iframes

Jasper van Merle 7 년 전
부모
커밋
e2336eebc7
3개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      assets/stylesheets/global/_base.scss
  2. 2 0
      assets/stylesheets/global/_variables-dark.scss
  3. 2 0
      assets/stylesheets/global/_variables.scss

+ 4 - 0
assets/stylesheets/global/_base.scss

@@ -218,6 +218,10 @@ button:focus {
   outline: -webkit-focus-ring-color auto 5px;
 }
 
+img, iframe {
+  background: $externalsBackground;
+}
+
 input[type="search"]::-webkit-search-cancel-button,
 input[type="search"]::-webkit-search-decoration {
   -webkit-appearance: none;

+ 2 - 0
assets/stylesheets/global/_variables-dark.scss

@@ -13,6 +13,8 @@ $sidebarMediumWidth: 16rem;
 $documentBackground: #222;
 $contentBackground: #33373a;
 
+$externalsBackground: #fff;
+
 $textColor: #cbd0d0;
 $textColorLight: #9da5ad;
 $textColorLighter: #77787a;

+ 2 - 0
assets/stylesheets/global/_variables.scss

@@ -13,6 +13,8 @@ $sidebarMediumWidth: 16rem;
 $documentBackground: #f3f3f3;
 $contentBackground: #fff;
 
+$externalsBackground: $contentBackground;
+
 $textColor: #333;
 $textColorLight: #666;
 $textColorLighter: #888;