Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <div id="content">
	<v-app dark style="background: transparent">
		<v-system-bar app absolute="true" window height="32" color="transparent">
			<v-img v-on:click="showMenu = !showMenu" src="https://raw.githubusercontent.com/oscartbeaumont/ElectronPlayer/master/build/icon.png" max-height="22" max-width="22"></v-img>
			<span v-on:click="showMenu = !showMenu" class="ml-2 font-weight-medium">ElectronPlayer</span>
			<v-spacer></v-spacer>
			<v-icon>remove</v-icon>
			<v-icon>check_box_outline_blank</v-icon>
			<v-icon>close</v-icon>
		</v-system-bar>
		<v-expand-transition>
			<v-toolbar dense flat light v-show="showMenu" style="margin-top: 32px; background: transparent" class="pa-0" id="menu-toolbar">
				<template v-for="(menu, i) in menus" :key="i">
					<template v-if="menu.type == undefined">
						<v-menu light offset-y>
							<template v-slot:activator="{ on }">
								<v-btn dark flat class="menu-btn ma-0 py-1 px-2 text-capitalize" v-on="on">{{ menu.name }}</v-btn>
							</template>
				<v-list>
					<v-list-tile v-for="(item, itemindex) in menu.items" :key="itemindex" @click="" style="height: 24px" :inactive="item.disabled" :class="{'item-disabled' : item.disabled}">
						<template v-if="item.type === undefined">
										<v-list-tile-title>{{ item.name }}</v-list-tile-title>
										<v-list-tile-content></v-list-tile-content>
										<v-list-tile-action class="pl-2 accelerator">
											{{ item.accelerator || "" }}
										</v-list-tile-action>
									</template>
						<template v-else>
										<v-divider></v-divider>
									</template>
					</v-list-tile>
				</v-list>
				</v-menu>
				</template>
				<template v-else>
						<v-btn dark flat class="menu-btn ma-0 py-1 px-2 text-capitalize" v-on:click="settings.showDialog = true">{{ menu.name }}</v-btn>
					</template>
				</template>
			</v-toolbar>
		</v-expand-transition>

		<v-layout align-center justify-center row wrap class="text-xs-center text-white">
			<v-flex xs12>
				<v-layout justify-center row wrap>
					<v-flex xs2 v-for="item in items" :key="item.name" :href="item.url">
						<a :href="item.url" class="item-name">
							<v-img height="94" width="94" :src="item.imgPath" aspect-ratio="1" contain="true" class="mx-auto"></v-img>
							<div class="mt-3">
								<h3 class="font-weight-bold mb-0">{{ item.name }}</h3>
							</div>
						</a>
					</v-flex>
				</v-layout>
			</v-flex>
		</v-layout>
		<v-dialog v-model="settings.showDialog" width="600px">
			<v-card light>
				<v-card-title>
					<span class="headline">Settings</span>
				</v-card-title>
				<v-form ref="form" v-model="valid" lazy-validation>
					<v-subheader>Window settings</v-subheader>

					<v-list>
						<v-list-tile avatar>
							<v-list-tile-content>
								<v-list-tile-title>Always on top</v-list-tile-title>
								<v-list-tile-sub-title>Even when not focused, the window will be visible</v-list-tile-sub-title>
							</v-list-tile-content>

							<v-list-tile-action>
								<v-checkbox v-model="settings.alwaysOnTop"></v-checkbox>
							</v-list-tile-action>
						</v-list-tile>

						<v-list-tile>
							<v-list-tile-content>
								<v-list-tile-title>Remember window details</v-list-tile-title>
								<v-list-tile-sub-title>Will restore the window details as they were when you quitted</v-list-tile-sub-title>
							</v-list-tile-content>

							<v-list-tile-action>
								<v-checkbox v-model="settings.rememberWindowPosition"></v-checkbox>
							</v-list-tile-action>
						</v-list-tile>
						<v-list-tile>
							<v-btn small depressed block color="primary">Set window frameless*</v-btn>
						</v-list-tile>
					</v-list>

						<v-radio-group v-model="settings.defaultService">
					<v-list>
						<v-subheader>Default service</v-subheader>
							<v-list-tile v-for="service in settings.serviceValues" :key="service">
								<v-list-tile-content>
									<v-list-title>{{ service }}</v-list-title>
								</v-list-tile-content>
								<v-list-tile-action>
									<v-radio :value="service"></v-radio>
								</v-list-tile-action>
							</v-list-tile>
					</v-list>
						</v-radio-group>
				</v-form>
				
				<v-subheader>Other</v-subheader>
				<v-list>
						<v-list-tile>
							<v-btn small depressed block color="primary">Edit config</v-btn>
						</v-list-tile>
						<v-list-tile>
							<v-btn small depressed block color="primary">Reset all settings*</v-btn>
						</v-list-tile>
				</v-list>
				
				<v-card-actions>
					<v-spacer></v-spacer>
					<v-btn color="green darken-1" flat="flat" @click="settings.showDialog = false">Cancel</v-btn>
					<v-btn color="green darken-1" flat="flat" @click="settings.showDialog = false">Save</v-btn>
				</v-card-actions>
			</v-card>
		</v-dialog>
		</v-layout>
	</v-app>
</div><span class="taille"></span>
            
          
!

CSS

            
              @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,700&display=swap');

