dotnet-template-samples/09-replace-onlyif-after
Adam Patridge 4af2d4d475 [onlyif sample] Fix internal sample links. (#27) 2017-09-09 14:18:30 -07:00
..
MyProject.Con adding type:project to all template.json files 2017-08-01 08:46:39 -07:00
README.md [onlyif sample] Fix internal sample links. (#27) 2017-09-09 14:18:30 -07:00

README.md

The sample in this folder demonstrates:

  • onlyIf - Shows how you can replace some text on the condition it's preceded by a specified string.

In this sample, we show how you can replace a

From site.css

body {
    padding-top: 50px;
    padding-bottom: 20px;
    background-color: black;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
    color: black;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
    color: black
}

The sample shows how you can update the black for background-color without impacting the values for color in the following elements.

See template.json