Skip to content

Commit 479b3d2

Browse files
committed
Edit Footer, LicenseDetailsCard, LicenseDropdown, LicenseIconography and LicenseUseCard components
Signed-off-by: Olga Bulat <obulat@gmail.com>
1 parent 64cd421 commit 479b3d2

File tree

6 files changed

+68
-75
lines changed

6 files changed

+68
-75
lines changed

src/assets/css/vocab.css

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
font-size: 20px;
4343
line-height: 26px;
4444
}
45+
4546
/* Vocabulary Text styles */
4647
.vocab-body {
4748
font-style: normal;
@@ -69,6 +70,7 @@
6970
line-height: 19px;
7071
padding-bottom: 8px;
7172
}
73+
7274
/* Vocabulary colors */
7375
.normal-gray {
7476
color: #D8D8D8!important;
@@ -80,33 +82,7 @@
8082
color: #ED592F!important;
8183
}
8284
/* Vocabulary other styles */
83-
.vocab-container .vocab-grid .panel {
84-
height: 100%;
85-
display: -webkit-box;
86-
display: -ms-flexbox;
87-
display: flex;
88-
-webkit-box-orient: vertical;
89-
-webkit-box-direction: normal;
90-
-ms-flex-direction: column;
91-
flex-direction: column;
92-
-webkit-box-pack: justify;
93-
-ms-flex-pack: justify;
94-
justify-content: space-between;
95-
}
96-
97-
.vocab.select-field.normal-sized {
98-
font-size: 1rem;
99-
}
100-
101-
.vocab.select-field > .field.has-addons {
102-
padding-left: calc(1em + var(--select-field-addons-space));
103-
margin-bottom: 0;
104-
min-width: 10em;
105-
}
106-
107-
.vocab.select-field > .field > option[disabled] {
108-
opacity: 0.6;
109-
}
11085
.vocab.license-icons img {
11186
width: 35px;
87+
height: 35px;
11288
}

