diff --git a/app/assets/stylesheets/sx_font.css b/app/assets/stylesheets/sx_font.css new file mode 100644 index 00000000..b8b08f2a --- /dev/null +++ b/app/assets/stylesheets/sx_font.css @@ -0,0 +1,42 @@ +@font-face { + font-family: "Roboto"; + src: url(../fonts/roboto/Roboto-Regular.woff); + font-weight: 400; +} + +@font-face { + font-family: 'Material Icons'; + src: url(../fonts/material/Material-Design-Iconic-Font.eot); /* For IE6-8 */ + src: local('Material Icons'), + local('MaterialIcons-Regular'), + url(../fonts/material/Material-Design-Iconic-Font.woff2) format('woff2'), + url(../fonts/material/Material-Design-Iconic-Font.woff) format('woff'), + url(../fonts/material/Material-Design-Iconic-Font.ttf) format('truetype'); + font-style: normal; + font-weight: 400; +} + +.material-icons { + font-family: 'Material Icons'; + font-weight: normal; + font-style: normal; + font-size: 24px; /* Preferred icon size */ + display: inline-block; + line-height: 1; + text-transform: none; + letter-spacing: normal; + word-wrap: normal; + white-space: nowrap; + direction: ltr; + + /* Support for all WebKit browsers. */ + -webkit-font-smoothing: antialiased; + /* Support for Safari and Chrome. */ + text-rendering: optimizeLegibility; + + /* Support for Firefox. */ + -moz-osx-font-smoothing: grayscale; + + /* Support for IE. */ + font-feature-settings: 'liga'; +} \ No newline at end of file diff --git a/app/views/layouts/_left_sidebar.html.erb b/app/views/layouts/_left_sidebar.html.erb index 82a9ef6e..8e0df686 100644 --- a/app/views/layouts/_left_sidebar.html.erb +++ b/app/views/layouts/_left_sidebar.html.erb @@ -30,7 +30,7 @@ diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 2c0332c7..7059543f 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -8,11 +8,11 @@ SmartSales : Restaurant <%= csrf_meta_tags %> - + - + + @@ -31,6 +31,7 @@ + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index ac5393ff..55d35fff 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -11,6 +11,7 @@ Rails.application.config.assets.version = '1.0' # Rails.application.config.assets.precompile += %w( search.js ) # -- Initial Layout ----- +Rails.application.config.assets.precompile += %w( sx_font.css ) Rails.application.config.assets.precompile += %w( login.css ) Rails.application.config.assets.precompile += %w( login.js ) diff --git a/public/favicon.ico b/public/favicon.ico index e69de29b..0503ec73 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/fonts/material/Material-Design-Iconic-Font.eot b/public/fonts/material/Material-Design-Iconic-Font.eot new file mode 100644 index 00000000..5e251915 Binary files /dev/null and b/public/fonts/material/Material-Design-Iconic-Font.eot differ diff --git a/public/fonts/material/Material-Design-Iconic-Font.svg b/public/fonts/material/Material-Design-Iconic-Font.svg new file mode 100644 index 00000000..8cb2673e --- /dev/null +++ b/public/fonts/material/Material-Design-Iconic-Font.svg @@ -0,0 +1,787 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/fonts/material/Material-Design-Iconic-Font.ttf b/public/fonts/material/Material-Design-Iconic-Font.ttf new file mode 100644 index 00000000..5d489fdd Binary files /dev/null and b/public/fonts/material/Material-Design-Iconic-Font.ttf differ diff --git a/public/fonts/material/Material-Design-Iconic-Font.woff b/public/fonts/material/Material-Design-Iconic-Font.woff new file mode 100644 index 00000000..933b2bf8 Binary files /dev/null and b/public/fonts/material/Material-Design-Iconic-Font.woff differ diff --git a/public/fonts/material/Material-Design-Iconic-Font.woff2 b/public/fonts/material/Material-Design-Iconic-Font.woff2 new file mode 100644 index 00000000..35970e27 Binary files /dev/null and b/public/fonts/material/Material-Design-Iconic-Font.woff2 differ