fleet/website/assets/styles/pages/query-library.less
Eric eedb867024
Mark critical policies in standard query library. (#15070)
Closes: #14812 

Changes:
- Added a "critical" tag to critical policies in the standard query
library.
- Updated the macOS version used in the "Operating system up to date
(macOS)" policy.
- Updated the name of a policy to be in sentence case ("MDM Enrolled
(macOS)" » "MDM enrolled (macOS)")
- Updated the build-static-content script to add a `critical` attribute
to queries that have the "critical" tag.
- Updated the /queries page to add a "critical" badge to queries that
have the critical attribute.
2023-11-09 21:18:02 -06:00

358 lines
6.1 KiB
Plaintext
Vendored

#query-library {
h2 {
padding: 0px 30px 0px 30px;
}
h5 {
font-size: 18px;
font-weight: bold;
line-height: 25px;
}
h6 {
font-size: 16px;
line-height: 22px;
padding: 0px 30px 0px 30px;
}
a {
font-size: 16px;
color: @core-vibrant-blue;
}
img {
&.logo {
height: 16px;
width: 16px;
}
&.search {
transform: scale(0.5);
}
}
input {
&::placeholder {
font-size: 16px;
}
}
[purpose='requires-mdm-badge'] {
text-transform: uppercase;
background: #6A67FE;
border-radius: 4px;
padding: 4px;
font-weight: 700;
font-size: 10px;
line-height: 10px;
display: inline;
color: #FFF;
text-decoration: none;
}
[purpose='critical-badge'] {
text-transform: uppercase;
background: #FF5C83;
border-radius: 4px;
padding: 4px;
font-weight: 700;
font-size: 10px;
line-height: 10px;
display: inline;
color: #FFF;
text-decoration: none;
}
[purpose='query-tag'] {
font-size: 12px;
font-weight: 700;
padding: 2px 8px;
border-radius: 20px;
background-color: #E2E4EA;
}
[purpose='selected-tag'] {
border-bottom: 1px solid #e1e4e9;
padding: 16px 0;
margin-left: 30px;
margin-right: 30px;
p {
margin-bottom: 0;
line-height: 18px;
}
}
[purpose='query-list-empty-state'] {
margin-top: 40px;
margin-right: 30px;
margin-left: 30px;
a {
font-size: 16px;
}
}
.input-group {
&.search {
width: 250px;
background: #FFF;
height: 40px;
}
}
.input-group-text {
color: #8b8fa2;
height: 40px;
border-color: #c5c7d1;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
}
.form-control {
height: 40px;
font-size: 16px;
border-color: #c5c7d1;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
&:focus {
border: 1px solid #c5c7d1;
}
}
.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, .show > .btn-secondary.dropdown-toggle:focus {
box-shadow: none;
}
.btn-secondary {
color: @core-vibrant-blue;
background-color: transparent;
border: 0;
cursor: pointer;
&:focus {
border: 0;
box-shadow: none;
}
}
.filters {
height: 54px;
p {
font-size: 16px;
line-height: 25px;
}
}
.dropdown-menu {
left: 0px;
width: 180px;
border-radius: 8px;
cursor: pointer;
z-index: 1;
}
.dropdown-item {
padding: 12px;
border-radius: 5px;
cursor: pointer;
&:hover {
background-color: lightness(@core-vibrant-blue, 10%);
margin-right: 15px;
}
}
.dropdown-toggle::after {
margin-left: 4px;
vertical-align: 3px;
border-top: 5px solid;
border-right: 5px solid transparent;
border-bottom: 0;
border-left: 5px solid transparent;
}
select {
color: @core-vibrant-blue;
border: 0px;
outline: 0;
&:focus {
border: 0px;
}
&.select-purpose {
width: 102px;
}
&.select-platform {
width: 118px;
}
&.mobile {
height: 50px;
width: 100%;
margin-right: 0;
margin-left: 0;
border-radius: 8px;
padding: 12px;
background: url('/images/chevron-down-9x6@2x.png') no-repeat 95% 50%;
background-size: 9px 6px;
-webkit-appearance: none;
}
}
.library {
max-width: 960px;
margin-top: 80px;
margin-bottom: 0;
}
.description {
padding: 0px 30px 0px 30px;
p {
font-size: 16px;
line-height: 25px;
}
a {
outline-bottom: 1px solid #c5c7d1;
text-decoration: underline;
}
}
.select-mobile-border {
height: 52px;
width: 100%;
margin-right: 0;
margin-left: 0;
border: 1px solid #c5c7d1;
border-radius: 8px;
}
.select-mobile {
padding-left: 30px;
padding-right: 30px;
padding-bottom: 12px;
}
.search-mobile {
height: 52px;
padding-left: 30px;
padding-right: 30px;
padding-bottom: 12px;
}
.filter-and-search-bar {
padding-left: 45px;
padding-right: 45px;
margin-bottom: 0;
min-height: 40px;
}
.contributors, .platforms {
p {
font-size: 13px;
line-height: 20px;
}
}
.row {
min-height: 70px;
align-items: center;
}
.divider {
margin-left: 30px;
margin-right: 30px;
border-bottom: 1px solid;
border-color: #e2e4ea;
}
.query-card {
padding-top: 24px;
padding-bottom: 24px;
}
.card.results {
box-shadow: none;
border: none;
border-radius: 8px;
&:hover {
.query-card {
background-color: #F8F7FF;
box-shadow: none;
border: none;
border-radius: 8px;
cursor: pointer;
}
}
}
.card.call-to-action {
background-color: @ui-off-white;
border-radius: 16px;
border-color: @ui-off-white;
box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
margin-bottom: 90px;
width: 100%;
padding: 40px;
p {
margin-block-end: 0px;
}
a {
font-size: 16px;
}
}
.card-body {
padding: 30px;
padding-top: 0px;
padding-bottom: 0px;
}
.avatar-frame {
width: 21px;
height: 21px;
position: relative;
overflow: hidden;
border-radius: 50%;
&:hover {
cursor: pointer;
}
img {
display: inline;
margin: 0 auto;
height: 100%;
width: auto;
}
}
@media (max-width: 768px) {
.library {
max-width: 720px;
margin-top: 60px;
}
.results {
margin-top: 16px;
}
}
@media (max-width: 575px) {
h2 {
font-size: 28px;
line-height: 36px;
}
.library {
max-width: none;
margin-bottom: 0px;
}
[purpose='selected-tag'] {
margin-left: 30px;
margin-right: 30px;
[purpose='query-tag'] {
margin-top: 8px;
}
}
.results {
margin-top: 16px;
}
.contributors, .platforms {
p {
font-size: 13px;
line-height: 20px;
}
}
}
}