Skip to content

Commit 7604bd8

Browse files
committed
fixed scss file
1 parent 8aa267d commit 7604bd8

File tree

1 file changed

+154
-9
lines changed
  • examples/Web Applications/Framework Examples/React/ApiKeyAuthApp/src

1 file changed

+154
-9
lines changed
Lines changed: 154 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,47 @@
1-
@use "@ni/nimble-react/styles/tokens" as *;
1+
2+
@use '@ni/nimble-react/styles/tokens' as *;
3+
24

35
body {
46
background-color: #f5f5f5;
57
overflow-y: auto;
6-
margin: 0;
8+
margin: 0;
79
font: $ni-nimble-body-font;
810
}
911

10-
.header {
12+
.header{
1113
background-color: #e6e6e6;
1214
box-sizing: border-box;
1315
display: grid;
16+
/* grid-template-columns: repeat(auto-fit, 220px); */
1417
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
1518
gap: 2%;
19+
1620
width: 100%;
1721
min-height: 120px;
18-
padding: 0 1%;
22+
padding-left: 1%;
23+
padding-right: 1%;
1924
}
2025

2126
.header a {
2227
color: inherit;
2328
text-decoration: none;
29+
}
30+
31+
32+
.header a{
2433
background-color: #e6e6e6;
25-
margin: 4% 0 5% 0;
34+
margin-top: 4%;
35+
margin-bottom: 5%;
2636
display: flex;
2737
flex-direction: column;
28-
padding: 3%;
38+
padding-top: 3%;
39+
padding-left: 3%;
40+
padding-right: 3%;
41+
padding-bottom: 3%;
2942
}
3043

31-
.header a:hover {
44+
.header a:hover{
3245
background-color: white;
3346
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
3447
border: 1px solid #26a97c;
@@ -40,7 +53,139 @@ body {
4053
text-align: center;
4154
}
4255

43-
.head_text {
44-
padding: 0 5%;
56+
.head_text{
57+
padding-left: 5%;
58+
padding-right: 5%;
4559
font-size: 16px;
4660
}
61+
62+
63+
64+
65+
66+
.page {
67+
min-height: 100vh;
68+
display: flex;
69+
flex-direction: column;
70+
}
71+
72+
.content {
73+
flex: 1;
74+
}
75+
76+
.main_description{
77+
display: flex;
78+
flex-direction: row;
79+
justify-content: center;
80+
align-items: flex-start;
81+
}
82+
83+
.button_and_title{
84+
display: flex;
85+
flex-direction: row;
86+
align-items: center;
87+
gap: 16px;
88+
flex-direction: row;
89+
margin-bottom: 0.25%;
90+
}
91+
.button{
92+
margin-top: 0.5%;
93+
margin-left: 0.5%;
94+
}
95+
96+
.API_title {
97+
align-self: center;
98+
margin-top: 12px;
99+
margin-left: 41% !important;
100+
font-family: "Source Sans 3", Arial, sans-serif;
101+
color: #333;
102+
margin-bottom: 0;
103+
}
104+
105+
106+
107+
108+
109+
110+
111+
112+
113+
114+
115+
116+
117+
.API_method_and_path {
118+
display: flex;
119+
color: #044123;
120+
align-items: flex-start;
121+
gap: 8px;
122+
margin-left: 1%;
123+
}
124+
125+
.API_description{
126+
color: #044123;
127+
padding: 1%;
128+
}
129+
130+
.method {
131+
background-color: #009b65;
132+
color: #f5f5f5;
133+
padding: 4px 10px;
134+
display: inline-block;
135+
align-items: center;
136+
line-height: 1;
137+
margin-top: 1%;
138+
border-radius:10px;
139+
font-size: 18px;
140+
}
141+
142+
.path {
143+
display: inline-flex;
144+
align-items: center;
145+
line-height: 1;
146+
margin: 0;
147+
font-size: 1rem;
148+
font-weight: bold;
149+
margin-top: 1.2%;
150+
font-size: 18px;
151+
}
152+
153+
154+
155+
.API {
156+
background-color: #e6e6e6;
157+
display: flex;
158+
align-items: stretch;
159+
flex-direction: column;
160+
max-width: 60%;
161+
min-width: 60%;
162+
height: auto;
163+
padding: 0;
164+
margin-left: 0;
165+
margin-top: 0%;
166+
font-size: 18px;
167+
/* padding-left: 1%;
168+
padding-right: 1%; */
169+
}
170+
171+
.API_response {
172+
background-color: #ffffff;
173+
padding: 15px;
174+
margin-top: 10px;
175+
font-family: 'Courier New', monospace;
176+
font-size: 0.9rem;
177+
line-height: 1.5;
178+
overflow-x: auto;
179+
max-height: 300px;
180+
overflow-y: auto;
181+
white-space: pre-wrap;
182+
word-break: break-word;
183+
border: 1px solid #e0e0e0;
184+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
185+
}
186+
187+
.API_description_title {
188+
font-weight: bold;
189+
color: #044123;
190+
padding: 1%;
191+
}

0 commit comments

Comments
 (0)