Skip to content

Commit c3798ae

Browse files
author
Sami Kolari
committed
style tweaks
1 parent dddcc9b commit c3798ae

11 files changed

+53
-34
lines changed

src/assets/css/elements.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
box-shadow: 2px 4px 4px -1px rgba(0,0,0,0.16),
99
6px 6px 20px -1px rgba(107, 84, 84, 0.1);
1010
}
11+
.card.sharp {
12+
border-radius: 0;
13+
}
1114

1215
.border-black {
1316
border: solid 0.15rem var(--color-black);
@@ -52,6 +55,7 @@ button.theme, button.stroke {
5255
transition: 0.1s color, 0.1s background-color, box-shadow 0.1s;
5356
font-family: var(--font-title);
5457
padding: var(--size-2xsmall) var(--size-small);
58+
text-transform: uppercase;
5559
}
5660
button.theme {
5761
color: var(--color-black);
@@ -71,7 +75,7 @@ button.theme.active {
7175

7276
@media screen and (max-width: 768px) {
7377
button.theme, button.stroke {
74-
padding: var(--size-3xsmall) var(--size-2xsmall);
78+
padding: var(--size-2xsmall) var(--size-xsmall);
7579
}
7680
}
7781

src/assets/css/grid.css

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
max-width: var(--layout-container-max-width);
88
}
99

10+
.container.narrow {
11+
max-width: var(--layout-container-narrow-max-width);
12+
}
13+
1014
.flex {
1115
display: flex;
1216
}

src/assets/css/variables.css

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
--bp-lg: 1400px; /* desktop breakpoint */
1616

1717
--layout-container-max-width: 1400px;
18+
--layout-container-narrow-max-width: 800px;
1819
--container-padding: 0;
1920

2021
/* fonts */

src/components/CommunityItems.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
22
<div
33
class="bg-white row card"
4-
:class="$store.state.isMobile ? 'pt-medium pb-medium' : 'p-medium'">
5-
<div class="row col-md-4">
4+
:class="$store.state.isMobile ? 'pt-medium pb-medium' : 'p-large'">
5+
<div class="row col-md-5 pr-medium">
66
<div
77
v-for="link in [items[0], items[1]]"
88
:key="link.imgName"
@@ -23,7 +23,7 @@
2323
</div>
2424
</div>
2525
</div>
26-
<div class="col-md-4">
26+
<div class="col-md-5 pr-medium">
2727
<div
2828
class="flex col-sm-12"
2929
:class="$store.state.isMobile ? 'pl-small pr-small' : ''">
@@ -41,7 +41,7 @@
4141
</div>
4242
</div>
4343
<div
44-
class="col-md-4 pl-medium"
44+
class="col-md-2 pl-medium"
4545
:style="$store.state.isMobile ? 'padding-left: 4.7rem; margin-top: 1rem;' : ''">
4646
<h3 class="color-grey-dark mb-2xsmall">
4747
Other

src/components/CompanyCarousel.vue

+8-6
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@
3737
:key="company.name"
3838
:aria-label="`${company.name} testimonial`"
3939
:style="`background-image: url(${publicPath}img/carousel-company-icons/${company.imgName})`"
40-
class="img-container-small mr-small mr-small bg-white card mt-2xsmall"
40+
class="img-container-small mr-small mr-small bg-white card mt-small"
4141
:class="activeCompanyIndex === i ? 'logo-active border-black border-thin' : ''"
4242
@click="activeCompanyIndex = i" />
43-
<router-link :to="{ name: 'Users' }" class="card pl-small pr-small color-grey-dark mt-2xsmall" style="line-height: 1.85;">
43+
</div>
44+
<button class="theme mt-small">
45+
<router-link :to="{ name: 'Users' }" class="type-no-underline">
4446
More users
4547
</router-link>
46-
</div>
48+
</button>
4749
</div>
4850
</template>
4951

@@ -109,10 +111,10 @@ export default {
109111
background-position: center;
110112
}
111113
.img-container-small {
112-
width: 2rem;
113-
height: 2rem;
114+
width: 3rem;
115+
height: 3rem;
114116
background-repeat: no-repeat;
115-
background-size: contain;
117+
background-size: 85%;
116118
background-position: center;
117119
filter: saturate(0);
118120
opacity: 0.7;

src/components/PageSectionTwitter.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
class="twitter-timeline"
2828
data-dnt="true"
2929
data-theme="dark"
30-
href="https://twitter.com/robotframework?ref_src=twsrc%5Etfw">
30+
href="https://twitter.com/robotframework?ref_src=twsrc%5Etfw">¨
3131
Tweets by robotframework
3232
</a>
3333
<component :is="'script'" async src="https://platform.twitter.com/widgets.js" charset="utf-8" />

src/components/ResourceBox.vue

+18-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<template>
22
<div>
3-
<div class="bg-grey-dark color-white p-small card">
3+
<div
4+
class="bg-grey-dark color-white card"
5+
:class="$store.state.isMobile ? 'p-small pt-medium sharp' : 'p-large'">
46
<div class="row">
57
<button
68
v-for="({ name, key }, i) in $tm('resources.tabs')"
79
:key="name"
8-
class="type-uppercase theme type-small"
10+
class="type-uppercase theme type-small mb-small"
911
:class="[
1012
activeTab === key ? 'active' : '',
11-
i === 3 ? 'mr-none' : 'mr-medium'
13+
i === 3 ? 'mr-none' : 'mr-small'
1214
]"
1315
@click="activeTab = key; showAll = false">
1416
{{ name }}
@@ -19,9 +21,10 @@
1921
<div class="row mb-medium">
2022
<div
2123
class="col-sm-12 col-md-9 pt-medium"
24+
:class="$store.state.isMobile ? '' : 'pr-large'"
2225
v-html="selectedDescription" />
2326
<div
24-
class="col-sm-6 col-md-3 flex bottom"
27+
class="col-sm-12 col-md-3 flex bottom"
2528
:class="$store.state.isMobile ? '' : 'end'">
2629
<div class="relative" style="width: 100%;">
2730
<div class="flex middle card border-white border-thin mt-medium" style="width: 100%;">
@@ -116,7 +119,8 @@
116119
<div
117120
v-for="(item, i) in visibleItems"
118121
:key="item.name"
119-
class="pb-xsmall pt-xsmall"
122+
class="p-xsmall"
123+
style="margin-left: -1rem; margin-right: -1rem;"
120124
:style="i % 2 ? 'background-color: rgba(255, 255, 255, 0.1)' : ''">
121125
<div class="flex between">
122126
<div>
@@ -138,15 +142,17 @@
138142
</div>
139143
<div
140144
v-html="item.description"
141-
class="type-small" />
145+
class="type-small mt-2xsmall" />
142146
</div>
143147
</div>
144-
<button
145-
v-if="!showAll && itemsFilteredByTag.length > 7"
146-
class="stroke type-uppercase mt-small type-small"
147-
@click="showAll = true">
148-
Show more
149-
</button>
148+
<div class="flex" :class="$store.state.isMobile ? 'center' : ''">
149+
<button
150+
v-if="!showAll && itemsFilteredByTag.length > 7"
151+
class="stroke type-uppercase mt-small type-small mb-xsmall"
152+
@click="showAll = true">
153+
Show more
154+
</button>
155+
</div>
150156
</div>
151157
</transition>
152158
</div>

src/components/TabBox.vue

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<template>
2-
<div class="bg-grey-dark p-small card">
2+
<div
3+
class="bg-grey-dark card"
4+
:class="$store.state.isMobile ? 'p-small pt-medium sharp' : 'p-large'">
35
<!-- tab buttons -->
46
<div class="row">
57
<button
68
v-for="(tab, i) in tabs"
79
:key="tab.name"
8-
class="type-uppercase theme type-small"
10+
class="type-uppercase theme type-small mb-xsmall"
911
:class="[
1012
activeTabIndex === i ? 'active' : '',
11-
i === 2 ? 'mr-none' : 'mr-medium'
13+
i === 2 ? 'mr-none' : 'mr-small'
1214
]"
1315
@click="activeTabIndex = i">
1416
{{ tab.name }}

src/views/CoC.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="container mb-xlarge">
2+
<div class="container narrow mb-xlarge pl-small pr-small">
33
<div class="row mb-large mt-large">
44
<button v-if="cameFromHome" @click="$router.go(-1)" class="color-theme type-underline">
55
Back
@@ -29,7 +29,7 @@
2929
harassed, or have any other concerns, please Contact
3030
<a href="mailto: [email protected]">[email protected]</a>.
3131
</p>
32-
<h4>Harassment includes</h4>
32+
<h3 class="mt-large">Harassment includes</h3>
3333
<ul>
3434
<li>
3535
Offensive comments related to gender, gender identity and expression, sexual orientation, disability, mental illness, neuro(a)typicality, physical appearance, body size, age, race, or religion.
@@ -97,7 +97,7 @@
9797
Criticizing racist, sexist, cissexist, or otherwise oppressive behaviour or assumptions
9898
</li>
9999
</ul>
100-
<h4 class="mt-small">Reporting</h4>
100+
<h3 class="mt-large">Reporting</h3>
101101
<ul>
102102
<li>
103103
If you are being harassed by a member of ROBOT FRAMEWORK, notice that someone else is being harassed, or have any other concerns, please contact <a style="display: inline;" href="mailto: [email protected]">[email protected]</a>. If the person who is harassing you is on the team, they will recuse themselves from handling your incident. We will respond as promptly as we can.
@@ -112,7 +112,7 @@
112112
We will respect confidentiality requests for the purpose of protecting victims of abuse. At our discretion, we may publicly name a person about whom we’ve received harassment complaints, or privately warn third parties about them, if we believe that doing so will increase the safety of ROBOT FRAMEWORK members or the general public. We will not name harassment victims without their affirmative consent.
113113
</li>
114114
</ul>
115-
<h4 class="mt-small">Consequences</h4>
115+
<h3 class="mt-large">Consequences</h3>
116116
<ul>
117117
<li>
118118
Participants asked to stop any harassing behaviour are expected to comply immediately.

src/views/Home.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
:body="$t('community.body')">
4646
<div class="col-sm-12 col-md-9 col-md-offset-3 row">
4747
<community-items />
48-
<button class="theme mt-small">
49-
<router-link :to="{ name: 'CoC' }">
48+
<button class="theme mt-medium" :class="$store.state.isMobile ? 'ml-xsmall' : ''">
49+
<router-link :to="{ name: 'CoC' }" class="type-no-underline">
5050
Code of Conduct
5151
</router-link>
5252
</button>

src/views/PrivacyPolicy.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="container">
2+
<div class="container narrow pl-small pr-small">
33
<div class="row mb-large mt-large">
44
<router-link :to="{ name: 'Home' }">
55
Back

0 commit comments

Comments
 (0)