| /* Copyright 2015 The Chromium Authors | |
| * Use of this source code is governed by a BSD-style license that can be | |
| * found in the LICENSE file. */ | |
| /* This file is dynamically processed by a C++ data source handler to fill in | |
| * some per-platform/locale styles that dramatically alter the page. This is | |
| * done to reduce flicker, as JS may not run before the page is rendered. | |
| * | |
| * There are two ways to include this stylesheet: | |
| * 1. via its chrome://resources/ URL in HTML, i.e.: | |
| * | |
| * <link rel="stylesheet" href="chrome://resources/css/text_defaults_md.css"> | |
| * | |
| * 2. via the webui::AppendWebUICSSTextDefaultsMd() method to directly append it | |
| * to an HTML string. | |
| * Otherwise its placeholders won't be expanded. */ | |
| <if expr="is_linux"> | |
| @import url(//resources/css/roboto.css); | |
| </if> | |
| <if expr="is_android"> | |
| @font-face { | |
| font-family: 'Google Sans Text'; | |
| font-style: normal; | |
| font-weight: 400; | |
| src: local('Google Sans Text Regular'), local('GoogleSansText-Regular'), | |
| local('Google Sans Text'), local('google-sans-text'); | |
| } | |
| @font-face { | |
| font-family: 'Google Sans Text'; | |
| font-style: normal; | |
| font-weight: 500; | |
| src: local('Google Sans Text Medium'), local('GoogleSansText-Medium'), | |
| local('google-sans-text-medium'); | |
| } | |
| </if> | |
| body { | |
| font-family: $i18nRaw{fontfamilyMd}; | |
| font-size: 81.25%; | |
| } | |
| button { | |
| font-family: $i18nRaw{fontfamilyMd}; | |
| } |