style.scss 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #tabs-wrapper {
  2. position: relative;
  3. display: flex;
  4. align-items: center;
  5. padding: 25px 0 0 32px;
  6. margin-bottom: 24px;
  7. .scroll-arrow {
  8. display: none;
  9. }
  10. }
  11. #tabs {
  12. display: flex;
  13. flex-wrap: nowrap;
  14. align-items: center;
  15. justify-content: start;
  16. overflow-x: scroll;
  17. cursor: grab;
  18. gap: 4px;
  19. touch-action: pan-y;
  20. scrollbar-width: none;
  21. -ms-overflow-style: none;
  22. &::-webkit-scrollbar {
  23. display: none;
  24. }
  25. a {
  26. color: var(--text-link);
  27. white-space: nowrap;
  28. border-radius: 4px;
  29. flex-shrink: 0;
  30. padding: 0 12px 0 0;
  31. -webkit-user-select: none;
  32. user-select: none;
  33. -webkit-user-drag: none;
  34. -webkit-tap-highlight-color: transparent;
  35. outline: none;
  36. &:hover {
  37. color: var(--text-link);
  38. text-decoration: underline;
  39. }
  40. &.active {
  41. color: var(--text-link-hover);
  42. text-decoration: underline;
  43. font-weight: 600;
  44. }
  45. }
  46. }
  47. // 태블릿+모바일: 탭이 넘쳐 잘려 보일 수 있으므로 좌우 스크롤 화살표 항상 노출
  48. @media (max-width: 1024px) {
  49. #tabs-wrapper {
  50. padding: 15px 0 15px 0;
  51. margin-bottom: 0;
  52. gap: 0;
  53. .scroll-arrow {
  54. display: flex;
  55. align-items: center;
  56. justify-content: center;
  57. flex-shrink: 0;
  58. width: 28px;
  59. height: 28px;
  60. border: none;
  61. background: transparent;
  62. color: var(--text-secondary);
  63. font-size: 0.75rem;
  64. cursor: pointer;
  65. &:active {
  66. color: var(--text-link);
  67. }
  68. }
  69. }
  70. #tabs {
  71. flex: 1;
  72. min-width: 0;
  73. }
  74. }
  75. @media (max-width: 576px) {
  76. main {
  77. #changeApprove, #changeEmail, #changeIntro, #changeName, #changePassword,
  78. #changeSummary, #changeThumb, #profile, #verifyEmail, #withdraw, #loginLog,
  79. #myPosts, #myComments, #expLogs {
  80. padding: 15px 10px 22px 10px;
  81. }
  82. }
  83. }