html, body {
	min-width: 900px;
	margin: 0;
	height: 100%;
	text-align: center;
	background: #eee;
	background-image: url(https://image.noelshack.com/fichiers/2019/22/7/1559476659-f2c43e4304abcbd78e81c243a33bfb54-1000.jpg);
    *background-image: url(/path/to/image.jpg);
	background-position: center;
	background-size: auto 100%;
	background-size: cover;
}
div#content {
	width: 800px;
	height: 600px;
	margin: 50px 0;

background: #00796b;
background: -moz-linear-gradient(top, #00796b 0%, #00796b 10%, #004d40 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, #00796b), color-stop(10%, #00796b), color-stop(100%, #004d40));
background: -webkit-linear-gradient(top, #00796b 0%, #00796b 10%, #004d40 100%);
background: -o-linear-gradient(top, #00796b 0%, #00796b 10%, #004d40 100%);
background: -ms-linear-gradient(top, #00796b 0%, #00796b 10%, #004d40 100%);
background: linear-gradient(to bottom, #00796b 0%, #00796b 10%, #004d40 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00796b', endColorstr='#004d40', GradientType=0 );
	
	display: inline-block;
	vertical-align: middle;
	box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, .25);
	overflow: auto;
}
span.taille {
	height: 100%;
	display: inline-block;
	vertical-align: middle;
}
#content #app, #content .application--wrap {
	min-height: 100%;
}
#content .item-name {
	color: white;
	text-decoration: none;
}
#content .menu-btn {
	min-width: 0;
}
#menu-toolbar .v-toolbar__content {
	padding: 0;
}
#app {
	font-family: 'Source Sans Pro', sans-serif !important;
}
#app .v-list__tile {
	height: 100%;
}
#app .accelerator, #app .item-disabled {
	opacity: .4;
}
body .v-overlay {
	height: 600px;
	width: 800px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
#app .v-dialog__content {
	height: 600px;
	top: 50%;
	transform: translateY(-50%);
}
#app .v-input__control {
	width: 100%;
}
#app .v-list__tile__action, #app .v-list__tile__action .v-input--selection-controls .v-input__slot {
	text-align: right;
}
            
          
!

JS

            
              Vue.config.devtools = true;

new Vue({
	el: "#content",
	data: () => ({
		items: [
			{
				"name" : "Netflix",
				"imgPath": "https://image.noelshack.com/fichiers/2019/22/7/1559477781-netflix2.png",
				"url": "https://www.youtube.com/"
			},
			{
				"name" : "YouTube",
				"imgPath": "https://image.noelshack.com/fichiers/2019/22/7/1559477908-youtube.png",
				"url" : "https://youtube.com"
			},
			{
				"name" : "Twitch",
				"imgPath": "https://image.noelshack.com/fichiers/2019/22/7/1559477646-index.png",
				"url": "https://www.twitch.tv/"
			},
			{
				"name" : "Spotify",
				"imgPath": "https://upload.wikimedia.org/wikipedia/fr/thumb/d/d1/Spotify_logo_sans_texte.svg.png/240px-Spotify_logo_sans_texte.svg.png",
				"url": "http://open.spotify.com/"
			},
			{
				"name" : "Floatplane",
				"imgPath": "https://image.noelshack.com/fichiers/2019/22/7/1559477205-floatplane.png",
				"url": "https://www.floatplane.com/discover"
			}
		],
		showMenu: false,
		settings: {
			showDialog: false,
			alwaysOnTop: false,
			rememberWindowPosition: false,
			defaultService: "Menu",
			serviceValues: ["Menu", "Netflix", "YouTube", "Twitch", "Spotify", "Floatplane"]
		},
		menus: [
				{
					name: "Services",
					items: [
						{
							"name": "Menu",
							"accelerator": "Ctrl+H"
						},
						{
							"type": "separator"
						},
						{
							"name": "Floatplane",
							"icon": "f"
						},
						{
							"name": "Netflix",
							"icon": "n"
						},
						{
							"name": "Spotify",
							"icon": "s"
						},
						{
							"name": "Twitch",
							"icon": "t"
						},
						{
							"name": "YouTube",
							"icon": "y"
						}
					]
				},
				{
					type: "button",
					name: "settings"
				},
				{
					name: "Developer",
					noicons: true,
					items: [
						{
							"name": "Reload",
							"accelerator" : " Ctrl+R"
						},
						{
							"name" : "Toggle Dev Tools",
							"accelerator" : " Ctrl+Maj+I"
						},
						{
							"type" : "separator"
						},
						{
							"name" : "Actual Size",
							"accelerator" : " Ctrl+0"
						},
						{
							"name" : "Zoom in",
							"accelerator" : " Ctrl+Maj+="
						},
						{
							"name" : "Zoom out",
							"accelerator" : " Ctrl+Maj+-"
						},
						{
							"type" : "separator"
						},
						{
							"name" : "Toggle fullscreen",
							"accelerator" : " F11"
						}
					]
				},
				{
					name: "About",
					noicons: true,
					items: [
						{
							name: "ElectronPlayer (2.0.5)",
							disabled: true
						},
						{
							name: "Created by Oscar Beaumont",
							disabled: true
						},
						{
							name: "More informations"
						},
						{
							name : "Quit ElectronPlayer",
							accelerator : "Windows+Q"
						}
					]
				}
      ],
      valid: true,
      name: '',
      nameRules: [
        v => !!v || 'Name is required',
        v => (v && v.length <= 10) || 'Name must be less than 10 characters'
      ],
      email: '',
      emailRules: [
        v => !!v || 'E-mail is required',
        v => /.+@.+/.test(v) || 'E-mail must be valid'
      ],
      select: null,
      checkbox: false
	}),

	methods: {
		validate () {
			if (this.$refs.form.validate()) {
				this.snackbar = true
			}
		},
		reset () {
			this.$refs.form.reset()
		},
		resetValidation () {
			this.$refs.form.resetValidation()
		}
	},
	mounted: function() {
		this.$vuetify.theme = {
			primary: '#00796B',
			secondary: '#004D40',
			accent: '#FF0E83',
			error: '#66336E'
		}
	}
})
            
          
!
999px

Console