25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Toolbar links<br />

The last thing we'll do in this chapter is to add a link to the saved page in the<br />

toolbar so that the saved page is accessible from any other page. To do this, we'll<br />

add an inline ul where links are enclosed within a child li (we'll add more links<br />

to the toolbar in Chapter 9, Adding a User Login <strong>and</strong> API Authentication with<br />

Passport).<br />

resources/assets/components/App.vue: vuebnb<br />

Saved <br />

To display this correctly, we'll have to add some extra CSS. Firstly, we'll modify<br />

the #toolbar declaration so that the toolbar uses flex for display. We'll also add<br />

some new rules below that for displaying the links.<br />

resources/assets/components/App.vue: #toolbar { display: flex; justify-content:<br />

space-between; border-bottom: 1px solid #e4e4e4; box-shadow: 0 1px 5px<br />

rgba(0, 0, 0, 0.1); }<br />

...<br />

#toolbar ul { display: flex; align-items: center; list-style: none; padding: 0 24px<br />

0 0; margin: 0; }<br />

@media (max-width: 373px) { #toolbar ul { padding-right: 12px; } }<br />

#toolbar ul li { padding: 10px 10px 0 10px; }<br />

#toolbar ul li a { text-decoration: none; line-height: 1; color: inherit; font-size:<br />

13px; padding-bottom: 8px; letter-spacing: 0.5px;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!