onedrive_sync/renderer/styles.css

189 lines
2.8 KiB
CSS

body {
margin: 0;
overflow-x: hidden;
}
#main-content {
width: 100vw;
height: 100vh;
border: none;
}
/* Configuration Button */
#config-button {
position: fixed;
top: 10px;
right: 180px;
z-index: 1000;
padding: 8px 16px;
background: transparent;
color: #0078d4;
border: 1px solid #0078d4;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
display: flex;
align-items: center;
gap: 6px;
height: 32px;
transition: all 0.2s;
margin-right: 8px;
}
#config-button:hover {
background: #f0f8ff;
}
#config-button i {
font-size: 14px;
}
/* Configuration Panel */
#config-panel {
position: fixed;
width: 360px;
height: 100vh;
right: -360px;
top: 0;
background: #fff;
box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
padding: 0;
box-sizing: border-box;
transition: right 0.3s ease-in-out;
z-index: 1000;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
#config-panel.open {
right: 0;
}
/* Panel Header */
.panel-header {
padding: 16px 24px;
border-bottom: 1px solid #e5e5e5;
display: flex;
justify-content: space-between;
align-items: center;
}
.panel-header h1 {
font-size: 20px;
font-weight: 600;
color: #333;
margin: 0;
}
.close-button {
position: absolute;
top: 12px;
right: 16px;
background: none;
border: none;
cursor: pointer;
padding: 8px;
color: #666;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.close-button i {
font-size: 18px;
}
.close-button:hover {
background: #f5f5f5;
color: #0078d4;
transform: translateX(2px);
}
.close-button:active {
transform: translateX(4px);
}
/* Panel Content */
.panel-content {
padding: 24px;
}
#config-form {
display: flex;
flex-direction: column;
gap: 24px;
}
/* Form Elements */
.form-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.form-group label {
font-size: 14px;
font-weight: 500;
color: #333;
}
.form-group input {
padding: 8px 12px;
border: 1px solid #e0e0e0;
border-radius: 4px;
font-size: 14px;
transition: border-color 0.2s;
}
.form-group input:focus {
outline: none;
border-color: #0078d4;
}
.input-with-button {
display: flex;
gap: 8px;
}
.input-with-button input {
flex: 1;
}
#select-folder {
padding: 8px 16px;
background: #f5f5f5;
border: 1px solid #e0e0e0;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
color: #333;
transition: all 0.2s;
}
#select-folder:hover {
background: #e5e5e5;
}
/* Submit Button */
.submit-button {
background: #0078d4;
color: white;
border: none;
padding: 10px 24px;
border-radius: 4px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: background 0.2s;
margin-top: 16px;
}
.submit-button:hover {
background: #106ebe;
}
.submit-button:active {
background: #005a9e;
}