-
Notifications
You must be signed in to change notification settings - Fork 216
Expand file tree
/
Copy pathtable-popout.sass
More file actions
81 lines (71 loc) · 1.58 KB
/
Copy pathtable-popout.sass
File metadata and controls
81 lines (71 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Table popout modal — enlarges wide tables into a full-viewport dialog
.table-expanded
position: fixed
top: 5vh
left: 5vw
width: 90vw
height: 90vh
background: white
z-index: 9999
overflow: auto
padding: 1.5rem
white-space: normal
border-radius: 6px
box-shadow: 0 0 20px rgba(0,0,0,0.08)
table
width: 100%
table-layout: auto
white-space: normal
border-collapse: collapse
th, td
border: 1px solid rgba(0,0,0,0.08)
padding: 0.5rem 0.75rem
vertical-align: top
.table-close-btn
position: sticky
top: 0
display: block
margin-left: auto
margin-bottom: 1rem
background: rgba(255,255,255,0.9)
border: 1px solid rgba(0,0,0,0.12)
padding: 0.35rem 0.5rem
border-radius: 4px
font-size: 1rem
cursor: pointer
box-shadow: 0 2px 6px rgba(0,0,0,0.06)
z-index: 10000
&:focus
outline: 2px solid $primary
outline-offset: 2px
.table-modal-overlay
position: fixed
top: 0
left: 0
width: 100vw
height: 100vh
background: rgba(255,255,255,0.35)
-webkit-backdrop-filter: blur(6px)
backdrop-filter: blur(6px)
z-index: 9998
.table-wrapper
position: relative
margin-bottom: 1.25rem
.table-scroll
overflow-x: auto
-webkit-overflow-scrolling: touch
.table-enlarge-btn
position: absolute
top: 0.5rem
right: 0.5rem
background: rgba(0,0,0,0.6)
color: white
border: none
padding: 0.35rem 0.5rem
border-radius: 3px
cursor: pointer
font-size: 0.85rem
z-index: 2
&:focus
outline: 2px solid $primary
outline-offset: 2px