/
githubmirror
/
carbon
Обзор
Документация
Войти
/
githubmirror
/
carbon
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.7.21
components/Toolbar.js
42 строки
875 B
Caleb Taylor
Responsive carbon (#925)
13 янв 2020, 04:07
13 янв 2020, 04:07
24323a9
Код
Авторство
О чём код?
import React from 'react' const Toolbar = props => ( <div className="toolbar" style={props.style}> {props.children} <style jsx> {` .toolbar { width: 100%; height: 40px; margin-bottom: 1rem; display: flex; position: relative; z-index: 3; font-size: 14px; } .toolbar > :global(div) { margin-right: 8px; } .toolbar > :global(div):last-child { margin-right: 0px; } @media (max-width: 920px) { .toolbar { max-width: 100%; height: auto; flex-direction: column; } .toolbar > :global(div:not(:last-of-type)) { margin-right: 0; margin-bottom: 1rem; } } `} </style> </div> ) export default Toolbar