Browser extension for SecureBit Chat — a P2P messenger with military-grade cryptography.
This commit is contained in:
237
extension-content.css
Normal file
237
extension-content.css
Normal file
@@ -0,0 +1,237 @@
|
||||
/* Content script styles for SecureBit Chat Extension */
|
||||
|
||||
.securebit-widget {
|
||||
position: fixed !important;
|
||||
bottom: 20px !important;
|
||||
right: 20px !important;
|
||||
width: 300px !important;
|
||||
height: 400px !important;
|
||||
background: #1a1a1a !important;
|
||||
border: 1px solid #333 !important;
|
||||
border-radius: 12px !important;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
|
||||
z-index: 2147483647 !important; /* Maximum z-index */
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
|
||||
color: white !important;
|
||||
overflow: hidden !important;
|
||||
transition: all 0.3s ease !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.securebit-widget.minimized {
|
||||
height: 60px !important;
|
||||
}
|
||||
|
||||
.securebit-widget * {
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
.securebit-container {
|
||||
height: 100% !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
}
|
||||
|
||||
.securebit-header {
|
||||
display: flex !important;
|
||||
justify-content: space-between !important;
|
||||
align-items: center !important;
|
||||
padding: 12px 16px !important;
|
||||
background: #2a2a2a !important;
|
||||
border-bottom: 1px solid #333 !important;
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
|
||||
.securebit-logo {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
font-weight: 600 !important;
|
||||
font-size: 14px !important;
|
||||
}
|
||||
|
||||
.securebit-logo img {
|
||||
width: 20px !important;
|
||||
height: 20px !important;
|
||||
margin-right: 8px !important;
|
||||
}
|
||||
|
||||
.securebit-controls {
|
||||
display: flex !important;
|
||||
gap: 4px !important;
|
||||
}
|
||||
|
||||
.securebit-btn {
|
||||
background: none !important;
|
||||
border: none !important;
|
||||
color: #999 !important;
|
||||
cursor: pointer !important;
|
||||
padding: 4px !important;
|
||||
border-radius: 4px !important;
|
||||
transition: all 0.2s !important;
|
||||
font-size: 12px !important;
|
||||
}
|
||||
|
||||
.securebit-btn:hover {
|
||||
background: #333 !important;
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
.securebit-content {
|
||||
flex: 1 !important;
|
||||
padding: 16px !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
.securebit-status {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
margin-bottom: 16px !important;
|
||||
font-size: 12px !important;
|
||||
}
|
||||
|
||||
.status-indicator {
|
||||
width: 8px !important;
|
||||
height: 8px !important;
|
||||
border-radius: 50% !important;
|
||||
background: #4ade80 !important;
|
||||
margin-right: 8px !important;
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
|
||||
.status-indicator.disconnected {
|
||||
background: #ef4444 !important;
|
||||
}
|
||||
|
||||
.securebit-actions {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
gap: 8px !important;
|
||||
margin-bottom: 16px !important;
|
||||
}
|
||||
|
||||
.securebit-action-btn {
|
||||
background: #ff6b35 !important;
|
||||
border: none !important;
|
||||
color: white !important;
|
||||
padding: 10px 16px !important;
|
||||
border-radius: 6px !important;
|
||||
cursor: pointer !important;
|
||||
font-size: 13px !important;
|
||||
font-weight: 500 !important;
|
||||
transition: all 0.2s !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
gap: 8px !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.securebit-action-btn:hover {
|
||||
background: #e55a2b !important;
|
||||
}
|
||||
|
||||
.securebit-action-btn:active {
|
||||
transform: translateY(1px) !important;
|
||||
}
|
||||
|
||||
.securebit-chat {
|
||||
flex: 1 !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
min-height: 0 !important;
|
||||
}
|
||||
|
||||
.chat-messages {
|
||||
flex: 1 !important;
|
||||
overflow-y: auto !important;
|
||||
padding: 8px !important;
|
||||
background: #0f0f0f !important;
|
||||
border-radius: 6px !important;
|
||||
margin-bottom: 8px !important;
|
||||
max-height: 200px !important;
|
||||
}
|
||||
|
||||
.chat-input {
|
||||
display: flex !important;
|
||||
gap: 8px !important;
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
|
||||
.chat-input input {
|
||||
flex: 1 !important;
|
||||
background: #2a2a2a !important;
|
||||
border: 1px solid #333 !important;
|
||||
color: white !important;
|
||||
padding: 8px 12px !important;
|
||||
border-radius: 6px !important;
|
||||
font-size: 13px !important;
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
.chat-input input:focus {
|
||||
border-color: #ff6b35 !important;
|
||||
}
|
||||
|
||||
.chat-input button {
|
||||
background: #ff6b35 !important;
|
||||
border: none !important;
|
||||
color: white !important;
|
||||
padding: 8px 16px !important;
|
||||
border-radius: 6px !important;
|
||||
cursor: pointer !important;
|
||||
font-size: 13px !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
|
||||
.chat-input button:hover {
|
||||
background: #e55a2b !important;
|
||||
}
|
||||
|
||||
.message {
|
||||
margin-bottom: 8px !important;
|
||||
padding: 6px 8px !important;
|
||||
border-radius: 4px !important;
|
||||
font-size: 12px !important;
|
||||
word-wrap: break-word !important;
|
||||
}
|
||||
|
||||
.message.sent {
|
||||
background: #ff6b35 !important;
|
||||
margin-left: 20px !important;
|
||||
}
|
||||
|
||||
.message.received {
|
||||
background: #333 !important;
|
||||
margin-right: 20px !important;
|
||||
}
|
||||
|
||||
/* Ensure the widget doesn't interfere with page styles */
|
||||
.securebit-widget,
|
||||
.securebit-widget * {
|
||||
all: unset !important;
|
||||
display: revert !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
/* Reset specific properties that might be inherited */
|
||||
.securebit-widget {
|
||||
position: fixed !important;
|
||||
bottom: 20px !important;
|
||||
right: 20px !important;
|
||||
width: 300px !important;
|
||||
height: 400px !important;
|
||||
background: #1a1a1a !important;
|
||||
border: 1px solid #333 !important;
|
||||
border-radius: 12px !important;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
|
||||
z-index: 2147483647 !important;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
|
||||
color: white !important;
|
||||
overflow: hidden !important;
|
||||
transition: all 0.3s ease !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
Reference in New Issue
Block a user