​NetPractice /
net_practice / css / netpractice.css
16 commits
20-08-2026
250 lines 4.4 kB
  1
  2/* net Practice CSS */
  3/* Warning : some parameters are set / modified by script */
  4
  5
  6body {
  7    font-family: "Arial", sans-serif;
  8    padding:0px;
  9    margin:0px;
 10	background:	linear-gradient(rgba(204, 204, 204, 0.9), rgba(204, 204, 204, 0.9)), url("../img/site-bg.png");
 11}
 12
 13
 14* {
 15    box-sizing: border-box;
 16}
 17
 18
 19
 20.fade-in {
 21    opacity: 0;
 22    animation: fadeInUp .6s ease-out forwards;
 23}
 24
 25@keyframes fadeInUp {
 26    from {
 27        opacity: 0;
 28        transform: translateY(20px);
 29    }
 30    to {
 31        opacity: 1;
 32        transform: translateY(0);
 33    }
 34}
 35
 36
 37
 38/* message box in index.html */
 39
 40.intro_div {
 41    background-color: #EEEEEE;
 42    border: 1px solid #BBBBBB;
 43    border-radius: 10px;
 44    padding:20px;
 45    width:30%;
 46    margin:auto;
 47    margin-top: 15%;
 48    /* text-align: left; */
 49    box-shadow: 5px 5px 5px gray;
 50
 51}
 52
 53.intro_div img {
 54	width: 25%;
 55}
 56
 57.intro_div .tabs {
 58	margin-top: 20px;
 59	display: flex;
 60	flex-direction: row;
 61	width: 100%;
 62	align-items: center;
 63	border-bottom: 1px solid black;
 64	margin-bottom: 2em;
 65	gap: 10px;
 66	padding-left: 5px;
 67	padding-right: 5px;
 68}
 69
 70.intro_div .tabs div {
 71	flex: 1;
 72	text-align: center;
 73	padding: 10px;
 74	border-top-left-radius: 5px;
 75	border-top-right-radius: 5px;
 76    box-shadow: 3px 0px 5px gray;
 77	border: 0px solid white;
 78	cursor: pointer;
 79}
 80
 81
 82.tab {
 83	display: none;
 84	align-items: center;
 85	flex-direction: column;
 86	text-align: center;
 87}
 88
 89
 90	
 91.intro_div input {
 92	padding: 10px;
 93	margin-top: 5px;
 94	margin-bottom: 10px;
 95	border-radius: 5px;
 96    border: 2px solid #BBBBBB;
 97	box-shadow: 5px 5px 5px gray;
 98    transition: transform 0.3s ease;
 99}
100
101.intro_div input:hover {
102	box-shadow: 5px 7px 5px gray;
103	transform: translate(-2px, -2px);
104}
105
106/* goals div */
107.goals_div {
108	margin: 5px;
109    background-color: #FFFFFF;
110    width:calc(100% - 10px);
111    border:1px solid #BBBBBB;
112    border-radius:5px;
113    padding: 5px;
114	box-shadow: 3px 3px 3px gray;
115}
116
117.goals_div h2 {
118    margin:5px;
119    font-style:italic;
120}
121
122.goals_div input {
123	padding: 10px;
124	margin-top: 5px;
125	margin-bottom: 10px;
126	border-radius: 5px;
127    border: 1px solid #BBBBBB;
128	box-shadow: 5px 5px 5px gray;
129	transition: transform 0.3s ease;
130}
131
132.goals_div input:hover {
133	box-shadow: 5px 7px 5px gray;
134	transform: translate(-2px, -2px);
135}
136
137
138
139/* SVG layer */
140.svg_layer {
141    z-index:-4;
142    position:absolute;
143    top:0px;
144    left:0px;
145}
146
147
148/* logs window */
149.logs_div {
150    background-color: #cce6ff;
151    border:1px solid gray;
152    border-top-left-radius:3px;
153    border-bottom-left-radius:3px;
154    border-bottom-right-radius:3px;
155    position:fixed;
156    bottom:0px;
157    right:0px;
158    width:250px;
159    height:200px;
160    font-size:70%;
161	margin: 4px;
162	box-shadow: 3px 3px 3px gray;
163}
164
165.logs_button {
166    background-color: #cce6ff;
167    position:absolute;
168	top:-20px;
169	width: 20px;
170	height: 20px;
171	right: 0px;
172	box-shadow: 3px 0px 3px gray;
173    border:1px solid gray;
174	border-bottom: 0px solid gray;
175	border-top-left-radius: 3px;
176	border-top-right-radius: 3px;
177	text-align: center;
178	vertical-align: middle;
179	cursor: pointer;
180}
181
182.logs_inner {
183	width: 100%;
184	height: 100%;
185    overflow-y: scroll;
186    position:absolute;
187	top: 0px;
188	left: 0px;
189	padding: 3px;
190}
191
192/* host div (image) */
193.host_div {
194    background-size:contain;
195    background-repeat: no-repeat;
196    background-position: center;
197    /* will be updated by script : position, top, left, width, height, background-image */
198}
199
200
201/* host info (name, route) div */
202.host_info_div {
203    min-width: 170px;
204    min-height: 50px;
205    background-color:rgba(170, 250, 170, 0.9);
206    /* border: 3px solid rgba(150, 150, 255, 0.9); */
207	border: 1px solid gray;
208    border-radius: 3px;	
209	box-shadow: 3px 3px 3px gray;
210	padding: 1px;
211    /* will be updated by script : position, top, left */
212}
213
214.host_info_div table {
215	width: 100%;
216}
217.host_info_div table td {
218	text-align:center;
219}
220
221
222.if_tab {
223    border-collapse: collapse;
224}
225
226/* interface div */
227.itf_div {
228    min-width: 176px;
229    height: 70px;
230    background-color: rgba(250, 190, 190, 0.9);
231	/* border: 3px solid rgba(150, 150, 150, 0.9); */
232	border: 1px solid gray;
233    border-radius: 3px;
234	box-shadow: 3px 3px 3px gray;
235	padding: 1px;
236    /* will be updated by script : position, top, left */
237}
238
239.itf_div table {
240	width:100%;
241}
242.itf_div table td {
243	text-align:center;
244}
245
246/* intro footnote */
247.footnote {
248    font-size:70%;
249    font-style:italic;
250}