src/components/Footer.vue

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ export default {
7070
padding-bottom:0;
7171
}
7272
.chooser-footer a,
73-
.middle-column .footer-licensing-text a
74-
{
73+
.middle-column .footer-licensing-text a {
7574
color: #05B5DA;
7675
}
7776
.chooser-footer a:hover,
@@ -91,4 +90,19 @@ export default {
9190
.donation-column {
9291
padding-top: 118px;
9392
}
93+
@media only screen and (max-width: 768px) {
94+
.chooser-footer .chooser-footer-container {
95+
display: grid;
96+
grid-template-columns: 100%;
97+
}
98+
.middle-column {
99+
padding-top: 1rem;
100+
}
101+
.donation-column {
102+
padding-top: 1rem;
103+
}
104+
.footer-cc-logo {
105+
max-width: 300px;
106+
}
107+
}
94108
</style>

src/components/LicenseDetailsCard.vue

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
/>
1515
</a>
1616
</h4>
17-
<p id="chooser-selected-description">
18-
<b>{{ licenseSlug }}</b>
17+
<p class="chooser-selected-description">
18+
<b>{{ slug.toUpperCase() }}</b>
1919
{{ $t(licenseKey) }}
2020
</p>
2121
<section class="license-visual-info">
@@ -39,6 +39,7 @@
3939
</template>
4040

4141
<script>
42+
import { licenseSlug } from '../utils/license-utilities'
4243
import LicenseIcons from './LicenseIcons'
4344
import { mapGetters } from 'vuex'
4445
@@ -50,20 +51,23 @@ export default {
5051
computed: {
5152
...mapGetters(['shortName', 'fullName', 'iconsList', 'licenseUrl']),
5253
licenseDescription() {
53-
const descriptionString = `${this.$licenseSlug(this.shortName)}-description`
54+
const descriptionString = `${this.slug}-description`
5455
return this.$t(descriptionString)
5556
},
56-
licenseSlug() {
57-
return this.shortName.slice(0, this.shortName.length - 4)
58-
},
5957
licenseKey() {
60-
return `license-details-card.full-description.${this.licenseSlug.toLowerCase().replace(' ', '-')}`
58+
return `license-details-card.full-description.${this.slug}`
59+
},
60+
slug() {
61+
return licenseSlug(this.shortName)
6162
}
6263
}
6364
}
6465
</script>
6566

6667
<style lang="scss">
68+
.select-license-card {
69+
margin-bottom: 32px;
70+
}
6771
.license-name {
6872
vertical-align: middle;
6973
display: inline-block;

src/components/LicenseDropdown.vue

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
<template>
2-
<div class="license-dropdown">
3-
<b-field>
4-
<b-select
5-
:placeholder="this.$t('stepper.DD.placeholder')"
6-
:value="shortName"
7-
@input="setCurrentLicense"
2+
<b-field class="license-dropdown">
3+
<b-select
4+
:placeholder="this.$t('stepper.DD.placeholder')"
5+
:value="shortName"
6+
@input="setCurrentLicense"
7+
>
8+
<option
9+
v-for="license in licenseList"
10+
:key="license"
11+
:value="license"
812
>
9-
<option
10-
v-for="license in licenseList"
11-
:key="license"
12-
:value="license"
13-
>
14-
{{ license }}
15-
</option>
16-
</b-select>
17-
</b-field>
18-
</div>
13+
{{ license }}
14+
</option>
15+
</b-select>
16+
</b-field>
1917
</template>
2018
<script>
2119
@@ -56,14 +54,14 @@ export default {
5654
}
5755
</script>
5856
<style lang="scss">
59-
div.license-dropdown {
57+
.license-dropdown {
6058
margin-top: 1rem;
61-
label.label{
59+
.label{
6260
font-weight: normal;
6361
opacity: 0.8;
6462
font-size: 1em;
6563
}
66-
span.select, select {
64+
.select, select {
6765
width: 100%;
6866
}
6967
}

src/components/LicenseIconography.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
<FontAwesomeIcon
1010
v-for="(icon, index) in processedIconList"
1111
:key="index"
12-
:icon="['fab', icon]"
13-
style="width: 35px; height: 35px"/>
12+
:icon="['fab', icon]"/>
1413
</span>
1514
</template>
1615

src/components/LicenseUseCard.vue

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,47 @@
99
<b-tabs>
1010
<b-tab-item :label="$t('license-use.web-tab-heading')">
1111
{{ $t('license-use.web-instructions') }}
12-
<SelectedLicenseCode
13-
v-model="value"
14-
is-web="true"
12+
<LicenseCopy
13+
:is-web="true"
1514
/>
1615
</b-tab-item>
1716
<b-tab-item :label="$t('license-use.print-media-tab-heading')">
1817
{{ $t('license-use.print-media-instructions') }}
19-
<PlaintextLicenseCode
20-
v-model="value"
21-
is-web="false"
18+
<LicenseCopy
19+
:is-web="false"
2220
/>
2321
</b-tab-item>
2422
</b-tabs>
2523
</div>
2624
</template>
2725

2826
<script>
29-
import SelectedLicenseCode from './WebLicenseCode'
30-
import PlaintextLicenseCode from './PrintMediaLicenseCode'
27+
import LicenseCopy from './LicenseCopy'
3128
export default {
3229
name: 'LicenseUseCard',
3330
components: {
34-
SelectedLicenseCode,
35-
PlaintextLicenseCode
31+
LicenseCopy
3632
}
3733
}
3834
</script>
3935

4036
<style lang="scss">
37+
.license-use-card {
38+
margin-bottom: 24px;
39+
}
40+
.license-use-card .h4b {
41+
color: black;
42+
}
4143
.tabs span {
4244
font-weight: bold;
4345
}
44-
.license-use-card .tabs .is-active a {
45-
margin-bottom: -2px;
46-
border-bottom: 3px solid #04a434;
47-
span {
48-
font-weight: 700;
49-
opacity:1;
50-
color: black;
51-
}
46+
.license-use-card .tabs .is-active a {
47+
margin-bottom: -2px;
48+
border-bottom: 3px solid #04a434;
49+
span {
50+
font-weight: 700;
51+
opacity:1;
52+
color: black;
5253
}
54+
}
5355
</style>

0 commit comments

Comments
 (0)