Commit c3987518 authored by Eric Eastwood's avatar Eric Eastwood Committed by Sean McGivern

Update spacing for checkbox and panel

@hazelyang metrics,
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1519#note_26863100
parent e6776fea
...@@ -42,22 +42,24 @@ export default { ...@@ -42,22 +42,24 @@ export default {
}, },
template: ` template: `
<div class="checkbox"> <div>
<label for="project_service_desk_enabled"> <div class="checkbox">
<input <label for="project_service_desk_enabled">
type="checkbox" <input
value="1" type="checkbox"
name="project[service_desk_enabled]" value="1"
id="project_service_desk_enabled" name="project[service_desk_enabled]"
:checked="isActivated" id="project_service_desk_enabled"
@change="onCheckboxToggle($event)"> :checked="isActivated"
<span class="descr"> @change="onCheckboxToggle($event)">
Activate service desk <span class="descr">
</span> Activate service desk
</label> </span>
</label>
</div>
<template v-if="isActivated"> <template v-if="isActivated">
<div <div
class="panel panel-default"> class="panel-slim panel-default">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title"> <h3 class="panel-title">
Forward external support email address to: Forward external support email address to:
......
.panel { @mixin panel {
margin-bottom: $gl-padding;
.panel-heading { .panel-heading {
padding: $gl-vert-padding $gl-padding; padding: $gl-vert-padding $gl-padding;
line-height: 36px; line-height: 36px;
...@@ -48,3 +46,14 @@ ...@@ -48,3 +46,14 @@
line-height: inherit; line-height: inherit;
} }
} }
.panel {
@include panel;
margin-bottom: $gl-padding;
}
.panel-slim {
@extend .panel;
@include panel;
margin-bottom: $gl-vert-padding;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment