tabItemContainer.tsx 780 B

1234567891011121314151617181920212223242526272829303132
  1. import styled from '@emotion/styled';
  2. const TabItemContainer = styled('div')`
  3. position: relative;
  4. height: 100%;
  5. overflow: hidden;
  6. border: 1px solid ${p => p.theme.border};
  7. border-radius: ${p => p.theme.borderRadius};
  8. display: grid;
  9. .beforeCurrentTime,
  10. .afterCurrentTime {
  11. border-top: 1px solid transparent;
  12. border-bottom: 1px solid transparent;
  13. }
  14. .beforeHoverTime + .afterHoverTime {
  15. border-top-color: ${p => p.theme.purple200};
  16. }
  17. .beforeHoverTime:last-child {
  18. border-bottom-color: ${p => p.theme.purple200};
  19. }
  20. .beforeCurrentTime + .afterCurrentTime {
  21. border-top-color: ${p => p.theme.purple300};
  22. }
  23. .beforeCurrentTime:last-child {
  24. border-bottom-color: ${p => p.theme.purple300};
  25. }
  26. `;
  27. export default TabItemContainer;