mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-20 10:49:19 +08:00
Refactor scss
This commit is contained in:
80
src/nginxconfig/scss/_panel.scss
Normal file
80
src/nginxconfig/scss/_panel.scss
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
Copyright 2020 DigitalOcean
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
.panel {
|
||||
margin-top: 0;
|
||||
padding: 1.5rem 0 2rem;
|
||||
text-align: left;
|
||||
|
||||
// The presets panel has a custom header with a dropdown indicator
|
||||
&.presets {
|
||||
.header-group,
|
||||
.buttons-group {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.header-group {
|
||||
h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.button {
|
||||
&.is-tiny {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.message,
|
||||
.buttons-group {
|
||||
margin: 1rem 0 0;
|
||||
}
|
||||
|
||||
.buttons-group {
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0 1.5rem;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
ul {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
// Custom navigation buttons bottom right of the panels
|
||||
.navigation-buttons {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-end;
|
||||
margin: 1.5rem 1.5rem 0;
|
||||
|
||||
.button {
|
||||
margin-left: .5rem;
|
||||
|
||||
i + span,
|
||||
span + i {
|
||||
margin: 0 0 0 .5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user