Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • NW.js Essentials
  • Toc
  • feedback
NW.js Essentials

NW.js Essentials

By : Benoit
4.8 (5)
close
NW.js Essentials

NW.js Essentials

4.8 (5)
By: Benoit

Overview of this book

If you are an experienced Node.js developer who wants to create amazing desktop applications using NW.js, this is the book for you. Prior knowledge of HTML5, jQuery, and CSS is assumed.
Table of Contents (11 chapters)
close
10
Index

A matter of style


Once we have our folder structure ready, we can proceed to create the style sheets. Inside the css folder, create an app.css file for the Main window and an options.css file for the Options window. Let's see the first one:

app.css:

/* Reset */
html, body, #mainView {
  width: 100%; height: 100%; margin: 0; padding: 0;
}
/* Custom behaviors */
html * {
  -webkit-user-select: none; box-sizing: border-box;
}
/* mainView container */
#mainView {
  display: flex; border-top: 1px solid #c7c7c7;
}
/* Right sidebar */
#sidebar {
  flex: 0 0 100px;
  padding: 15px 0; text-align: center;
  background: #414A4C; color: #f8f8f8;
}
/* Todo container */
#todoListContainer {
  flex: 1;
  background: #F8F8FF; overflow: auto;
}
/* Button styling */
.button {
  font-family: sans-serif; font-weight: 800;
  display: inline-block; border-radius: 100%;
  color: #F8F8FF; text-align: center; text-decoration: none;
  transition: background-color 0.2s linear;
}
/* Add button */
.add-button {
  background...
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete