Pārlūkot izejas kodu

HUE-6077 [frontend] Ship an embedded woff/woff2 of Roboto and Roboto Mono

Enrico Berti 8 gadi atpakaļ
vecāks
revīzija
12787060cb
20 mainītis faili ar 68 papildinājumiem un 1 dzēšanām
  1. 66 0
      desktop/core/src/desktop/static/desktop/css/roboto.css
  2. 0 1
      desktop/core/src/desktop/static/desktop/ext/css/cui/bootstrap2.css
  3. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-300-normal.woff
  4. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-300-normal.woff2
  5. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-400-normal.woff
  6. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-400-normal.woff2
  7. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-500-normal.woff
  8. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-500-normal.woff2
  9. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-700-normal.woff
  10. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-700-normal.woff2
  11. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-300-normal.woff
  12. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-300-normal.woff2
  13. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-400-normal.woff
  14. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-400-normal.woff2
  15. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-500-normal.woff
  16. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-500-normal.woff2
  17. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-700-normal.woff
  18. BIN
      desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-700-normal.woff2
  19. 1 0
      desktop/core/src/desktop/templates/common_header.mako
  20. 1 0
      desktop/core/src/desktop/templates/hue.mako

+ 66 - 0
desktop/core/src/desktop/static/desktop/css/roboto.css

@@ -0,0 +1,66 @@
+/*
+ Licensed to Cloudera, Inc. under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  Cloudera, Inc. licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+@font-face {
+	font-family: 'Roboto';
+	font-style: normal;
+	font-weight: 300;
+	src: local('Roboto Light'), local('Roboto-Light'), url(../ext/fonts/roboto-300-normal.woff2) format('woff'), url(../ext/fonts/roboto-300-normal.woff) format('woff');
+}
+@font-face {
+	font-family: 'Roboto';
+	font-style: normal;
+	font-weight: 400;
+	src: local('Roboto'), local('Roboto-Regular'), url(../ext/fonts/roboto-400-normal.woff2) format('woff'), url(../ext/fonts/roboto-400-normal.woff) format('woff');
+}
+@font-face {
+	font-family: 'Roboto';
+	font-style: normal;
+	font-weight: 500;
+	src: local('Roboto Medium'), local('Roboto-Medium'), url(../ext/fonts/roboto-500-normal.woff2) format('woff'), url(../ext/fonts/roboto-500-normal.woff) format('woff');
+}
+@font-face {
+	font-family: 'Roboto';
+	font-style: normal;
+	font-weight: 700;
+	src: local('Roboto Bold'), local('Roboto-Bold'), url(../ext/fonts/roboto-700-normal.woff2) format('woff'), url(../ext/fonts/roboto-700-normal.woff) format('woff');
+}
+@font-face {
+	font-family: 'Roboto Mono';
+	font-style: normal;
+	font-weight: 300;
+	src: local('Roboto Mono Light'), local('RobotoMono-Light'), url(../ext/fonts/roboto-mono-300-normal.woff2) format('woff'), url(../ext/fonts/roboto-mono-300-normal.woff) format('woff');
+}
+@font-face {
+	font-family: 'Roboto Mono';
+	font-style: normal;
+	font-weight: 400;
+	src: local('Roboto Mono'), local('RobotoMono-Regular'), url(../ext/fonts/roboto-mono-400-normal.woff2) format('woff'), url(../ext/fonts/roboto-mono-400-normal.woff) format('woff');
+}
+@font-face {
+	font-family: 'Roboto Mono';
+	font-style: normal;
+	font-weight: 500;
+	src: local('Roboto Mono Medium'), local('RobotoMono-Medium'), url(../ext/fonts/roboto-mono-500-normal.woff2) format('woff'), url(../ext/fonts/roboto-mono-500-normal.woff) format('woff');
+}
+@font-face {
+	font-family: 'Roboto Mono';
+	font-style: normal;
+	font-weight: 700;
+	src: local('Roboto Mono Bold'), local('RobotoMono-Bold'), url(../ext/fonts/roboto-mono-700-normal.woff2) format('woff'), url(../ext/fonts/roboto-mono-700-normal.woff) format('woff');
+}

+ 0 - 1
desktop/core/src/desktop/static/desktop/ext/css/cui/bootstrap2.css

@@ -15,7 +15,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-@import url('https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono:300,400,500,700');
 .clearfix,
 .panel-body {
   *zoom: 1;

BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-300-normal.woff


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-300-normal.woff2


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-400-normal.woff


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-400-normal.woff2


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-500-normal.woff


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-500-normal.woff2


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-700-normal.woff


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-700-normal.woff2


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-300-normal.woff


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-300-normal.woff2


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-400-normal.woff


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-400-normal.woff2


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-500-normal.woff


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-500-normal.woff2


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-700-normal.woff


BIN
desktop/core/src/desktop/static/desktop/ext/fonts/roboto-mono-700-normal.woff2


+ 1 - 0
desktop/core/src/desktop/templates/common_header.mako

@@ -57,6 +57,7 @@ if USE_NEW_EDITOR.get():
   <meta name="description" content="">
   <meta name="author" content="">
 
+  <link href="${ static('desktop/css/roboto.css') }" rel="stylesheet">
   <link href="${ static('desktop/ext/css/cui/cui.css') }" rel="stylesheet">
   <link href="${ static('desktop/ext/css/cui/bootstrap2.css') }" rel="stylesheet">
   <link href="${ static('desktop/ext/css/cui/bootstrap-responsive2.css') }" rel="stylesheet">

+ 1 - 0
desktop/core/src/desktop/templates/hue.mako

@@ -43,6 +43,7 @@
   <meta name="description" content="">
   <meta name="author" content="">
 
+  <link href="${ static('desktop/css/roboto.css') }" rel="stylesheet">
   <link href="${ static('desktop/ext/css/cui/cui.css') }" rel="stylesheet">
   <link href="${ static('desktop/ext/css/cui/bootstrap2.css') }" rel="stylesheet">
   <link href="${ static('desktop/ext/css/cui/bootstrap-responsive2.css') }" rel="stylesheet">