Refactor Nickname Generator component with Angular Material, update logic for fields and commands, and improve styling.
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
/* nick-generator.component.css */
|
||||
.containerNick {
|
||||
background-color: #292828;
|
||||
padding: 40px 5%;
|
||||
max-width: 1220px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.controls {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.part {
|
||||
padding: 8px 0 16px 0;
|
||||
}
|
||||
|
||||
.row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.textField {
|
||||
flex: 1 1 260px;
|
||||
min-width: 220px;
|
||||
}
|
||||
|
||||
.colorField {
|
||||
width: 110px;
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
padding: 0 6px;
|
||||
}
|
||||
|
||||
.invalid {
|
||||
color: #dd0000;
|
||||
font-size: 12px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
margin: 20px 0 32px 0;
|
||||
}
|
||||
|
||||
.commands {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.commandRow {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.command {
|
||||
background: #1e1e1e;
|
||||
color: #ffffff;
|
||||
padding: 10px 12px;
|
||||
border-radius: 6px;
|
||||
font-family: monospace;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.preview {
|
||||
background: #1e1e1e;
|
||||
padding: 14px 12px;
|
||||
border-radius: 6px;
|
||||
color: #ffffff;
|
||||
font-family: 'minecraft-text', monospace;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
Reference in New Issue
Block a user