Skip to content

Commit abbb26a

Browse files
committed
UPD: Langht and dark color themes
1 parent a7a3170 commit abbb26a

File tree

5 files changed

+21
-11
lines changed

5 files changed

+21
-11
lines changed

src/App.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
<template>
22
<RouterView />
3-
</template>
3+
</template>
4+
5+
<style lang="scss">
6+
.box {
7+
background-color: var(--bs-tertiary-bg);
8+
}
9+
</style>

src/components/Heads.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="p-5 mb-4 bg-light rounded-3">
2+
<div class="box p-5 mb-4 rounded-3">
33
<div class="container-fluid py-5">
44
<h1 class="display-5 fw-bold"><slot></slot></h1>
55
<p class="col-md-8 fs-4">The point of it all is beyond the grasp of human intelligence. Be humble. Be grateful simply knowing that you, we, all are taking part in this One big story called The Universe. Thankfully, we have the tools to acknowledge that fact in wonder and awe.</p>

src/views/About.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="p-5 mb-4 bg-light rounded-3">
2+
<div class="p-5 mb-4 box rounded-3">
33
<div class="container-fluid py-5">
44
<h1 class="display-5 fw-bold">About ternary operator</h1>
55
<p class="col-md-8 fs-4">The conditional (ternary) operator is the only JavaScript operator that takes three operands: a condition followed by a question mark (?), then an expression to execute if the condition is truthy followed by a colon (:), and finally the expression to execute if the condition is falsy. This operator is frequently used as an alternative to an if...else statement.</p>

src/views/Contacts.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="p-5 mb-4 bg-light rounded-3">
2+
<div class="p-5 mb-4 box rounded-3">
33
<div class="container-fluid py-5">
44
<h1 class="display-5 fw-bold">Contact Picker API</h1>
55
<p class="col-md-8 fs-4">Access to contacts has long been a feature available within native applications. The Contacts Picker API brings that functionality to web applications.</p>

src/views/Home.vue

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="row align-items-md-stretch">
33
<div class="col-md-6 mb-4">
4-
<div class="h-100 p-5 text-white bg-dark rounded-3">
4+
<div class="h-100 p-5 text-white bg-dark border rounded-3">
55
<h2>{{ msg }}</h2>
66
<p>Before getting started with Bootstrap’s modal component, be sure to read the following as our menu options have recently changed.</p>
77
<ul>
@@ -42,7 +42,7 @@
4242
<div class="modal-dialog">
4343
<div class="modal-content">
4444
<div class="modal-header">
45-
<h5 class="modal-title text-dark" id="infoModalLabel">How many clicks you've passed?!</h5>
45+
<h5 id="infoModalLabel">How many clicks you've passed?!</h5>
4646
<button type="button" class="btn-close" @click="modal.hide()" aria-label="Close"></button>
4747
</div>
4848
<div class="modal-body">
@@ -57,7 +57,7 @@
5757
</div>
5858
</div>
5959
<div class="col-md-6 mb-4">
60-
<div class="p-5 bg-light border rounded-3 mb-4">
60+
<div class="p-5 box border rounded-3 mb-4">
6161
<h2>Bootstrap Toast</h2>
6262
<p>Toasts are lightweight notifications designed to mimic the push notifications that have been popularized by mobile and desktop operating systems. They’re built with flexbox, so they’re easy to align and position.</p>
6363

@@ -70,11 +70,11 @@
7070
<small>Some times ago</small>
7171
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
7272
</div>
73-
<div class="toast-body bg-light">Hello, world! This is a toast message.</div>
73+
<div class="toast-body box">Hello, world! This is a toast message.</div>
7474
</div>
7575
</div>
7676
</div>
77-
<div class="p-5 bg-light border rounded-3">
77+
<div class="p-5 box border rounded-3">
7878
<h2>Bootstrap Grid</h2>
7979
<p>
8080
Bootstrap’s grid system uses a series of containers, rows, and columns to layout and align content. It’s built with
@@ -99,7 +99,7 @@
9999
</div>
100100
</div>
101101
</div>
102-
<div class="p-5 bg-light border rounded-3 mt-4 d-flex justify-content-between">
102+
<div class="p-5 box border rounded-3 mt-4 d-flex justify-content-between">
103103
<i class="bi bi-house-fill"></i>
104104
<i class="bi bi-boxes"></i>
105105
<i class="bi bi-car-front-fill"></i>
@@ -129,4 +129,8 @@ onMounted(() => {
129129
modal.value = new Modal(infoModal.value);
130130
toast.value = new Toast(bsToast.value);
131131
});
132-
</script>
132+
</script>
133+
134+
<style lang="scss" scoped>
135+
#infoModalLabel { color: var(--bs-body-color); }
136+
</style>

0 commit comments

Comments
 (0)