Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML

              
                <div class="container-md">
	<div class="row comment-form">
		<div class="col-md">
			<h3>Комментарии</h3>
			<p>
				Вы вошли как <a href="#">Alexa Poruch</a>
			</p>
			<form method="POST" action="">
				<div class="form-group">
					<textarea id="editor" class="form-control"></textarea>
				</div>
				<div class="form-group text-right">
					<button class="btn btn-secondary comment-send" type="button">Отправить</button>
				</div>
			</form>
		</div>
	</div>
	<div class="row">

		<div class="col-md">

			<ul class="list-unstyled comment">
				<li>
					<div class="row">
						<div class="col-sm-2 text-center">
							<img class="avatar d-none d-md-block" src="https://www.gravatar.com/avatar/a2c4fd58ec293b5cb556fde9685ee31e?d=mp&s=200" alt="Alexa Poruch" />
						</div>
						<div class="col-md-10">
							<div class="card">
								<div class="card-header p-0 px-3">
									<div class="row py-3">
										<div class="mx-3 user">
											<a class="isAuthor" href="#">Alexa Poruch</a>
										</div>
										<div class="ml-auto mr-4">
											<i class="fas fa-reply" data-toggle="tooltip" title="Ответить"></i>
										</div>
									</div>
								</div><!-- card-header -->
								<div class="card-body">
									<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.
										Videamus animi partes, quarum est conspectus illustrior; Ita credo. Quae contraria sunt his, malane?</p>
									<p>Ea possunt paria non esse. Non semper, inquam; <b>Duo Reges: constructio interrete.</b>
										<b>Omnis enim est natura diligens sui.</b> <i>Invidiosum nomen est, infame, suspectum.</i> Quid Zeno?</p>
									<div class="row">
										<div class="ml-auto pr-3">
											<i class="fas fa-thumbs-up mr-1" data-toggle="tooltip" title="Нравится"></i>
											<i class="fas fa-thumbs-up fa-rotate-180" data-toggle="tooltip" title="Не нравится"></i>
										</div>
									</div>
								</div><!-- card-body -->
							</div><!-- card -->
						</div><!-- col-9 -->
					</div><!-- row -->
				</li>

			</ul>

		</div>
	</div>
</div>
              
            
!

CSS

              
                @body-bgcolor: darken(#1e1f26, 5%);
@card-bgcolor: lighten(@body-bgcolor, 20%); // #32383e;
@card-header-bgcolor: darken(@card-bgcolor, 8%);

@text-color: lighten(@body-bgcolor, 75%);

@card-borderRadius: 15px;

body {
	background-color: @body-bgcolor;
	color: @text-color;

	font-weight: 300;
}

div.row.comment-form {
	letter-spacing: 0.03em;

	& button.comment-send {
		margin-right: 30px;
	}

	& textarea#editor {
		width: 98%;
		height: 100px;
	}

	& a {
		color: lighten(@text-color, 15%);
		font-weight: 700;
	}
}
ul.comment {
	ul {
		margin-left: 5rem;
	}

	li {
		margin: 1.5rem 10px;
	}

	& img.avatar {
		width: 100%;
		max-width: 200px;
		min-width: 100px;
		padding: 7px;
		margin-top: 5px;
		margin-right: 15px;
		border: @card-bgcolor solid 2px;

		border-radius: 15px;
	}

	& .card {
		border-radius: @card-borderRadius;
		background-color: @card-bgcolor;

		& .fas {
			cursor: pointer;
		}

		& .card-header {
			border-radius: @card-borderRadius @card-borderRadius 0 0;
			background-color: @card-header-bgcolor;
			z-index: 2;
			& a {
				color: @text-color;
				font-weight: bolder;

				padding: 8px 5px;

				&.isAuthor {
					font-weight: bold;
					color: lighten(@text-color, 5%);
					text-decoration: none;

					&:hover {
						outline: fadeout(white, 99%) solid 5px;
					}

					&:after {
						position: relative;
						top: -3px;

						text-decoration: none !important;

						content: "Автор";

						font-size: 62%;
						font-weight: bold;
						color: lighten(@text-color, 15%);

						padding: 2.3px 5px;
						margin-left: 10px;
						border-radius: 5px;
						background-color: lighten(@card-header-bgcolor, 25%);
					}
				}
			} // & a

			&::before {
				content: "";

				position: absolute;
				left: -20px;
				top: 20px;

				width: 0;
				height: 0;
				border-style: solid;
				border-width: 17.5px 40px 17.5px 0;
				border-color: transparent @card-header-bgcolor transparent transparent;

				z-index: 1;
			}
		} // & .card-header

		& .card-body {
			font-size: 90%;
			letter-spacing: 0.03em;

			border-radius: 0 0 @card-borderRadius @card-borderRadius;
			background-color: @card-bgcolor;
		}
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console