App.css
css3 kB176 linesIn Examples.zip
Examples.zipChapter14-UseRefsrcApp.css
.App {
min-height: 100vh;
background: #f5f7fa;
}
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 40px 20px;
text-align: center;
}
.content {
max-width: 1400px;
margin: 0 auto;
padding: 40px 20px;
}
.info-banner {
background: white;
padding: 25px;
border-radius: 10px;
margin-bottom: 30px;
border-left: 5px solid #667eea;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.info-banner h2 {
color: #667eea;
margin-top: 0;
}
.examples-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 25px;
margin-bottom: 30px;
}
.demo-box {
background: white;
padding: 25px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.demo-box h3 {
margin: 0 0 15px 0;
color: #333;
border-bottom: 2px solid #667eea;
padding-bottom: 10px;
}
input[type="text"] {
width: 100%;
padding: 10px;
border: 2px solid #ddd;
border-radius: 5px;
font-size: 16px;
margin: 10px 0;
}
input:focus {
outline: none;
border-color: #667eea;
}
.timer {
font-size: 3em;
font-weight: bold;
color: #667eea;
text-align: center;
margin: 20px 0;
}
.button-group {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin: 10px 0;
}
button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-weight: 500;
transition: transform 0.2s;
}
button:hover {
transform: scale(1.05);
}
.measure-box {
background: #f9f9f9;
padding: 40px;
margin: 15px 0;
border: 2px dashed #667eea;
border-radius: 5px;
text-align: center;
}
.input-group {
display: flex;
flex-direction: column;
gap: 10px;
}
.scroll-container {
border: 2px solid #ddd;
border-radius: 5px;
height: 150px;
overflow-y: scroll;
margin: 15px 0;
}
.scroll-marker {
padding: 10px;
background: #667eea;
color: white;
text-align: center;
font-weight: bold;
}
.scroll-content {
padding: 20px;
}
.comparison {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
margin: 15px 0;
}
.comparison > div {
padding: 15px;
background: #f9f9f9;
border-radius: 5px;
}
.note {
color: #666;
font-style: italic;
font-size: 0.9em;
margin-top: 10px;
}
.tips-box {
background: white;
padding: 25px;
border-radius: 10px;
border-left: 5px solid #28a745;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.tips-box h3 {
margin-top: 0;
color: #28a745;
}
.tips-box ul {
line-height: 2;
}