ciyidogan commited on
Commit
5b0c107
·
verified ·
1 Parent(s): 5d3dea0

Create apis.component.scss

Browse files
flare-ui/src/app/components/apis/apis.component.scss ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .apis-container {
2
+ height: 100%;
3
+ display: flex;
4
+ flex-direction: column;
5
+
6
+ .toolbar {
7
+ display: flex;
8
+ justify-content: space-between;
9
+ align-items: center;
10
+ margin-bottom: 20px;
11
+ flex-wrap: wrap;
12
+ gap: 16px;
13
+
14
+ .toolbar-left {
15
+ display: flex;
16
+ gap: 8px;
17
+ align-items: center;
18
+ }
19
+
20
+ .toolbar-right {
21
+ display: flex;
22
+ gap: 16px;
23
+ align-items: center;
24
+
25
+ .search-field {
26
+ width: 300px;
27
+ }
28
+ }
29
+ }
30
+
31
+ .table-container {
32
+ flex: 1;
33
+ overflow: auto;
34
+ background: white;
35
+ border-radius: 8px;
36
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
37
+
38
+ .apis-table {
39
+ width: 100%;
40
+
41
+ .url-cell {
42
+ .url-text {
43
+ max-width: 300px;
44
+ overflow: hidden;
45
+ text-overflow: ellipsis;
46
+ white-space: nowrap;
47
+ display: inline-block;
48
+ vertical-align: middle;
49
+ }
50
+ }
51
+
52
+ .method-badge {
53
+ padding: 4px 12px;
54
+ border-radius: 12px;
55
+ font-size: 12px;
56
+ font-weight: 500;
57
+ text-transform: uppercase;
58
+
59
+ &.method-get {
60
+ background-color: #e3f2fd;
61
+ color: #1976d2;
62
+ }
63
+
64
+ &.method-post {
65
+ background-color: #e8f5e9;
66
+ color: #388e3c;
67
+ }
68
+
69
+ &.method-put {
70
+ background-color: #fff3e0;
71
+ color: #f57c00;
72
+ }
73
+
74
+ &.method-patch {
75
+ background-color: #fce4ec;
76
+ color: #c2185b;
77
+ }
78
+
79
+ &.method-delete {
80
+ background-color: #ffebee;
81
+ color: #d32f2f;
82
+ }
83
+ }
84
+
85
+ .auth-icon {
86
+ font-size: 18px;
87
+ height: 18px;
88
+ width: 18px;
89
+ }
90
+
91
+ .deleted-icon {
92
+ color: #f44336;
93
+ font-size: 16px;
94
+ vertical-align: middle;
95
+ margin-left: 8px;
96
+ }
97
+
98
+ .deleted-row {
99
+ opacity: 0.5;
100
+ background-color: #fafafa;
101
+ }
102
+ }
103
+
104
+ .no-data {
105
+ text-align: center;
106
+ padding: 60px 20px;
107
+ color: #999;
108
+
109
+ mat-icon {
110
+ font-size: 64px;
111
+ height: 64px;
112
+ width: 64px;
113
+ margin-bottom: 16px;
114
+ }
115
+
116
+ p {
117
+ font-size: 16px;
118
+ margin: 0;
119
+ }
120
+ }
121
+ }
122
+
123
+ mat-progress-bar {
124
+ position: absolute;
125
+ top: 0;
126
+ left: 0;
127
+ right: 0;
128
+ }
129
+ }
130
+
131
+ @media (max-width: 768px) {
132
+ .apis-container {
133
+ .toolbar {
134
+ .toolbar-left,
135
+ .toolbar-right {
136
+ width: 100%;
137
+ justify-content: center;
138
+ }
139
+
140
+ .search-field {
141
+ width: 100%;
142
+ }
143
+ }
144
+ }
145
+ }