Skip to content

Commit

Permalink
change default font, close #39
Browse files Browse the repository at this point in the history
set Roboto as default font
change tabs class
  • Loading branch information
grin3671 committed Oct 21, 2019
1 parent e171a39 commit 45a5231
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 13 deletions.
7 changes: 6 additions & 1 deletion assets/font-arial.sass
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Шрифт: Arial */
:root
--font-main: 'Arial', sans-serif
--font-alt: var(--font-main)
--font-alt-text-letter-spacing: normal

body, input, select, button, textarea
font-family: 'Arial', sans-serif
font-family: var(--font-main)
7 changes: 6 additions & 1 deletion assets/font-roboto.sass
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmEU9fBBc4.woff2) format('woff2')
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD

:root
--font-main: 'Roboto', sans-serif
--font-alt: var(--font-main)
--font-alt-text-letter-spacing: normal

body, input, select, button, textarea
font-family: 'Roboto', sans-serif
font-family: var(--font-main)
7 changes: 6 additions & 1 deletion assets/font-roboto_condensed.sass
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,10 @@
src: local('Roboto Condensed Bold'), local('RobotoCondensed-Bold'), url(https://fonts.gstatic.com/s/robotocondensed/v16/ieVi2ZhZI2eCN5jzbjEETS9weq8-32meGCQYbw.woff2) format('woff2')
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD

:root
--font-main: 'Roboto Condensed', sans-serif
--font-alt: var(--font-main)
--font-alt-text-letter-spacing: normal

body, input, select, button, textarea
font-family: 'Roboto Condensed', sans-serif
font-family: var(--font-main)
16 changes: 8 additions & 8 deletions assets/tests/td-tabs.sass
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
$break_vertical: 960px

.b-tabs
.u-tabs
// Контейнер
&.--vertical
@media (min-width: $break_vertical)
Expand All @@ -12,35 +12,35 @@ $break_vertical: 960px
border-radius: $border-rounded

// Список переключателей
.b-tabs_list
& > div:not([data-tab])
flex-direction: column
flex-shrink: 0
width: 200px
padding: 8px 0
border-right: 1px solid $color-border

// Переключатель
.b-tabs_switch
[data-tab-switch]
padding: 8px 16px
margin: 0
border: 0
border-radius: 0
text-align: left

// Содержимое вкладки
.b-tabs_panel
[data-tab]
flex-grow: 1
padding: 18px 24px

// Список переключателей
.b-tabs_list
& > div:not([data-tab])
display: flex
flex-direction: row
flex-wrap: nowrap
overflow-y: auto

// Переключатель
.b-tabs_switch
[data-tab-switch]
display: block
flex-shrink: 0
min-width: 148px
Expand Down Expand Up @@ -70,12 +70,12 @@ $break_vertical: 960px
cursor: default

// Содержимое вкладки
.b-tabs_panel
[data-tab]
padding: 12px 8px

// Анимация переключения
&.--ripple
.b-tabs_switch
[data-tab-switch]
position: relative
overflow: hidden
-webkit-tap-highlight-color: rgba(0,0,0,0)
Expand Down
4 changes: 2 additions & 2 deletions config/theme_files.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
{
"url": "font-arial.sass",
"cat": "font",
"checked": true
"checked": false
},
{
"url": "font-roboto.sass",
"cat": "font",
"checked": false
"checked": true
},
{
"url": "font-roboto_condensed.sass",
Expand Down

0 comments on commit 45a5231

Please sign in to comment.