light / static /css /style.css
manhteky123's picture
Upload 7 files
0213045 verified
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #f5f5f5;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.container {
background: white;
border-radius: 10px;
padding: 40px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
max-width: 400px;
width: 100%;
text-align: center;
}
h1 {
color: #333;
margin-bottom: 30px;
font-size: 1.8em;
font-weight: 600;
}
.light-container {
margin: 40px 0;
}
.bulb-wrapper {
position: relative;
display: inline-block;
}
.bulb {
font-size: 100px;
transition: all 0.2s ease;
filter: grayscale(100%);
position: relative;
display: inline-block;
}
.bulb.on {
filter: grayscale(0%);
}
.bulb-glow {
display: none;
}
.status-text {
font-size: 1.2em;
font-weight: 500;
margin-top: 20px;
color: #666;
transition: color 0.2s ease;
}
.status-text.on {
color: #333;
}
.controls {
margin: 30px 0;
}
.btn {
padding: 12px 24px;
font-size: 1em;
border: 1px solid #ddd;
border-radius: 5px;
cursor: pointer;
transition: all 0.2s ease;
font-weight: 500;
margin: 8px;
background: white;
color: #333;
}
.btn:hover {
background: #f8f8f8;
border-color: #bbb;
}
.btn:active {
background: #e8e8e8;
}
.btn-toggle {
background: #333;
color: white;
border-color: #333;
width: 100%;
font-size: 1em;
}
.btn-toggle:hover {
background: #555;
border-color: #555;
}
.button-group {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 20px;
}
.btn-on {
background: white;
color: #333;
flex: 1;
}
.btn-on:hover {
background: #f8f8f8;
}
.btn-off {
background: white;
color: #333;
flex: 1;
}
.btn-off:hover {
background: #f8f8f8;
}
.info-panel {
background: #fafafa;
border-radius: 5px;
padding: 15px;
margin-top: 25px;
border: 1px solid #e0e0e0;
}
.info-panel h3 {
color: #555;
margin-bottom: 10px;
font-size: 1em;
font-weight: 600;
}
.info-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
}
.info-item span:first-child {
color: #666;
font-weight: 400;
}
.status-badge {
padding: 4px 12px;
border-radius: 3px;
font-weight: 500;
font-size: 0.85em;
}
.status-badge.on {
background: #333;
color: white;
}
.status-badge.off {
background: #e0e0e0;
color: #666;
}
@media (max-width: 480px) {
.container {
padding: 20px;
}
h1 {
font-size: 1.5em;
}
.bulb {
font-size: 80px;
}
.button-group {
flex-direction: column;
}
.btn-on, .btn-off {
width: 100%;
}
}